string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The zone.
+ */
+ java.lang.String getZone();
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for zone.
+ */
+ com.google.protobuf.ByteString getZoneBytes();
}
/** Protobuf type {@code google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable} */
@@ -373,7 +403,9 @@ private Bigtable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Bigtable() {}
+ private Bigtable() {
+ zone_ = "";
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -2472,6 +2504,63 @@ public boolean hasBigtableMetadata() {
: bigtableMetadata_;
}
+ public static final int ZONE_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object zone_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The zone.
+ */
+ @java.lang.Override
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ 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();
+ zone_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for zone.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2495,6 +2584,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getBigtableMetadata());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, zone_);
+ }
getUnknownFields().writeTo(output);
}
@@ -2514,6 +2606,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBigtableMetadata());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, zone_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2539,6 +2634,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasBigtableMetadata()) {
if (!getBigtableMetadata().equals(other.getBigtableMetadata())) return false;
}
+ if (!getZone().equals(other.getZone())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2561,6 +2657,8 @@ public int hashCode() {
hash = (37 * hash) + BIGTABLE_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getBigtableMetadata().hashCode();
}
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2717,6 +2815,7 @@ public Builder clear() {
bigtableMetadataBuilder_.dispose();
bigtableMetadataBuilder_ = null;
}
+ zone_ = "";
return this;
}
@@ -2771,6 +2870,9 @@ private void buildPartial0(
: bigtableMetadataBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.zone_ = zone_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -2832,6 +2934,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigta
if (other.hasBigtableMetadata()) {
mergeBigtableMetadata(other.getBigtableMetadata());
}
+ if (!other.getZone().isEmpty()) {
+ zone_ = other.zone_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2877,6 +2984,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 34
+ case 42:
+ {
+ zone_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3407,6 +3520,127 @@ public Builder clearBigtableMetadata() {
return bigtableMetadataBuilder_;
}
+ private java.lang.Object zone_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The zone.
+ */
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ zone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for zone.
+ */
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ zone_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearZone() {
+ zone_ = getDefaultInstance().getZone();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ zone_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java
index 77bb5efbac70..e8bb4c47997f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java
@@ -65,60 +65,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n5google/cloud/aiplatform/v1/feature_onl"
- + "ine_store.proto\022\032google.cloud.aiplatform"
+ "\n"
+ + "5google/cloud/aiplatform/v1/feature_online_store.proto\022\032google.cloud.aiplatform"
+ ".v1\032\037google/api/field_behavior.proto\032\031go"
- + "ogle/api/resource.proto\0320google/cloud/ai"
- + "platform/v1/encryption_spec.proto\0323googl"
+ + "ogle/api/resource.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\0323googl"
+ "e/cloud/aiplatform/v1/service_networking"
- + ".proto\032\037google/protobuf/timestamp.proto\""
- + "\365\014\n\022FeatureOnlineStore\022K\n\010bigtable\030\010 \001(\013"
- + "27.google.cloud.aiplatform.v1.FeatureOnl"
- + "ineStore.BigtableH\000\022M\n\toptimized\030\014 \001(\01328"
- + ".google.cloud.aiplatform.v1.FeatureOnlin"
- + "eStore.OptimizedH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n"
- + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim"
- + "estampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.googl"
- + "e.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB"
- + "\003\340A\001\022O\n\006labels\030\006 \003(\0132:.google.cloud.aipl"
- + "atform.v1.FeatureOnlineStore.LabelsEntry"
- + "B\003\340A\001\022H\n\005state\030\007 \001(\01624.google.cloud.aipl"
- + "atform.v1.FeatureOnlineStore.StateB\003\340A\003\022"
- + "p\n\032dedicated_serving_endpoint\030\n \001(\0132G.go"
- + "ogle.cloud.aiplatform.v1.FeatureOnlineSt"
- + "ore.DedicatedServingEndpointB\003\340A\001\022H\n\017enc"
- + "ryption_spec\030\r \001(\0132*.google.cloud.aiplat"
- + "form.v1.EncryptionSpecB\003\340A\001\022\032\n\rsatisfies"
- + "_pzs\030\017 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\020 \001(\010B\003"
- + "\340A\003\032\304\003\n\010Bigtable\022^\n\014auto_scaling\030\001 \001(\0132C"
- + ".google.cloud.aiplatform.v1.FeatureOnlin"
- + "eStore.Bigtable.AutoScalingB\003\340A\002\022*\n\035enab"
- + "le_direct_bigtable_access\030\003 \001(\010B\003\340A\001\022h\n\021"
- + "bigtable_metadata\030\004 \001(\0132H.google.cloud.a"
- + "iplatform.v1.FeatureOnlineStore.Bigtable"
- + ".BigtableMetadataB\003\340A\003\032l\n\013AutoScaling\022\033\n"
- + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016max_node_c"
- + "ount\030\002 \001(\005B\003\340A\002\022#\n\026cpu_utilization_targe"
- + "t\030\003 \001(\005B\003\340A\001\032T\n\020BigtableMetadata\022\031\n\021tena"
- + "nt_project_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(\t"
- + "\022\020\n\010table_id\030\003 \001(\t\032\013\n\tOptimized\032\313\001\n\030Dedi"
- + "catedServingEndpoint\022(\n\033public_endpoint_"
- + "domain_name\030\002 \001(\tB\003\340A\003\022d\n\036private_servic"
- + "e_connect_config\030\003 \001(\01327.google.cloud.ai"
- + "platform.v1.PrivateServiceConnectConfigB"
- + "\003\340A\001\022\037\n\022service_attachment\030\004 \001(\tB\003\340A\003\032-\n"
- + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
- + ":\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006"
- + "STABLE\020\001\022\014\n\010UPDATING\020\002:\206\001\352A\202\001\n,aiplatfor"
- + "m.googleapis.com/FeatureOnlineStore\022Rpro"
- + "jects/{project}/locations/{location}/fea"
- + "tureOnlineStores/{feature_online_store}B"
- + "\016\n\014storage_typeB\325\001\n\036com.google.cloud.aip"
- + "latform.v1B\027FeatureOnlineStoreProtoP\001Z>c"
- + "loud.google.com/go/aiplatform/apiv1/aipl"
- + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP"
- + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352"
- + "\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + ".proto\032\037google/protobuf/timestamp.proto\"\210\r\n"
+ + "\022FeatureOnlineStore\022K\n"
+ + "\010bigtable\030\010 \001(\013"
+ + "27.google.cloud.aiplatform.v1.FeatureOnlineStore.BigtableH\000\022M\n"
+ + "\toptimized\030\014 \001(\01328"
+ + ".google.cloud.aiplatform.v1.FeatureOnlineStore.OptimizedH\000\022\021\n"
+ + "\004name\030\001 \001(\tB\003\340A\010\0224\n"
+ + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ + "\013update_time\030\004"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n"
+ + "\004etag\030\005 \001(\tB\003\340A\001\022O\n"
+ + "\006labels\030\006 \003(\0132:.google.cloud.aipl"
+ + "atform.v1.FeatureOnlineStore.LabelsEntryB\003\340A\001\022H\n"
+ + "\005state\030\007 \001(\01624.google.cloud.aipl"
+ + "atform.v1.FeatureOnlineStore.StateB\003\340A\003\022p\n"
+ + "\032dedicated_serving_endpoint\030\n"
+ + " \001(\0132G.go"
+ + "ogle.cloud.aiplatform.v1.FeatureOnlineStore.DedicatedServingEndpointB\003\340A\001\022H\n"
+ + "\017encryption_spec\030\r"
+ + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpecB\003\340A\001\022\032\n\r"
+ + "satisfies_pzs\030\017 \001(\010B\003\340A\003\022\032\n\r"
+ + "satisfies_pzi\030\020 \001(\010B\003\340A\003\032\327\003\n"
+ + "\010Bigtable\022^\n"
+ + "\014auto_scaling\030\001 \001(\0132C"
+ + ".google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScalingB\003\340A\002\022*\n"
+ + "\035enable_direct_bigtable_access\030\003 \001(\010B\003\340A\001\022h\n"
+ + "\021bigtable_metadata\030\004 \001(\0132H.google.cloud.a"
+ + "iplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataB\003\340A\003\022\021\n"
+ + "\004zone\030\005 \001(\tB\003\340A\001\032l\n"
+ + "\013AutoScaling\022\033\n"
+ + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n"
+ + "\016max_node_count\030\002 \001(\005B\003\340A\002\022#\n"
+ + "\026cpu_utilization_target\030\003 \001(\005B\003\340A\001\032T\n"
+ + "\020BigtableMetadata\022\031\n"
+ + "\021tenant_project_id\030\001 \001(\t\022\023\n"
+ + "\013instance_id\030\002 \001(\t\022\020\n"
+ + "\010table_id\030\003 \001(\t\032\013\n"
+ + "\tOptimized\032\313\001\n"
+ + "\030DedicatedServingEndpoint\022(\n"
+ + "\033public_endpoint_domain_name\030\002 \001(\tB\003\340A\003\022d\n"
+ + "\036private_service_connect_config\030\003 \001("
+ + "\01327.google.cloud.aiplatform.v1.PrivateServiceConnectConfigB\003\340A\001\022\037\n"
+ + "\022service_attachment\030\004 \001(\tB\003\340A\003\032-\n"
+ + "\013LabelsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022\r\n"
+ + "\005value\030\002 \001(\t:\0028\001\"8\n"
+ + "\005State\022\025\n"
+ + "\021STATE_UNSPECIFIED\020\000\022\n\n"
+ + "\006STABLE\020\001\022\014\n"
+ + "\010UPDATING\020\002:\206\001\352A\202\001\n"
+ + ",aiplatform.googleapis.com/FeatureOnlineStore\022Rprojects/{project}/locat"
+ + "ions/{location}/featureOnlineStores/{feature_online_store}B\016\n"
+ + "\014storage_typeB\325\001\n"
+ + "\036com.google.cloud.aiplatform.v1B\027FeatureOn"
+ + "lineStoreProtoP\001Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"
+ + "\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\C"
+ + "loud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -158,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_descriptor,
new java.lang.String[] {
- "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata",
+ "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata", "Zone",
});
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor =
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_descriptor
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
index 2dec2e1dbf00..a7444f8e49c6 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
@@ -4686,6 +4686,65 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC
: routingConfig_;
}
+ public static final int SPEECH_CONFIG_FIELD_NUMBER = 23;
+ private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_;
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the speechConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasSpeechConfig() {
+ return ((bitField0_ & 0x00002000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The speechConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeechConfig getSpeechConfig() {
+ return speechConfig_ == null
+ ? com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()
+ : speechConfig_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBuilder() {
+ return speechConfig_ == null
+ ? com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()
+ : speechConfig_;
+ }
+
public static final int THINKING_CONFIG_FIELD_NUMBER = 25;
private com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinkingConfig_;
@@ -4706,7 +4765,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC
*/
@java.lang.Override
public boolean hasThinkingConfig() {
- return ((bitField0_ & 0x00002000) != 0);
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
@@ -4770,7 +4829,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig getThinkin
*/
@java.lang.Override
public boolean hasImageConfig() {
- return ((bitField0_ & 0x00004000) != 0);
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
@@ -4868,12 +4927,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeBool(18, responseLogprobs_);
}
if (((bitField0_ & 0x00002000) != 0)) {
+ output.writeMessage(23, getSpeechConfig());
+ }
+ if (((bitField0_ & 0x00004000) != 0)) {
output.writeMessage(25, getThinkingConfig());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(28, getResponseJsonSchema());
}
- if (((bitField0_ & 0x00004000) != 0)) {
+ if (((bitField0_ & 0x00008000) != 0)) {
output.writeMessage(30, getImageConfig());
}
getUnknownFields().writeTo(output);
@@ -4933,12 +4995,15 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_);
}
if (((bitField0_ & 0x00002000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig());
+ }
+ if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getThinkingConfig());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getResponseJsonSchema());
}
- if (((bitField0_ & 0x00004000) != 0)) {
+ if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getImageConfig());
}
size += getUnknownFields().getSerializedSize();
@@ -5016,6 +5081,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasRoutingConfig()) {
if (!getRoutingConfig().equals(other.getRoutingConfig())) return false;
}
+ if (hasSpeechConfig() != other.hasSpeechConfig()) return false;
+ if (hasSpeechConfig()) {
+ if (!getSpeechConfig().equals(other.getSpeechConfig())) return false;
+ }
if (hasThinkingConfig() != other.hasThinkingConfig()) return false;
if (hasThinkingConfig()) {
if (!getThinkingConfig().equals(other.getThinkingConfig())) return false;
@@ -5093,6 +5162,10 @@ public int hashCode() {
hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRoutingConfig().hashCode();
}
+ if (hasSpeechConfig()) {
+ hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getSpeechConfig().hashCode();
+ }
if (hasThinkingConfig()) {
hash = (37 * hash) + THINKING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getThinkingConfig().hashCode();
@@ -5245,6 +5318,7 @@ private void maybeForceBuilderInitialization() {
getResponseSchemaFieldBuilder();
getResponseJsonSchemaFieldBuilder();
getRoutingConfigFieldBuilder();
+ getSpeechConfigFieldBuilder();
getThinkingConfigFieldBuilder();
getImageConfigFieldBuilder();
}
@@ -5281,6 +5355,11 @@ public Builder clear() {
routingConfigBuilder_.dispose();
routingConfigBuilder_ = null;
}
+ speechConfig_ = null;
+ if (speechConfigBuilder_ != null) {
+ speechConfigBuilder_.dispose();
+ speechConfigBuilder_ = null;
+ }
thinkingConfig_ = null;
if (thinkingConfigBuilder_ != null) {
thinkingConfigBuilder_.dispose();
@@ -5393,14 +5472,19 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GenerationConfig resul
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
- result.thinkingConfig_ =
- thinkingConfigBuilder_ == null ? thinkingConfig_ : thinkingConfigBuilder_.build();
+ result.speechConfig_ =
+ speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build();
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
+ result.thinkingConfig_ =
+ thinkingConfigBuilder_ == null ? thinkingConfig_ : thinkingConfigBuilder_.build();
+ to_bitField0_ |= 0x00004000;
+ }
+ if (((from_bitField0_ & 0x00020000) != 0)) {
result.imageConfig_ =
imageConfigBuilder_ == null ? imageConfig_ : imageConfigBuilder_.build();
- to_bitField0_ |= 0x00004000;
+ to_bitField0_ |= 0x00008000;
}
result.bitField0_ |= to_bitField0_;
}
@@ -5505,6 +5589,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerationConfig other)
if (other.hasRoutingConfig()) {
mergeRoutingConfig(other.getRoutingConfig());
}
+ if (other.hasSpeechConfig()) {
+ mergeSpeechConfig(other.getSpeechConfig());
+ }
if (other.hasThinkingConfig()) {
mergeThinkingConfig(other.getThinkingConfig());
}
@@ -5622,10 +5709,16 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 144
+ case 186:
+ {
+ input.readMessage(getSpeechConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 186
case 202:
{
input.readMessage(getThinkingConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
break;
} // case 202
case 226:
@@ -5638,7 +5731,7 @@ public Builder mergeFrom(
case 242:
{
input.readMessage(getImageConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
break;
} // case 242
default:
@@ -7717,6 +7810,219 @@ public Builder clearRoutingConfig() {
return routingConfigBuilder_;
}
+ private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SpeechConfig,
+ com.google.cloud.aiplatform.v1.SpeechConfig.Builder,
+ com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder>
+ speechConfigBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the speechConfig field is set.
+ */
+ public boolean hasSpeechConfig() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The speechConfig.
+ */
+ public com.google.cloud.aiplatform.v1.SpeechConfig getSpeechConfig() {
+ if (speechConfigBuilder_ == null) {
+ return speechConfig_ == null
+ ? com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()
+ : speechConfig_;
+ } else {
+ return speechConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value) {
+ if (speechConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ speechConfig_ = value;
+ } else {
+ speechConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSpeechConfig(
+ com.google.cloud.aiplatform.v1.SpeechConfig.Builder builderForValue) {
+ if (speechConfigBuilder_ == null) {
+ speechConfig_ = builderForValue.build();
+ } else {
+ speechConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value) {
+ if (speechConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00008000) != 0)
+ && speechConfig_ != null
+ && speechConfig_ != com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()) {
+ getSpeechConfigBuilder().mergeFrom(value);
+ } else {
+ speechConfig_ = value;
+ }
+ } else {
+ speechConfigBuilder_.mergeFrom(value);
+ }
+ if (speechConfig_ != null) {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSpeechConfig() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ speechConfig_ = null;
+ if (speechConfigBuilder_ != null) {
+ speechConfigBuilder_.dispose();
+ speechConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SpeechConfig.Builder getSpeechConfigBuilder() {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return getSpeechConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBuilder() {
+ if (speechConfigBuilder_ != null) {
+ return speechConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return speechConfig_ == null
+ ? com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()
+ : speechConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SpeechConfig,
+ com.google.cloud.aiplatform.v1.SpeechConfig.Builder,
+ com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder>
+ getSpeechConfigFieldBuilder() {
+ if (speechConfigBuilder_ == null) {
+ speechConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SpeechConfig,
+ com.google.cloud.aiplatform.v1.SpeechConfig.Builder,
+ com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder>(
+ getSpeechConfig(), getParentForChildren(), isClean());
+ speechConfig_ = null;
+ }
+ return speechConfigBuilder_;
+ }
+
private com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinkingConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig,
@@ -7740,7 +8046,7 @@ public Builder clearRoutingConfig() {
* @return Whether the thinkingConfig field is set.
*/
public boolean hasThinkingConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ return ((bitField0_ & 0x00010000) != 0);
}
/**
@@ -7791,7 +8097,7 @@ public Builder setThinkingConfig(
} else {
thinkingConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -7816,7 +8122,7 @@ public Builder setThinkingConfig(
} else {
thinkingConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -7837,7 +8143,7 @@ public Builder setThinkingConfig(
public Builder mergeThinkingConfig(
com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig value) {
if (thinkingConfigBuilder_ == null) {
- if (((bitField0_ & 0x00008000) != 0)
+ if (((bitField0_ & 0x00010000) != 0)
&& thinkingConfig_ != null
&& thinkingConfig_
!= com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
@@ -7850,7 +8156,7 @@ public Builder mergeThinkingConfig(
thinkingConfigBuilder_.mergeFrom(value);
}
if (thinkingConfig_ != null) {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
}
return this;
@@ -7870,7 +8176,7 @@ public Builder mergeThinkingConfig(
*
*/
public Builder clearThinkingConfig() {
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
thinkingConfig_ = null;
if (thinkingConfigBuilder_ != null) {
thinkingConfigBuilder_.dispose();
@@ -7895,7 +8201,7 @@ public Builder clearThinkingConfig() {
*/
public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder
getThinkingConfigBuilder() {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return getThinkingConfigFieldBuilder().getBuilder();
}
@@ -7975,7 +8281,7 @@ public Builder clearThinkingConfig() {
* @return Whether the imageConfig field is set.
*/
public boolean hasImageConfig() {
- return ((bitField0_ & 0x00010000) != 0);
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
@@ -8021,7 +8327,7 @@ public Builder setImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value)
} else {
imageConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -8044,7 +8350,7 @@ public Builder setImageConfig(
} else {
imageConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -8062,7 +8368,7 @@ public Builder setImageConfig(
*/
public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) {
if (imageConfigBuilder_ == null) {
- if (((bitField0_ & 0x00010000) != 0)
+ if (((bitField0_ & 0x00020000) != 0)
&& imageConfig_ != null
&& imageConfig_ != com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) {
getImageConfigBuilder().mergeFrom(value);
@@ -8073,7 +8379,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value
imageConfigBuilder_.mergeFrom(value);
}
if (imageConfig_ != null) {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
}
return this;
@@ -8091,7 +8397,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value
*
*/
public Builder clearImageConfig() {
- bitField0_ = (bitField0_ & ~0x00010000);
+ bitField0_ = (bitField0_ & ~0x00020000);
imageConfig_ = null;
if (imageConfigBuilder_ != null) {
imageConfigBuilder_.dispose();
@@ -8113,7 +8419,7 @@ public Builder clearImageConfig() {
*
*/
public com.google.cloud.aiplatform.v1.ImageConfig.Builder getImageConfigBuilder() {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return getImageConfigFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
index 150bff4b4630..22ce034a298c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
@@ -629,6 +629,49 @@ public interface GenerationConfigOrBuilder
com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder
getRoutingConfigOrBuilder();
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the speechConfig field is set.
+ */
+ boolean hasSpeechConfig();
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The speechConfig.
+ */
+ com.google.cloud.aiplatform.v1.SpeechConfig getSpeechConfig();
+
+ /**
+ *
+ *
+ * + * Optional. The speech generation config. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBuilder();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java
index d03efad738db..0b9420bcde5a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java
@@ -81,30 +81,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "2google/cloud/aiplatform/v1/machine_resources.proto\022\032google.cloud.aiplatform.v1"
+ "\032\037google/api/field_behavior.proto\0321googl"
+ "e/cloud/aiplatform/v1/accelerator_type.p"
- + "roto\0325google/cloud/aiplatform/v1/reservation_affinity.proto\"\201\002\n"
+ + "roto\0325google/cloud/aiplatform/v1/reservation_affinity.proto\"\245\002\n"
+ "\013MachineSpec\022\031\n"
+ "\014machine_type\030\001 \001(\tB\003\340A\005\022J\n"
+ "\020accelerator_type\030\002"
+ " \001(\0162+.google.cloud.aiplatform.v1.AcceleratorTypeB\003\340A\005\022\031\n"
- + "\021accelerator_count\030\003 \001(\005\022\031\n"
+ + "\021accelerator_count\030\003 \001(\005\022\"\n"
+ + "\022gpu_partition_size\030\007 \001(\tB\006\340A\005\340A\001\022\031\n"
+ "\014tpu_topology\030\004 \001(\tB\003\340A\005\022U\n"
- + "\024reservation_affinity\030\005 \001(\0132/.google.cloud.ai"
- + "platform.v1.ReservationAffinityB\006\340A\005\340A\001\"\260\002\n"
+ + "\024reservation_affinity\030\005"
+ + " \001(\0132/.google.cloud.aiplatform.v1.ReservationAffinityB\006\340A\005\340A\001\"\260\002\n"
+ "\022DedicatedResources\022E\n"
- + "\014machine_spec\030\001"
- + " \001(\0132\'.google.cloud.aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022!\n"
+ + "\014machine_spec\030\001 \001(\013"
+ + "2\'.google.cloud.aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022!\n"
+ "\021min_replica_count\030\002 \001(\005B\006\340A\002\340A\005\022\036\n"
+ "\021max_replica_count\030\003 \001(\005B\003\340A\005\022#\n"
+ "\026required_replica_count\030\t \001(\005B\003\340A\001\022X\n"
- + "\030autoscaling_metric_specs\030\004 \003(\01321.google"
- + ".cloud.aiplatform.v1.AutoscalingMetricSpecB\003\340A\005\022\021\n"
+ + "\030autoscaling_metric_specs\030\004 \003(\01321.google.clo"
+ + "ud.aiplatform.v1.AutoscalingMetricSpecB\003\340A\005\022\021\n"
+ "\004spot\030\005 \001(\010B\003\340A\001\"T\n"
+ "\022AutomaticResources\022\036\n"
+ "\021min_replica_count\030\001 \001(\005B\003\340A\005\022\036\n"
+ "\021max_replica_count\030\002 \001(\005B\003\340A\005\"\245\001\n"
+ "\027BatchDedicatedResources\022E\n"
- + "\014machine_spec\030\001 \001"
- + "(\0132\'.google.cloud.aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022#\n"
+ + "\014machine_spec\030\001 \001(\0132\'"
+ + ".google.cloud.aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022#\n"
+ "\026starting_replica_count\030\002 \001(\005B\003\340A\005\022\036\n"
+ "\021max_replica_count\030\003 \001(\005B\003\340A\005\"/\n"
+ "\021ResourcesConsumed\022\032\n\r"
@@ -124,11 +125,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006target\030\002 \001(\005\".\n"
+ "\020ShieldedVmConfig\022\032\n"
+ "\022enable_secure_boot\030\001 \001(\010B\323\001\n"
- + "\036com.google.cloud.aiplatform.v1B\025MachineResourcesProtoP\001Z>cloud.goog"
- + "le.com/go/aiplatform/apiv1/aiplatformpb;"
- + "aiplatformpb\252\002\032Google.Cloud.AIPlatform.V"
- + "1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google:"
- + ":Cloud::AIPlatform::V1b\006proto3"
+ + "\036com.google.cloud.aiplatform.v1B\025MachineResourcesProtoP\001Z>cloud.google.c"
+ + "om/go/aiplatform/apiv1/aiplatformpb;aipl"
+ + "atformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032"
+ + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -147,6 +147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MachineType",
"AcceleratorType",
"AcceleratorCount",
+ "GpuPartitionSize",
"TpuTopology",
"ReservationAffinity",
});
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java
index f4737e845e7a..775545026c4b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java
@@ -42,6 +42,7 @@ private MachineSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private MachineSpec() {
machineType_ = "";
acceleratorType_ = 0;
+ gpuPartitionSize_ = "";
tpuTopology_ = "";
}
@@ -208,6 +209,89 @@ public int getAcceleratorCount() {
return acceleratorCount_;
}
+ public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gpuPartitionSize_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuPartitionSize.
+ */
+ @java.lang.Override
+ public java.lang.String getGpuPartitionSize() {
+ java.lang.Object ref = gpuPartitionSize_;
+ 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();
+ gpuPartitionSize_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for gpuPartitionSize.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGpuPartitionSizeBytes() {
+ java.lang.Object ref = gpuPartitionSize_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gpuPartitionSize_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int TPU_TOPOLOGY_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
@@ -357,6 +441,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getReservationAffinity());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gpuPartitionSize_);
+ }
getUnknownFields().writeTo(output);
}
@@ -383,6 +470,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReservationAffinity());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gpuPartitionSize_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -402,6 +492,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getMachineType().equals(other.getMachineType())) return false;
if (acceleratorType_ != other.acceleratorType_) return false;
if (getAcceleratorCount() != other.getAcceleratorCount()) return false;
+ if (!getGpuPartitionSize().equals(other.getGpuPartitionSize())) return false;
if (!getTpuTopology().equals(other.getTpuTopology())) return false;
if (hasReservationAffinity() != other.hasReservationAffinity()) return false;
if (hasReservationAffinity()) {
@@ -424,6 +515,8 @@ public int hashCode() {
hash = (53 * hash) + acceleratorType_;
hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getAcceleratorCount();
+ hash = (37 * hash) + GPU_PARTITION_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getGpuPartitionSize().hashCode();
hash = (37 * hash) + TPU_TOPOLOGY_FIELD_NUMBER;
hash = (53 * hash) + getTpuTopology().hashCode();
if (hasReservationAffinity()) {
@@ -582,6 +675,7 @@ public Builder clear() {
machineType_ = "";
acceleratorType_ = 0;
acceleratorCount_ = 0;
+ gpuPartitionSize_ = "";
tpuTopology_ = "";
reservationAffinity_ = null;
if (reservationAffinityBuilder_ != null) {
@@ -634,10 +728,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.MachineSpec result) {
result.acceleratorCount_ = acceleratorCount_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.gpuPartitionSize_ = gpuPartitionSize_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.tpuTopology_ = tpuTopology_;
}
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000010) != 0)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.reservationAffinity_ =
reservationAffinityBuilder_ == null
? reservationAffinity_
@@ -703,9 +800,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MachineSpec other) {
if (other.getAcceleratorCount() != 0) {
setAcceleratorCount(other.getAcceleratorCount());
}
+ if (!other.getGpuPartitionSize().isEmpty()) {
+ gpuPartitionSize_ = other.gpuPartitionSize_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
if (!other.getTpuTopology().isEmpty()) {
tpuTopology_ = other.tpuTopology_;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasReservationAffinity()) {
@@ -758,16 +860,22 @@ public Builder mergeFrom(
case 34:
{
tpuTopology_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
break;
} // case 34
case 42:
{
input.readMessage(
getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 42
+ case 58:
+ {
+ gpuPartitionSize_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1129,6 +1237,192 @@ public Builder clearAcceleratorCount() {
return this;
}
+ private java.lang.Object gpuPartitionSize_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuPartitionSize.
+ */
+ public java.lang.String getGpuPartitionSize() {
+ java.lang.Object ref = gpuPartitionSize_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gpuPartitionSize_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for gpuPartitionSize.
+ */
+ public com.google.protobuf.ByteString getGpuPartitionSizeBytes() {
+ java.lang.Object ref = gpuPartitionSize_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gpuPartitionSize_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The gpuPartitionSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGpuPartitionSize(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gpuPartitionSize_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGpuPartitionSize() {
+ gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bytes for gpuPartitionSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ gpuPartitionSize_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object tpuTopology_ = "";
/**
@@ -1197,7 +1491,7 @@ public Builder setTpuTopology(java.lang.String value) {
throw new NullPointerException();
}
tpuTopology_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1216,7 +1510,7 @@ public Builder setTpuTopology(java.lang.String value) {
*/
public Builder clearTpuTopology() {
tpuTopology_ = getDefaultInstance().getTpuTopology();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -1240,7 +1534,7 @@ public Builder setTpuTopologyBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
tpuTopology_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1267,7 +1561,7 @@ public Builder setTpuTopologyBytes(com.google.protobuf.ByteString value) {
* @return Whether the reservationAffinity field is set.
*/
public boolean hasReservationAffinity() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
@@ -1316,7 +1610,7 @@ public Builder setReservationAffinity(
} else {
reservationAffinityBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1340,7 +1634,7 @@ public Builder setReservationAffinity(
} else {
reservationAffinityBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1360,7 +1654,7 @@ public Builder setReservationAffinity(
public Builder mergeReservationAffinity(
com.google.cloud.aiplatform.v1.ReservationAffinity value) {
if (reservationAffinityBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)
+ if (((bitField0_ & 0x00000020) != 0)
&& reservationAffinity_ != null
&& reservationAffinity_
!= com.google.cloud.aiplatform.v1.ReservationAffinity.getDefaultInstance()) {
@@ -1372,7 +1666,7 @@ public Builder mergeReservationAffinity(
reservationAffinityBuilder_.mergeFrom(value);
}
if (reservationAffinity_ != null) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
}
return this;
@@ -1391,7 +1685,7 @@ public Builder mergeReservationAffinity(
*
*/
public Builder clearReservationAffinity() {
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
reservationAffinity_ = null;
if (reservationAffinityBuilder_ != null) {
reservationAffinityBuilder_.dispose();
@@ -1415,7 +1709,7 @@ public Builder clearReservationAffinity() {
*/
public com.google.cloud.aiplatform.v1.ReservationAffinity.Builder
getReservationAffinityBuilder() {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return getReservationAffinityFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java
index 00ef2f91247e..86c41c05e5ce 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java
@@ -121,6 +121,62 @@ public interface MachineSpecOrBuilder
*/
int getAcceleratorCount();
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuPartitionSize.
+ */
+ java.lang.String getGpuPartitionSize();
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The Nvidia GPU partition size. + * + * When specified, the requested accelerators will be partitioned into + * smaller GPU partitions. For example, if the request is for 8 units of + * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + * create 8 * 7 = 56 partitioned MIG instances. + * + * The partition size must be a value supported by the requested accelerator. + * Refer to + * [Nvidia GPU + * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + * for the available partition sizes. + * + * If set, the accelerator_count should be set to 1. + *+ * + *
+ * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for gpuPartitionSize.
+ */
+ com.google.protobuf.ByteString getGpuPartitionSizeBytes();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfig.java
new file mode 100644
index 000000000000..d7ea2ba199b5
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfig.java
@@ -0,0 +1,1048 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Configuration for a multi-speaker text-to-speech request. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} + */ +public final class MultiSpeakerVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) + MultiSpeakerVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MultiSpeakerVoiceConfig.newBuilder() to construct. + private MultiSpeakerVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private MultiSpeakerVoiceConfig() { + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiSpeakerVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder.class); + } + + public static final int SPEAKER_VOICE_CONFIGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List
+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder>
+ getSpeakerVoiceConfigsOrBuilderList() {
+ return speakerVoiceConfigs_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getSpeakerVoiceConfigsCount() {
+ return speakerVoiceConfigs_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index) {
+ return speakerVoiceConfigs_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder getSpeakerVoiceConfigsOrBuilder(
+ int index) {
+ return speakerVoiceConfigs_.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 {
+ for (int i = 0; i < speakerVoiceConfigs_.size(); i++) {
+ output.writeMessage(2, speakerVoiceConfigs_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < speakerVoiceConfigs_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, speakerVoiceConfigs_.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.aiplatform.v1.MultiSpeakerVoiceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig other =
+ (com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) obj;
+
+ if (!getSpeakerVoiceConfigsList().equals(other.getSpeakerVoiceConfigsList())) 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();
+ if (getSpeakerVoiceConfigsCount() > 0) {
+ hash = (37 * hash) + SPEAKER_VOICE_CONFIGS_FIELD_NUMBER;
+ hash = (53 * hash) + getSpeakerVoiceConfigsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig 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.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig 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.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1.MultiSpeakerVoiceConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Configuration for a multi-speaker text-to-speech request. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getSpeakerVoiceConfigsCount() {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ return speakerVoiceConfigs_.size();
+ } else {
+ return speakerVoiceConfigsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ return speakerVoiceConfigs_.get(index);
+ } else {
+ return speakerVoiceConfigsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setSpeakerVoiceConfigs(
+ int index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig value) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.set(index, value);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setSpeakerVoiceConfigs(
+ int index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder builderForValue) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addSpeakerVoiceConfigs(com.google.cloud.aiplatform.v1.SpeakerVoiceConfig value) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.add(value);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addSpeakerVoiceConfigs(
+ int index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig value) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.add(index, value);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addSpeakerVoiceConfigs(
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder builderForValue) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addSpeakerVoiceConfigs(
+ int index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder builderForValue) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllSpeakerVoiceConfigs(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.SpeakerVoiceConfig> values) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speakerVoiceConfigs_);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearSpeakerVoiceConfigs() {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ speakerVoiceConfigs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeSpeakerVoiceConfigs(int index) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.remove(index);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder getSpeakerVoiceConfigsBuilder(
+ int index) {
+ return getSpeakerVoiceConfigsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder
+ getSpeakerVoiceConfigsOrBuilder(int index) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ return speakerVoiceConfigs_.get(index);
+ } else {
+ return speakerVoiceConfigsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder>
+ getSpeakerVoiceConfigsOrBuilderList() {
+ if (speakerVoiceConfigsBuilder_ != null) {
+ return speakerVoiceConfigsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(speakerVoiceConfigs_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder
+ addSpeakerVoiceConfigsBuilder() {
+ return getSpeakerVoiceConfigsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder addSpeakerVoiceConfigsBuilder(
+ int index) {
+ return getSpeakerVoiceConfigsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index);
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getSpeakerVoiceConfigsCount();
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder>
+ getSpeakerVoiceConfigsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder getSpeakerVoiceConfigsOrBuilder(
+ int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfig.java
new file mode 100644
index 000000000000..c30ab98eac9c
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfig.java
@@ -0,0 +1,674 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Configuration for a prebuilt voice. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PrebuiltVoiceConfig} + */ +public final class PrebuiltVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PrebuiltVoiceConfig) + PrebuiltVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PrebuiltVoiceConfig.newBuilder() to construct. + private PrebuiltVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PrebuiltVoiceConfig() { + voiceName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrebuiltVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.class, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder.class); + } + + private int bitField0_; + public static final int VOICE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceName_ = ""; + + /** + * + * + *
+ * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return Whether the voiceName field is set.
+ */
+ @java.lang.Override
+ public boolean hasVoiceName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return The voiceName.
+ */
+ @java.lang.Override
+ public java.lang.String getVoiceName() {
+ java.lang.Object ref = voiceName_;
+ 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();
+ voiceName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return The bytes for voiceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVoiceNameBytes() {
+ java.lang.Object ref = voiceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ voiceName_ = 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 (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, voiceName_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, voiceName_);
+ }
+ 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.aiplatform.v1.PrebuiltVoiceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig other =
+ (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) obj;
+
+ if (hasVoiceName() != other.hasVoiceName()) return false;
+ if (hasVoiceName()) {
+ if (!getVoiceName().equals(other.getVoiceName())) 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();
+ if (hasVoiceName()) {
+ hash = (37 * hash) + VOICE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getVoiceName().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig 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.aiplatform.v1.PrebuiltVoiceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig 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.aiplatform.v1.PrebuiltVoiceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1.PrebuiltVoiceConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Configuration for a prebuilt voice. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PrebuiltVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return Whether the voiceName field is set.
+ */
+ public boolean hasVoiceName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return The voiceName.
+ */
+ public java.lang.String getVoiceName() {
+ java.lang.Object ref = voiceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ voiceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return The bytes for voiceName.
+ */
+ public com.google.protobuf.ByteString getVoiceNameBytes() {
+ java.lang.Object ref = voiceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ voiceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @param value The voiceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVoiceName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVoiceName() {
+ voiceName_ = getDefaultInstance().getVoiceName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @param value The bytes for voiceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVoiceNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ voiceName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.PrebuiltVoiceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PrebuiltVoiceConfig)
+ private static final com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return Whether the voiceName field is set.
+ */
+ boolean hasVoiceName();
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return The voiceName.
+ */
+ java.lang.String getVoiceName();
+
+ /**
+ *
+ *
+ * + * The name of the prebuilt voice to use. + *+ * + *
optional string voice_name = 1;
+ *
+ * @return The bytes for voiceName.
+ */
+ com.google.protobuf.ByteString getVoiceNameBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java
index 1950026c1030..bdbfc478898f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java
@@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -79,7 +87,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\037google/api/field_behavior.proto\032\031google"
+ "/api/resource.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032(google/cl"
+ "oud/aiplatform/v1/env_var.proto\0323google/cloud/aiplatform/v1/service_networking.p"
- + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\275\014\n"
+ + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\333\017\n"
+ "\023ReasoningEngineSpec\022Z\n"
+ "\020source_code_spec\030\013 \001(\0132>."
+ "google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\000\022!\n"
@@ -112,14 +120,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001B\020\n"
+ "\016_min_instancesB\020\n"
+ "\016_max_instancesB\030\n"
- + "\026_container_concurrency\032\250\003\n"
+ + "\026_container_concurrency\032\306\006\n"
+ "\016SourceCodeSpec\022d\n\r"
+ "inline_source\030\001 \001(\0132K.google.cloud.aiplatform.v1.Reasoning"
- + "EngineSpec.SourceCodeSpec.InlineSourceH\000\022`\n"
- + "\013python_spec\030\002 \001(\0132I.google.cloud.aip"
- + "latform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\032.\n"
+ + "EngineSpec.SourceCodeSpec.InlineSourceH\000\022y\n"
+ + "\030developer_connect_source\030\003 \001(\0132U.goo"
+ + "gle.cloud.aiplatform.v1.ReasoningEngineS"
+ + "pec.SourceCodeSpec.DeveloperConnectSourceH\000\022`\n"
+ + "\013python_spec\030\002 \001(\0132I.google.cloud."
+ + "aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\032.\n"
+ "\014InlineSource\022\036\n"
- + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\202\001\n\n"
+ + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\231\001\n"
+ + "\026DeveloperConnectConfig\022V\n"
+ + "\023git_repository_link\030\001 \001(\tB9\340A\002\372A3\n"
+ + "1developerconnect.googleapis.com/GitRepositoryLink\022\020\n"
+ + "\003dir\030\002 \001(\tB\003\340A\002\022\025\n"
+ + "\010revision\030\003 \001(\tB\003\340A\002\032\204\001\n"
+ + "\026DeveloperConnectSource\022j\n"
+ + "\006config\030\001 \001(\0132U.google.cloud.aiplatform.v1.ReasoningEngineSpec.So"
+ + "urceCodeSpec.DeveloperConnectConfigB\003\340A\002\032\202\001\n\n"
+ "PythonSpec\022\024\n"
+ "\007version\030\001 \001(\tB\003\340A\001\022\036\n"
+ "\021entrypoint_module\030\002 \001(\tB\003\340A\001\022\036\n"
@@ -133,27 +152,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB\003\340A\010\022\031\n"
+ "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n"
+ "\013description\030\007 \001(\tB\003\340A\001\022B\n"
- + "\004spec\030\003"
- + " \001(\0132/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\003\340A\001\0224\n"
+ + "\004spec\030\003 \001(\0132/.google.clo"
+ + "ud.aiplatform.v1.ReasoningEngineSpecB\003\340A\001\0224\n"
+ "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ "\013update_time\030\005"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n"
+ "\004etag\030\006 \001(\tB\003\340A\001\022C\n"
+ "\017encryption_spec\030\013"
+ " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022G\n"
- + "\006labels\030\021 \003(\0132"
- + "7.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n"
+ + "\006labels\030\021"
+ + " \003(\01327.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n"
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n"
- + ")aiplatform.googleapis.com/ReasoningEngine\022Kproje"
- + "cts/{project}/locations/{location}/reaso"
- + "ningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngineB\322\001\n"
- + "\036com.google.cloud.aiplatform.v1B\024ReasoningEnginePro"
- + "toP\001Z>cloud.google.com/go/aiplatform/api"
- + "v1/aiplatformpb;aiplatformpb\252\002\032Google.Cl"
- + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf"
- + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{project}/locations/{l"
+ + "ocation}/reasoningEngines/{reasoning_eng"
+ + "ine}*\020reasoningEngines2\017reasoningEngineB\364\002\n"
+ + "\036com.google.cloud.aiplatform.v1B\024ReasoningEngineProtoP\001Z>cloud.google.com/go/"
+ + "aiplatform/apiv1/aiplatformpb;aiplatform"
+ + "pb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google"
+ + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352A\236\001\n"
+ + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{p"
+ + "roject}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_re"
+ + "pository_link}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -225,7 +246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor,
new java.lang.String[] {
- "InlineSource", "PythonSpec", "Source", "LanguageSpec",
+ "InlineSource", "DeveloperConnectSource", "PythonSpec", "Source", "LanguageSpec",
});
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_descriptor =
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor
@@ -237,10 +258,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"SourceArchive",
});
- internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor =
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor =
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor
.getNestedTypes()
.get(1);
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor,
+ new java.lang.String[] {
+ "GitRepositoryLink", "Dir", "Revision",
+ });
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor =
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor
+ .getNestedTypes()
+ .get(2);
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor,
+ new java.lang.String[] {
+ "Config",
+ });
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor =
+ internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor
+ .getNestedTypes()
+ .get(3);
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor,
@@ -277,6 +318,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceDefinition);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.FieldBehaviorProto.getDescriptor();
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java
index 29749c336ab2..706fe5243494 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java
@@ -153,8 +153,9 @@ public interface PackageSpecOrBuilder
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -167,8 +168,9 @@ public interface PackageSpecOrBuilder
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -395,8 +397,9 @@ public com.google.protobuf.ByteString getRequirementsGcsUriBytes() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -420,8 +423,9 @@ public java.lang.String getPythonVersion() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1205,8 +1209,9 @@ public Builder setRequirementsGcsUriBytes(com.google.protobuf.ByteString value)
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1229,8 +1234,9 @@ public java.lang.String getPythonVersion() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1253,8 +1259,9 @@ public com.google.protobuf.ByteString getPythonVersionBytes() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1276,8 +1283,9 @@ public Builder setPythonVersion(java.lang.String value) {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1295,8 +1303,9 @@ public Builder clearPythonVersion() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -4783,6 +4792,52 @@ public interface SourceCodeSpecOrBuilder
com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceOrBuilder
getInlineSourceOrBuilder();
+ /**
+ *
+ *
+ * + * Source code is in a Git repository managed by Developer Connect. + *+ * + *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return Whether the developerConnectSource field is set.
+ */
+ boolean hasDeveloperConnectSource();
+
+ /**
+ *
+ *
+ * + * Source code is in a Git repository managed by Developer Connect. + *+ * + *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return The developerConnectSource.
+ */
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ getDeveloperConnectSource();
+
+ /**
+ *
+ *
+ * + * Source code is in a Git repository managed by Developer Connect. + *+ * + *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder
+ getDeveloperConnectSourceOrBuilder();
+
/**
*
*
@@ -4886,8 +4941,7 @@ public interface InlineSourceOrBuilder
*
*
* Required. Input only. The application source code archive, provided as
- * a compressed tarball
- * (.tar.gz) file.
+ * a compressed tarball (.tar.gz) file.
*
*
*
@@ -4955,8 +5009,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. Input only. The application source code archive, provided as
- * a compressed tarball
- * (.tar.gz) file.
+ * a compressed tarball (.tar.gz) file.
*
*
*
@@ -5352,8 +5405,7 @@ public Builder mergeFrom(
*
*
* Required. Input only. The application source code archive, provided as
- * a compressed tarball
- * (.tar.gz) file.
+ * a compressed tarball (.tar.gz) file.
*
*
*
@@ -5372,8 +5424,7 @@ public com.google.protobuf.ByteString getSourceArchive() {
*
*
* Required. Input only. The application source code archive, provided as
- * a compressed tarball
- * (.tar.gz) file.
+ * a compressed tarball (.tar.gz) file.
*
*
*
@@ -5398,8 +5449,7 @@ public Builder setSourceArchive(com.google.protobuf.ByteString value) {
*
*
* Required. Input only. The application source code archive, provided as
- * a compressed tarball
- * (.tar.gz) file.
+ * a compressed tarball (.tar.gz) file.
*
*
*
@@ -5484,273 +5534,180 @@ public com.google.protobuf.Parser getParserForType() {
}
}
- public interface PythonSpecOrBuilder
+ public interface DeveloperConnectConfigOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The version.
- */
- java.lang.String getVersion();
-
- /**
- *
- *
- *
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for version.
- */
- com.google.protobuf.ByteString getVersionBytes();
-
- /**
- *
- *
- *
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The entrypointModule.
+ * @return The gitRepositoryLink.
*/
- java.lang.String getEntrypointModule();
+ java.lang.String getGitRepositoryLink();
/**
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The bytes for entrypointModule.
+ * @return The bytes for gitRepositoryLink.
*/
- com.google.protobuf.ByteString getEntrypointModuleBytes();
+ com.google.protobuf.ByteString getGitRepositoryLinkBytes();
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The entrypointObject.
+ * @return The dir.
*/
- java.lang.String getEntrypointObject();
+ java.lang.String getDir();
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for entrypointObject.
+ * @return The bytes for dir.
*/
- com.google.protobuf.ByteString getEntrypointObjectBytes();
+ com.google.protobuf.ByteString getDirBytes();
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The requirementsFile.
+ * @return The revision.
*/
- java.lang.String getRequirementsFile();
+ java.lang.String getRevision();
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for requirementsFile.
+ * @return The bytes for revision.
*/
- com.google.protobuf.ByteString getRequirementsFileBytes();
+ com.google.protobuf.ByteString getRevisionBytes();
}
/**
*
*
*
- * Specification for running a Python application from source.
+ * Specifies the configuration for fetching source code from a Git
+ * repository that is managed by Developer Connect. This includes the
+ * repository, revision, and directory to use.
*
*
* Protobuf type {@code
- * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec}
+ * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig}
*/
- public static final class PythonSpec extends com.google.protobuf.GeneratedMessageV3
+ public static final class DeveloperConnectConfig extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
- PythonSpecOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
+ DeveloperConnectConfigOrBuilder {
private static final long serialVersionUID = 0L;
- // Use PythonSpec.newBuilder() to construct.
- private PythonSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use DeveloperConnectConfig.newBuilder() to construct.
+ private DeveloperConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private PythonSpec() {
- version_ = "";
- entrypointModule_ = "";
- entrypointObject_ = "";
- requirementsFile_ = "";
+ private DeveloperConnectConfig() {
+ gitRepositoryLink_ = "";
+ dir_ = "";
+ revision_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new PythonSpec();
+ return new DeveloperConnectConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.aiplatform.v1.ReasoningEngineProto
- .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.aiplatform.v1.ReasoningEngineProto
- .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.class,
- com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
- .class);
- }
-
- public static final int VERSION_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object version_ = "";
-
- /**
- *
- *
- *
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The version.
- */
- @java.lang.Override
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
- 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();
- version_ = s;
- return s;
- }
- }
-
- /**
- *
- *
- *
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for version.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getVersionBytes() {
- java.lang.Object ref = version_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- version_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.class,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder.class);
}
- public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2;
+ public static final int GIT_REPOSITORY_LINK_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private volatile java.lang.Object entrypointModule_ = "";
+ private volatile java.lang.Object gitRepositoryLink_ = "";
/**
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The entrypointModule.
+ * @return The gitRepositoryLink.
*/
@java.lang.Override
- public java.lang.String getEntrypointModule() {
- java.lang.Object ref = entrypointModule_;
+ public java.lang.String getGitRepositoryLink() {
+ java.lang.Object ref = gitRepositoryLink_;
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();
- entrypointModule_ = s;
+ gitRepositoryLink_ = s;
return s;
}
}
@@ -5759,58 +5716,55 @@ public java.lang.String getEntrypointModule() {
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The bytes for entrypointModule.
+ * @return The bytes for gitRepositoryLink.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getEntrypointModuleBytes() {
- java.lang.Object ref = entrypointModule_;
+ public com.google.protobuf.ByteString getGitRepositoryLinkBytes() {
+ java.lang.Object ref = gitRepositoryLink_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- entrypointModule_ = b;
+ gitRepositoryLink_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3;
+ public static final int DIR_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private volatile java.lang.Object entrypointObject_ = "";
+ private volatile java.lang.Object dir_ = "";
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The entrypointObject.
+ * @return The dir.
*/
@java.lang.Override
- public java.lang.String getEntrypointObject() {
- java.lang.Object ref = entrypointObject_;
+ public java.lang.String getDir() {
+ java.lang.Object ref = dir_;
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();
- entrypointObject_ = s;
+ dir_ = s;
return s;
}
}
@@ -5819,54 +5773,53 @@ public java.lang.String getEntrypointObject() {
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for entrypointObject.
+ * @return The bytes for dir.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getEntrypointObjectBytes() {
- java.lang.Object ref = entrypointObject_;
+ public com.google.protobuf.ByteString getDirBytes() {
+ java.lang.Object ref = dir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- entrypointObject_ = b;
+ dir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4;
+ public static final int REVISION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
- private volatile java.lang.Object requirementsFile_ = "";
+ private volatile java.lang.Object revision_ = "";
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The requirementsFile.
+ * @return The revision.
*/
@java.lang.Override
- public java.lang.String getRequirementsFile() {
- java.lang.Object ref = requirementsFile_;
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
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();
- requirementsFile_ = s;
+ revision_ = s;
return s;
}
}
@@ -5875,21 +5828,21 @@ public java.lang.String getRequirementsFile() {
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for requirementsFile.
+ * @return The bytes for revision.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getRequirementsFileBytes() {
- java.lang.Object ref = requirementsFile_;
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- requirementsFile_ = b;
+ revision_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -5910,14 +5863,2237 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitRepositoryLink_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gitRepositoryLink_);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointModule_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entrypointModule_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dir_);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointObject_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entrypointObject_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, revision_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitRepositoryLink_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gitRepositoryLink_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dir_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, revision_);
+ }
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ other =
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig)
+ obj;
+
+ if (!getGitRepositoryLink().equals(other.getGitRepositoryLink())) return false;
+ if (!getDir().equals(other.getDir())) return false;
+ if (!getRevision().equals(other.getRevision())) 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) + GIT_REPOSITORY_LINK_FIELD_NUMBER;
+ hash = (53 * hash) + getGitRepositoryLink().hashCode();
+ hash = (37 * hash) + DIR_FIELD_NUMBER;
+ hash = (53 * hash) + getDir().hashCode();
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getRevision().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies the configuration for fetching source code from a Git
+ * repository that is managed by Developer Connect. This includes the
+ * repository, revision, and directory to use.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.class,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ gitRepositoryLink_ = "";
+ dir_ = "";
+ revision_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ build() {
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ buildPartial() {
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ result =
+ new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.gitRepositoryLink_ = gitRepositoryLink_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.dir_ = dir_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.revision_ = revision_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ other) {
+ if (other
+ == com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()) return this;
+ if (!other.getGitRepositoryLink().isEmpty()) {
+ gitRepositoryLink_ = other.gitRepositoryLink_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getDir().isEmpty()) {
+ dir_ = other.dir_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getRevision().isEmpty()) {
+ revision_ = other.revision_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ gitRepositoryLink_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ dir_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ revision_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object gitRepositoryLink_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The gitRepositoryLink.
+ */
+ public java.lang.String getGitRepositoryLink() {
+ java.lang.Object ref = gitRepositoryLink_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gitRepositoryLink_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for gitRepositoryLink.
+ */
+ public com.google.protobuf.ByteString getGitRepositoryLinkBytes() {
+ java.lang.Object ref = gitRepositoryLink_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gitRepositoryLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The gitRepositoryLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGitRepositoryLink(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gitRepositoryLink_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGitRepositoryLink() {
+ gitRepositoryLink_ = getDefaultInstance().getGitRepositoryLink();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for gitRepositoryLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ gitRepositoryLink_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object dir_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The dir.
+ */
+ public java.lang.String getDir() {
+ java.lang.Object ref = dir_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dir_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for dir.
+ */
+ public com.google.protobuf.ByteString getDirBytes() {
+ java.lang.Object ref = dir_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dir_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The dir to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDir(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dir_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDir() {
+ dir_ = getDefaultInstance().getDir();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for dir to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDirBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ dir_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object revision_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The revision.
+ */
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ revision_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for revision.
+ */
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ revision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevision(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ revision_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRevision() {
+ revision_ = getDefaultInstance().getRevision();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevisionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ revision_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
+ private static final com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeveloperConnectConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface DeveloperConnectSourceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the config field is set.
+ */
+ boolean hasConfig();
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The config.
+ */
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ getConfig();
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder
+ getConfigOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies source code to be fetched from a Git repository managed through
+ * the Developer Connect service.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource}
+ */
+ public static final class DeveloperConnectSource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ DeveloperConnectSourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use DeveloperConnectSource.newBuilder() to construct.
+ private DeveloperConnectSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DeveloperConnectSource() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DeveloperConnectSource();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.class,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int CONFIG_FIELD_NUMBER = 1;
+ private com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ config_;
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the config field is set.
+ */
+ @java.lang.Override
+ public boolean hasConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The config.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getConfig() {
+ return config_ == null
+ ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()
+ : config_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder
+ getConfigOrBuilder() {
+ return config_ == null
+ ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()
+ : config_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getConfig());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig());
+ }
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ other =
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ obj;
+
+ if (hasConfig() != other.hasConfig()) return false;
+ if (hasConfig()) {
+ if (!getConfig().equals(other.getConfig())) 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();
+ if (hasConfig()) {
+ hash = (37 * hash) + CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getConfig().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies source code to be fetched from a Git repository managed through
+ * the Developer Connect service.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.class,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getConfigFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ config_ = null;
+ if (configBuilder_ != null) {
+ configBuilder_.dispose();
+ configBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ build() {
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ buildPartial() {
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ result =
+ new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ other) {
+ if (other
+ == com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance()) return this;
+ if (other.hasConfig()) {
+ mergeConfig(other.getConfig());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ config_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder>
+ configBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the config field is set.
+ */
+ public boolean hasConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The config.
+ */
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getConfig() {
+ if (configBuilder_ == null) {
+ return config_ == null
+ ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()
+ : config_;
+ } else {
+ return configBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setConfig(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ value) {
+ if (configBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ config_ = value;
+ } else {
+ configBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setConfig(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ .Builder
+ builderForValue) {
+ if (configBuilder_ == null) {
+ config_ = builderForValue.build();
+ } else {
+ configBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeConfig(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ value) {
+ if (configBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && config_ != null
+ && config_
+ != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()) {
+ getConfigBuilder().mergeFrom(value);
+ } else {
+ config_ = value;
+ }
+ } else {
+ configBuilder_.mergeFrom(value);
+ }
+ if (config_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearConfig() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ config_ = null;
+ if (configBuilder_ != null) {
+ configBuilder_.dispose();
+ configBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder
+ getConfigBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder
+ getConfigOrBuilder() {
+ if (configBuilder_ != null) {
+ return configBuilder_.getMessageOrBuilder();
+ } else {
+ return config_ == null
+ ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()
+ : config_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder>
+ getConfigFieldBuilder() {
+ if (configBuilder_ == null) {
+ configBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder>(
+ getConfig(), getParentForChildren(), isClean());
+ config_ = null;
+ }
+ return configBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ private static final com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeveloperConnectSource parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface PythonSpecOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The version.
+ */
+ java.lang.String getVersion();
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointModule.
+ */
+ java.lang.String getEntrypointModule();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointModule.
+ */
+ com.google.protobuf.ByteString getEntrypointModuleBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointObject.
+ */
+ java.lang.String getEntrypointObject();
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointObject.
+ */
+ com.google.protobuf.ByteString getEntrypointObjectBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requirementsFile.
+ */
+ java.lang.String getRequirementsFile();
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for requirementsFile.
+ */
+ com.google.protobuf.ByteString getRequirementsFileBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * Specification for running a Python application from source.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec}
+ */
+ public static final class PythonSpec extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ PythonSpecOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use PythonSpec.newBuilder() to construct.
+ private PythonSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PythonSpec() {
+ version_ = "";
+ entrypointModule_ = "";
+ entrypointObject_ = "";
+ requirementsFile_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PythonSpec();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.class,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
+ .class);
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object version_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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();
+ version_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entrypointModule_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointModule.
+ */
+ @java.lang.Override
+ public java.lang.String getEntrypointModule() {
+ java.lang.Object ref = entrypointModule_;
+ 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();
+ entrypointModule_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointModule.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntrypointModuleBytes() {
+ java.lang.Object ref = entrypointModule_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entrypointModule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entrypointObject_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointObject.
+ */
+ @java.lang.Override
+ public java.lang.String getEntrypointObject() {
+ java.lang.Object ref = entrypointObject_;
+ 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();
+ entrypointObject_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointObject.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntrypointObjectBytes() {
+ java.lang.Object ref = entrypointObject_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entrypointObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object requirementsFile_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requirementsFile.
+ */
+ @java.lang.Override
+ public java.lang.String getRequirementsFile() {
+ java.lang.Object ref = requirementsFile_;
+ 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();
+ requirementsFile_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for requirementsFile.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRequirementsFileBytes() {
+ java.lang.Object ref = requirementsFile_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ requirementsFile_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointModule_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entrypointModule_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointObject_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entrypointObject_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requirementsFile_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requirementsFile_);
@@ -6916,6 +9092,7 @@ public enum SourceCase
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INLINE_SOURCE(1),
+ DEVELOPER_CONNECT_SOURCE(3),
SOURCE_NOT_SET(0);
private final int value;
@@ -6937,6 +9114,8 @@ public static SourceCase forNumber(int value) {
switch (value) {
case 1:
return INLINE_SOURCE;
+ case 3:
+ return DEVELOPER_CONNECT_SOURCE;
case 0:
return SOURCE_NOT_SET;
default:
@@ -7066,6 +9245,75 @@ public boolean hasInlineSource() {
.getDefaultInstance();
}
+ public static final int DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return Whether the developerConnectSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeveloperConnectSource() {
+ return sourceCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return The developerConnectSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ getDeveloperConnectSource() {
+ if (sourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder
+ getDeveloperConnectSourceOrBuilder() {
+ if (sourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+
public static final int PYTHON_SPEC_FIELD_NUMBER = 2;
/**
@@ -7158,6 +9406,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
(com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
languageSpec_);
}
+ if (sourceCase_ == 3) {
+ output.writeMessage(
+ 3,
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_);
+ }
getUnknownFields().writeTo(output);
}
@@ -7181,6 +9436,14 @@ public int getSerializedSize() {
(com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
languageSpec_);
}
+ if (sourceCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3,
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -7202,6 +9465,9 @@ public boolean equals(final java.lang.Object obj) {
case 1:
if (!getInlineSource().equals(other.getInlineSource())) return false;
break;
+ case 3:
+ if (!getDeveloperConnectSource().equals(other.getDeveloperConnectSource())) return false;
+ break;
case 0:
default:
}
@@ -7229,6 +9495,10 @@ public int hashCode() {
hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getInlineSource().hashCode();
break;
+ case 3:
+ hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getDeveloperConnectSource().hashCode();
+ break;
case 0:
default:
}
@@ -7388,6 +9658,9 @@ public Builder clear() {
if (inlineSourceBuilder_ != null) {
inlineSourceBuilder_.clear();
}
+ if (developerConnectSourceBuilder_ != null) {
+ developerConnectSourceBuilder_.clear();
+ }
if (pythonSpecBuilder_ != null) {
pythonSpecBuilder_.clear();
}
@@ -7444,6 +9717,9 @@ private void buildPartialOneofs(
if (sourceCase_ == 1 && inlineSourceBuilder_ != null) {
result.source_ = inlineSourceBuilder_.build();
}
+ if (sourceCase_ == 3 && developerConnectSourceBuilder_ != null) {
+ result.source_ = developerConnectSourceBuilder_.build();
+ }
result.languageSpecCase_ = languageSpecCase_;
result.languageSpec_ = this.languageSpec_;
if (languageSpecCase_ == 2 && pythonSpecBuilder_ != null) {
@@ -7508,6 +9784,11 @@ public Builder mergeFrom(
mergeInlineSource(other.getInlineSource());
break;
}
+ case DEVELOPER_CONNECT_SOURCE:
+ {
+ mergeDeveloperConnectSource(other.getDeveloperConnectSource());
+ break;
+ }
case SOURCE_NOT_SET:
{
break;
@@ -7562,6 +9843,13 @@ public Builder mergeFrom(
languageSpecCase_ = 2;
break;
} // case 18
+ case 26:
+ {
+ input.readMessage(
+ getDeveloperConnectSourceFieldBuilder().getBuilder(), extensionRegistry);
+ sourceCase_ = 3;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7870,6 +10158,279 @@ public Builder clearInlineSource() {
return inlineSourceBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder>
+ developerConnectSourceBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return Whether the developerConnectSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeveloperConnectSource() {
+ return sourceCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return The developerConnectSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDeveloperConnectSource() {
+ if (developerConnectSourceBuilder_ == null) {
+ if (sourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 3) {
+ return developerConnectSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public Builder setDeveloperConnectSource(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ value) {
+ if (developerConnectSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ developerConnectSourceBuilder_.setMessage(value);
+ }
+ sourceCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public Builder setDeveloperConnectSource(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ .Builder
+ builderForValue) {
+ if (developerConnectSourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ developerConnectSourceBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public Builder mergeDeveloperConnectSource(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ value) {
+ if (developerConnectSourceBuilder_ == null) {
+ if (sourceCase_ == 3
+ && source_
+ != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.newBuilder(
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 3) {
+ developerConnectSourceBuilder_.mergeFrom(value);
+ } else {
+ developerConnectSourceBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public Builder clearDeveloperConnectSource() {
+ if (developerConnectSourceBuilder_ == null) {
+ if (sourceCase_ == 3) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 3) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ developerConnectSourceBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder
+ getDeveloperConnectSourceBuilder() {
+ return getDeveloperConnectSourceFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder
+ getDeveloperConnectSourceOrBuilder() {
+ if ((sourceCase_ == 3) && (developerConnectSourceBuilder_ != null)) {
+ return developerConnectSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder>
+ getDeveloperConnectSourceFieldBuilder() {
+ if (developerConnectSourceBuilder_ == null) {
+ if (!(sourceCase_ == 3)) {
+ source_ =
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+ developerConnectSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 3;
+ onChanged();
+ return developerConnectSourceBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec,
com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfig.java
new file mode 100644
index 000000000000..fdee6783a103
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfig.java
@@ -0,0 +1,755 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * The configuration for the replicated voice to use.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.ReplicatedVoiceConfig}
+ */
+public final class ReplicatedVoiceConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReplicatedVoiceConfig)
+ ReplicatedVoiceConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ReplicatedVoiceConfig.newBuilder() to construct.
+ private ReplicatedVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ReplicatedVoiceConfig() {
+ mimeType_ = "";
+ voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ReplicatedVoiceConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.class,
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder.class);
+ }
+
+ public static final int MIME_TYPE_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object mimeType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ @java.lang.Override
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ 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();
+ mimeType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VOICE_SAMPLE_AUDIO_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The voiceSampleAudio.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVoiceSampleAudio() {
+ return voiceSampleAudio_;
+ }
+
+ 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.GeneratedMessageV3.isStringEmpty(mimeType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
+ }
+ if (!voiceSampleAudio_.isEmpty()) {
+ output.writeBytes(2, voiceSampleAudio_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
+ }
+ if (!voiceSampleAudio_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, voiceSampleAudio_);
+ }
+ 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.aiplatform.v1.ReplicatedVoiceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig other =
+ (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) obj;
+
+ if (!getMimeType().equals(other.getMimeType())) return false;
+ if (!getVoiceSampleAudio().equals(other.getVoiceSampleAudio())) 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) + MIME_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMimeType().hashCode();
+ hash = (37 * hash) + VOICE_SAMPLE_AUDIO_FIELD_NUMBER;
+ hash = (53 * hash) + getVoiceSampleAudio().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig 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.aiplatform.v1.ReplicatedVoiceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig 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.aiplatform.v1.ReplicatedVoiceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1.ReplicatedVoiceConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the replicated voice to use.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.ReplicatedVoiceConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReplicatedVoiceConfig)
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.class,
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ mimeType_ = "";
+ voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig build() {
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig buildPartial() {
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig result =
+ new com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.mimeType_ = mimeType_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.voiceSampleAudio_ = voiceSampleAudio_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig other) {
+ if (other == com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance())
+ return this;
+ if (!other.getMimeType().isEmpty()) {
+ mimeType_ = other.mimeType_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.getVoiceSampleAudio() != com.google.protobuf.ByteString.EMPTY) {
+ setVoiceSampleAudio(other.getVoiceSampleAudio());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ mimeType_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ voiceSampleAudio_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object mimeType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mimeType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mimeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMimeType() {
+ mimeType_ = getDefaultInstance().getMimeType();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ mimeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The voiceSampleAudio.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVoiceSampleAudio() {
+ return voiceSampleAudio_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The voiceSampleAudio to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVoiceSampleAudio(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceSampleAudio_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVoiceSampleAudio() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ voiceSampleAudio_ = getDefaultInstance().getVoiceSampleAudio();
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ReplicatedVoiceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReplicatedVoiceConfig)
+ private static final com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReplicatedVoiceConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfigOrBuilder.java
new file mode 100644
index 000000000000..b2788418279e
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfigOrBuilder.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+public interface ReplicatedVoiceConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReplicatedVoiceConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ java.lang.String getMimeType();
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ com.google.protobuf.ByteString getMimeTypeBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The voiceSampleAudio.
+ */
+ com.google.protobuf.ByteString getVoiceSampleAudio();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfig.java
new file mode 100644
index 000000000000..1dbe58b77ed7
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfig.java
@@ -0,0 +1,958 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Configuration for a single speaker in a multi-speaker setup.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.SpeakerVoiceConfig}
+ */
+public final class SpeakerVoiceConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SpeakerVoiceConfig)
+ SpeakerVoiceConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use SpeakerVoiceConfig.newBuilder() to construct.
+ private SpeakerVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SpeakerVoiceConfig() {
+ speaker_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SpeakerVoiceConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.class,
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int SPEAKER_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object speaker_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The speaker.
+ */
+ @java.lang.Override
+ public java.lang.String getSpeaker() {
+ java.lang.Object ref = speaker_;
+ 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();
+ speaker_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for speaker.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSpeakerBytes() {
+ java.lang.Object ref = speaker_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ speaker_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VOICE_CONFIG_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1.VoiceConfig voiceConfig_;
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasVoiceConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The voiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig() {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+
+ 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.GeneratedMessageV3.isStringEmpty(speaker_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, speaker_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getVoiceConfig());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(speaker_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, speaker_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVoiceConfig());
+ }
+ 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.aiplatform.v1.SpeakerVoiceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig other =
+ (com.google.cloud.aiplatform.v1.SpeakerVoiceConfig) obj;
+
+ if (!getSpeaker().equals(other.getSpeaker())) return false;
+ if (hasVoiceConfig() != other.hasVoiceConfig()) return false;
+ if (hasVoiceConfig()) {
+ if (!getVoiceConfig().equals(other.getVoiceConfig())) 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) + SPEAKER_FIELD_NUMBER;
+ hash = (53 * hash) + getSpeaker().hashCode();
+ if (hasVoiceConfig()) {
+ hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getVoiceConfig().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig 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.aiplatform.v1.SpeakerVoiceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig 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.aiplatform.v1.SpeakerVoiceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1.SpeakerVoiceConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Configuration for a single speaker in a multi-speaker setup.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.SpeakerVoiceConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SpeakerVoiceConfig)
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.class,
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getVoiceConfigFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ speaker_ = "";
+ voiceConfig_ = null;
+ if (voiceConfigBuilder_ != null) {
+ voiceConfigBuilder_.dispose();
+ voiceConfigBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig build() {
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig buildPartial() {
+ com.google.cloud.aiplatform.v1.SpeakerVoiceConfig result =
+ new com.google.cloud.aiplatform.v1.SpeakerVoiceConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.SpeakerVoiceConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.speaker_ = speaker_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.voiceConfig_ =
+ voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.SpeakerVoiceConfig) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.SpeakerVoiceConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpeakerVoiceConfig other) {
+ if (other == com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.getDefaultInstance())
+ return this;
+ if (!other.getSpeaker().isEmpty()) {
+ speaker_ = other.speaker_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasVoiceConfig()) {
+ mergeVoiceConfig(other.getVoiceConfig());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ speaker_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getVoiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object speaker_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The speaker.
+ */
+ public java.lang.String getSpeaker() {
+ java.lang.Object ref = speaker_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ speaker_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for speaker.
+ */
+ public com.google.protobuf.ByteString getSpeakerBytes() {
+ java.lang.Object ref = speaker_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ speaker_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The speaker to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpeaker(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ speaker_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSpeaker() {
+ speaker_ = getDefaultInstance().getSpeaker();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for speaker to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpeakerBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ speaker_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1.VoiceConfig voiceConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VoiceConfig,
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder>
+ voiceConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ public boolean hasVoiceConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The voiceConfig.
+ */
+ public com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig() {
+ if (voiceConfigBuilder_ == null) {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ } else {
+ return voiceConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setVoiceConfig(com.google.cloud.aiplatform.v1.VoiceConfig value) {
+ if (voiceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceConfig_ = value;
+ } else {
+ voiceConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setVoiceConfig(
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder builderForValue) {
+ if (voiceConfigBuilder_ == null) {
+ voiceConfig_ = builderForValue.build();
+ } else {
+ voiceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1.VoiceConfig value) {
+ if (voiceConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && voiceConfig_ != null
+ && voiceConfig_ != com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()) {
+ getVoiceConfigBuilder().mergeFrom(value);
+ } else {
+ voiceConfig_ = value;
+ }
+ } else {
+ voiceConfigBuilder_.mergeFrom(value);
+ }
+ if (voiceConfig_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearVoiceConfig() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ voiceConfig_ = null;
+ if (voiceConfigBuilder_ != null) {
+ voiceConfigBuilder_.dispose();
+ voiceConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.VoiceConfig.Builder getVoiceConfigBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getVoiceConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() {
+ if (voiceConfigBuilder_ != null) {
+ return voiceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VoiceConfig,
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder>
+ getVoiceConfigFieldBuilder() {
+ if (voiceConfigBuilder_ == null) {
+ voiceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VoiceConfig,
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder>(
+ getVoiceConfig(), getParentForChildren(), isClean());
+ voiceConfig_ = null;
+ }
+ return voiceConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.SpeakerVoiceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SpeakerVoiceConfig)
+ private static final com.google.cloud.aiplatform.v1.SpeakerVoiceConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SpeakerVoiceConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SpeakerVoiceConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfigOrBuilder.java
new file mode 100644
index 000000000000..48c8ec28edeb
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfigOrBuilder.java
@@ -0,0 +1,97 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+public interface SpeakerVoiceConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SpeakerVoiceConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The speaker.
+ */
+ java.lang.String getSpeaker();
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for speaker.
+ */
+ com.google.protobuf.ByteString getSpeakerBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ boolean hasVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The voiceConfig.
+ */
+ com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfig.java
new file mode 100644
index 000000000000..0d1320f64687
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfig.java
@@ -0,0 +1,1242 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Configuration for speech generation.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.SpeechConfig}
+ */
+public final class SpeechConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SpeechConfig)
+ SpeechConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use SpeechConfig.newBuilder() to construct.
+ private SpeechConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SpeechConfig() {
+ languageCode_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SpeechConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeechConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeechConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.SpeechConfig.class,
+ com.google.cloud.aiplatform.v1.SpeechConfig.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int VOICE_CONFIG_FIELD_NUMBER = 1;
+ private com.google.cloud.aiplatform.v1.VoiceConfig voiceConfig_;
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasVoiceConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ *
+ * @return The voiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig() {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+
+ public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The languageCode.
+ */
+ @java.lang.Override
+ public java.lang.String getLanguageCode() {
+ java.lang.Object ref = languageCode_;
+ 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();
+ languageCode_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for languageCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLanguageCodeBytes() {
+ java.lang.Object ref = languageCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ languageCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MULTI_SPEAKER_VOICE_CONFIG_FIELD_NUMBER = 3;
+ private com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig_;
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return Whether the multiSpeakerVoiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasMultiSpeakerVoiceConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return The multiSpeakerVoiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig() {
+ return multiSpeakerVoiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance()
+ : multiSpeakerVoiceConfig_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder
+ getMultiSpeakerVoiceConfigOrBuilder() {
+ return multiSpeakerVoiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance()
+ : multiSpeakerVoiceConfig_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getVoiceConfig());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getMultiSpeakerVoiceConfig());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVoiceConfig());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMultiSpeakerVoiceConfig());
+ }
+ 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.aiplatform.v1.SpeechConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.SpeechConfig other =
+ (com.google.cloud.aiplatform.v1.SpeechConfig) obj;
+
+ if (hasVoiceConfig() != other.hasVoiceConfig()) return false;
+ if (hasVoiceConfig()) {
+ if (!getVoiceConfig().equals(other.getVoiceConfig())) return false;
+ }
+ if (!getLanguageCode().equals(other.getLanguageCode())) return false;
+ if (hasMultiSpeakerVoiceConfig() != other.hasMultiSpeakerVoiceConfig()) return false;
+ if (hasMultiSpeakerVoiceConfig()) {
+ if (!getMultiSpeakerVoiceConfig().equals(other.getMultiSpeakerVoiceConfig())) 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();
+ if (hasVoiceConfig()) {
+ hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getVoiceConfig().hashCode();
+ }
+ hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getLanguageCode().hashCode();
+ if (hasMultiSpeakerVoiceConfig()) {
+ hash = (37 * hash) + MULTI_SPEAKER_VOICE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getMultiSpeakerVoiceConfig().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig 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.aiplatform.v1.SpeechConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig 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.aiplatform.v1.SpeechConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1.SpeechConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Configuration for speech generation.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.SpeechConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SpeechConfig)
+ com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeechConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeechConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.SpeechConfig.class,
+ com.google.cloud.aiplatform.v1.SpeechConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.SpeechConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getVoiceConfigFieldBuilder();
+ getMultiSpeakerVoiceConfigFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ voiceConfig_ = null;
+ if (voiceConfigBuilder_ != null) {
+ voiceConfigBuilder_.dispose();
+ voiceConfigBuilder_ = null;
+ }
+ languageCode_ = "";
+ multiSpeakerVoiceConfig_ = null;
+ if (multiSpeakerVoiceConfigBuilder_ != null) {
+ multiSpeakerVoiceConfigBuilder_.dispose();
+ multiSpeakerVoiceConfigBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SpeechConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeechConfig getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeechConfig build() {
+ com.google.cloud.aiplatform.v1.SpeechConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeechConfig buildPartial() {
+ com.google.cloud.aiplatform.v1.SpeechConfig result =
+ new com.google.cloud.aiplatform.v1.SpeechConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.SpeechConfig result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.voiceConfig_ =
+ voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.multiSpeakerVoiceConfig_ =
+ multiSpeakerVoiceConfigBuilder_ == null
+ ? multiSpeakerVoiceConfig_
+ : multiSpeakerVoiceConfigBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.SpeechConfig) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.SpeechConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpeechConfig other) {
+ if (other == com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()) return this;
+ if (other.hasVoiceConfig()) {
+ mergeVoiceConfig(other.getVoiceConfig());
+ }
+ if (!other.getLanguageCode().isEmpty()) {
+ languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasMultiSpeakerVoiceConfig()) {
+ mergeMultiSpeakerVoiceConfig(other.getMultiSpeakerVoiceConfig());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getVoiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ languageCode_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(
+ getMultiSpeakerVoiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.cloud.aiplatform.v1.VoiceConfig voiceConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VoiceConfig,
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder>
+ voiceConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ public boolean hasVoiceConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ *
+ * @return The voiceConfig.
+ */
+ public com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig() {
+ if (voiceConfigBuilder_ == null) {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ } else {
+ return voiceConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ public Builder setVoiceConfig(com.google.cloud.aiplatform.v1.VoiceConfig value) {
+ if (voiceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceConfig_ = value;
+ } else {
+ voiceConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ public Builder setVoiceConfig(
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder builderForValue) {
+ if (voiceConfigBuilder_ == null) {
+ voiceConfig_ = builderForValue.build();
+ } else {
+ voiceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1.VoiceConfig value) {
+ if (voiceConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && voiceConfig_ != null
+ && voiceConfig_ != com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()) {
+ getVoiceConfigBuilder().mergeFrom(value);
+ } else {
+ voiceConfig_ = value;
+ }
+ } else {
+ voiceConfigBuilder_.mergeFrom(value);
+ }
+ if (voiceConfig_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ public Builder clearVoiceConfig() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ voiceConfig_ = null;
+ if (voiceConfigBuilder_ != null) {
+ voiceConfigBuilder_.dispose();
+ voiceConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ public com.google.cloud.aiplatform.v1.VoiceConfig.Builder getVoiceConfigBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getVoiceConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ public com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() {
+ if (voiceConfigBuilder_ != null) {
+ return voiceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VoiceConfig,
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder>
+ getVoiceConfigFieldBuilder() {
+ if (voiceConfigBuilder_ == null) {
+ voiceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VoiceConfig,
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder>(
+ getVoiceConfig(), getParentForChildren(), isClean());
+ voiceConfig_ = null;
+ }
+ return voiceConfigBuilder_;
+ }
+
+ private java.lang.Object languageCode_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The languageCode.
+ */
+ public java.lang.String getLanguageCode() {
+ java.lang.Object ref = languageCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ languageCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for languageCode.
+ */
+ public com.google.protobuf.ByteString getLanguageCodeBytes() {
+ java.lang.Object ref = languageCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ languageCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The languageCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLanguageCode(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ languageCode_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLanguageCode() {
+ languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for languageCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ languageCode_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig,
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder>
+ multiSpeakerVoiceConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return Whether the multiSpeakerVoiceConfig field is set.
+ */
+ public boolean hasMultiSpeakerVoiceConfig() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return The multiSpeakerVoiceConfig.
+ */
+ public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig() {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ return multiSpeakerVoiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance()
+ : multiSpeakerVoiceConfig_;
+ } else {
+ return multiSpeakerVoiceConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public Builder setMultiSpeakerVoiceConfig(
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig value) {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ multiSpeakerVoiceConfig_ = value;
+ } else {
+ multiSpeakerVoiceConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public Builder setMultiSpeakerVoiceConfig(
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder builderForValue) {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ multiSpeakerVoiceConfig_ = builderForValue.build();
+ } else {
+ multiSpeakerVoiceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public Builder mergeMultiSpeakerVoiceConfig(
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig value) {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && multiSpeakerVoiceConfig_ != null
+ && multiSpeakerVoiceConfig_
+ != com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance()) {
+ getMultiSpeakerVoiceConfigBuilder().mergeFrom(value);
+ } else {
+ multiSpeakerVoiceConfig_ = value;
+ }
+ } else {
+ multiSpeakerVoiceConfigBuilder_.mergeFrom(value);
+ }
+ if (multiSpeakerVoiceConfig_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public Builder clearMultiSpeakerVoiceConfig() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ multiSpeakerVoiceConfig_ = null;
+ if (multiSpeakerVoiceConfigBuilder_ != null) {
+ multiSpeakerVoiceConfigBuilder_.dispose();
+ multiSpeakerVoiceConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder
+ getMultiSpeakerVoiceConfigBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getMultiSpeakerVoiceConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder
+ getMultiSpeakerVoiceConfigOrBuilder() {
+ if (multiSpeakerVoiceConfigBuilder_ != null) {
+ return multiSpeakerVoiceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return multiSpeakerVoiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance()
+ : multiSpeakerVoiceConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig,
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder>
+ getMultiSpeakerVoiceConfigFieldBuilder() {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ multiSpeakerVoiceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig,
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder>(
+ getMultiSpeakerVoiceConfig(), getParentForChildren(), isClean());
+ multiSpeakerVoiceConfig_ = null;
+ }
+ return multiSpeakerVoiceConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.SpeechConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SpeechConfig)
+ private static final com.google.cloud.aiplatform.v1.SpeechConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SpeechConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1.SpeechConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SpeechConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SpeechConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfigOrBuilder.java
new file mode 100644
index 000000000000..dd8b8cd67d63
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfigOrBuilder.java
@@ -0,0 +1,133 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+public interface SpeechConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SpeechConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ boolean hasVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ *
+ * @return The voiceConfig.
+ */
+ com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * The configuration for the voice to use.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
+ */
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The languageCode.
+ */
+ java.lang.String getLanguageCode();
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for languageCode.
+ */
+ com.google.protobuf.ByteString getLanguageCodeBytes();
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return Whether the multiSpeakerVoiceConfig field is set.
+ */
+ boolean hasMultiSpeakerVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return The multiSpeakerVoiceConfig.
+ */
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder
+ getMultiSpeakerVoiceConfigOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfig.java
new file mode 100644
index 000000000000..b08b54d9c179
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfig.java
@@ -0,0 +1,1188 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Configuration for a voice.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.VoiceConfig}
+ */
+public final class VoiceConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VoiceConfig)
+ VoiceConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use VoiceConfig.newBuilder() to construct.
+ private VoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private VoiceConfig() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new VoiceConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_VoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_VoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.VoiceConfig.class,
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder.class);
+ }
+
+ private int voiceConfigCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object voiceConfig_;
+
+ public enum VoiceConfigCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ PREBUILT_VOICE_CONFIG(1),
+ REPLICATED_VOICE_CONFIG(3),
+ VOICECONFIG_NOT_SET(0);
+ private final int value;
+
+ private VoiceConfigCase(int value) {
+ this.value = value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static VoiceConfigCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static VoiceConfigCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return PREBUILT_VOICE_CONFIG;
+ case 3:
+ return REPLICATED_VOICE_CONFIG;
+ case 0:
+ return VOICECONFIG_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public VoiceConfigCase getVoiceConfigCase() {
+ return VoiceConfigCase.forNumber(voiceConfigCase_);
+ }
+
+ public static final int PREBUILT_VOICE_CONFIG_FIELD_NUMBER = 1;
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ *
+ * @return Whether the prebuiltVoiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrebuiltVoiceConfig() {
+ return voiceConfigCase_ == 1;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ *
+ * @return The prebuiltVoiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getPrebuiltVoiceConfig() {
+ if (voiceConfigCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder
+ getPrebuiltVoiceConfigOrBuilder() {
+ if (voiceConfigCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance();
+ }
+
+ public static final int REPLICATED_VOICE_CONFIG_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the replicatedVoiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasReplicatedVoiceConfig() {
+ return voiceConfigCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The replicatedVoiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getReplicatedVoiceConfig() {
+ if (voiceConfigCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder
+ getReplicatedVoiceConfigOrBuilder() {
+ if (voiceConfigCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+
+ 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 (voiceConfigCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_);
+ }
+ if (voiceConfigCase_ == 3) {
+ output.writeMessage(3, (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (voiceConfigCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_);
+ }
+ if (voiceConfigCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_);
+ }
+ 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.aiplatform.v1.VoiceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.VoiceConfig other =
+ (com.google.cloud.aiplatform.v1.VoiceConfig) obj;
+
+ if (!getVoiceConfigCase().equals(other.getVoiceConfigCase())) return false;
+ switch (voiceConfigCase_) {
+ case 1:
+ if (!getPrebuiltVoiceConfig().equals(other.getPrebuiltVoiceConfig())) return false;
+ break;
+ case 3:
+ if (!getReplicatedVoiceConfig().equals(other.getReplicatedVoiceConfig())) 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();
+ switch (voiceConfigCase_) {
+ case 1:
+ hash = (37 * hash) + PREBUILT_VOICE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPrebuiltVoiceConfig().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + REPLICATED_VOICE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getReplicatedVoiceConfig().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig 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.aiplatform.v1.VoiceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig 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.aiplatform.v1.VoiceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1.VoiceConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Configuration for a voice.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.VoiceConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.VoiceConfig)
+ com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_VoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_VoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.VoiceConfig.class,
+ com.google.cloud.aiplatform.v1.VoiceConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.VoiceConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (prebuiltVoiceConfigBuilder_ != null) {
+ prebuiltVoiceConfigBuilder_.clear();
+ }
+ if (replicatedVoiceConfigBuilder_ != null) {
+ replicatedVoiceConfigBuilder_.clear();
+ }
+ voiceConfigCase_ = 0;
+ voiceConfig_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_VoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VoiceConfig getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VoiceConfig build() {
+ com.google.cloud.aiplatform.v1.VoiceConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VoiceConfig buildPartial() {
+ com.google.cloud.aiplatform.v1.VoiceConfig result =
+ new com.google.cloud.aiplatform.v1.VoiceConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.VoiceConfig result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(com.google.cloud.aiplatform.v1.VoiceConfig result) {
+ result.voiceConfigCase_ = voiceConfigCase_;
+ result.voiceConfig_ = this.voiceConfig_;
+ if (voiceConfigCase_ == 1 && prebuiltVoiceConfigBuilder_ != null) {
+ result.voiceConfig_ = prebuiltVoiceConfigBuilder_.build();
+ }
+ if (voiceConfigCase_ == 3 && replicatedVoiceConfigBuilder_ != null) {
+ result.voiceConfig_ = replicatedVoiceConfigBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.VoiceConfig) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.VoiceConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.VoiceConfig other) {
+ if (other == com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()) return this;
+ switch (other.getVoiceConfigCase()) {
+ case PREBUILT_VOICE_CONFIG:
+ {
+ mergePrebuiltVoiceConfig(other.getPrebuiltVoiceConfig());
+ break;
+ }
+ case REPLICATED_VOICE_CONFIG:
+ {
+ mergeReplicatedVoiceConfig(other.getReplicatedVoiceConfig());
+ break;
+ }
+ case VOICECONFIG_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(
+ getPrebuiltVoiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ voiceConfigCase_ = 1;
+ break;
+ } // case 10
+ case 26:
+ {
+ input.readMessage(
+ getReplicatedVoiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ voiceConfigCase_ = 3;
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int voiceConfigCase_ = 0;
+ private java.lang.Object voiceConfig_;
+
+ public VoiceConfigCase getVoiceConfigCase() {
+ return VoiceConfigCase.forNumber(voiceConfigCase_);
+ }
+
+ public Builder clearVoiceConfig() {
+ voiceConfigCase_ = 0;
+ voiceConfig_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig,
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder>
+ prebuiltVoiceConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ *
+ * @return Whether the prebuiltVoiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrebuiltVoiceConfig() {
+ return voiceConfigCase_ == 1;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ *
+ * @return The prebuiltVoiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getPrebuiltVoiceConfig() {
+ if (prebuiltVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance();
+ } else {
+ if (voiceConfigCase_ == 1) {
+ return prebuiltVoiceConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ public Builder setPrebuiltVoiceConfig(
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig value) {
+ if (prebuiltVoiceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceConfig_ = value;
+ onChanged();
+ } else {
+ prebuiltVoiceConfigBuilder_.setMessage(value);
+ }
+ voiceConfigCase_ = 1;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ public Builder setPrebuiltVoiceConfig(
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder builderForValue) {
+ if (prebuiltVoiceConfigBuilder_ == null) {
+ voiceConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ prebuiltVoiceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ voiceConfigCase_ = 1;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ public Builder mergePrebuiltVoiceConfig(
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig value) {
+ if (prebuiltVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 1
+ && voiceConfig_
+ != com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance()) {
+ voiceConfig_ =
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.newBuilder(
+ (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ voiceConfig_ = value;
+ }
+ onChanged();
+ } else {
+ if (voiceConfigCase_ == 1) {
+ prebuiltVoiceConfigBuilder_.mergeFrom(value);
+ } else {
+ prebuiltVoiceConfigBuilder_.setMessage(value);
+ }
+ }
+ voiceConfigCase_ = 1;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ public Builder clearPrebuiltVoiceConfig() {
+ if (prebuiltVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 1) {
+ voiceConfigCase_ = 0;
+ voiceConfig_ = null;
+ onChanged();
+ }
+ } else {
+ if (voiceConfigCase_ == 1) {
+ voiceConfigCase_ = 0;
+ voiceConfig_ = null;
+ }
+ prebuiltVoiceConfigBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder
+ getPrebuiltVoiceConfigBuilder() {
+ return getPrebuiltVoiceConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder
+ getPrebuiltVoiceConfigOrBuilder() {
+ if ((voiceConfigCase_ == 1) && (prebuiltVoiceConfigBuilder_ != null)) {
+ return prebuiltVoiceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (voiceConfigCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig,
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder>
+ getPrebuiltVoiceConfigFieldBuilder() {
+ if (prebuiltVoiceConfigBuilder_ == null) {
+ if (!(voiceConfigCase_ == 1)) {
+ voiceConfig_ = com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance();
+ }
+ prebuiltVoiceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig,
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder>(
+ (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_,
+ getParentForChildren(),
+ isClean());
+ voiceConfig_ = null;
+ }
+ voiceConfigCase_ = 1;
+ onChanged();
+ return prebuiltVoiceConfigBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig,
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder>
+ replicatedVoiceConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the replicatedVoiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasReplicatedVoiceConfig() {
+ return voiceConfigCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The replicatedVoiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getReplicatedVoiceConfig() {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance();
+ } else {
+ if (voiceConfigCase_ == 3) {
+ return replicatedVoiceConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setReplicatedVoiceConfig(
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig value) {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceConfig_ = value;
+ onChanged();
+ } else {
+ replicatedVoiceConfigBuilder_.setMessage(value);
+ }
+ voiceConfigCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setReplicatedVoiceConfig(
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder builderForValue) {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ voiceConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ replicatedVoiceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ voiceConfigCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeReplicatedVoiceConfig(
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig value) {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 3
+ && voiceConfig_
+ != com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance()) {
+ voiceConfig_ =
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.newBuilder(
+ (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ voiceConfig_ = value;
+ }
+ onChanged();
+ } else {
+ if (voiceConfigCase_ == 3) {
+ replicatedVoiceConfigBuilder_.mergeFrom(value);
+ } else {
+ replicatedVoiceConfigBuilder_.setMessage(value);
+ }
+ }
+ voiceConfigCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearReplicatedVoiceConfig() {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 3) {
+ voiceConfigCase_ = 0;
+ voiceConfig_ = null;
+ onChanged();
+ }
+ } else {
+ if (voiceConfigCase_ == 3) {
+ voiceConfigCase_ = 0;
+ voiceConfig_ = null;
+ }
+ replicatedVoiceConfigBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder
+ getReplicatedVoiceConfigBuilder() {
+ return getReplicatedVoiceConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder
+ getReplicatedVoiceConfigOrBuilder() {
+ if ((voiceConfigCase_ == 3) && (replicatedVoiceConfigBuilder_ != null)) {
+ return replicatedVoiceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (voiceConfigCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig,
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder>
+ getReplicatedVoiceConfigFieldBuilder() {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (!(voiceConfigCase_ == 3)) {
+ voiceConfig_ = com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+ replicatedVoiceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig,
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder>(
+ (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_,
+ getParentForChildren(),
+ isClean());
+ voiceConfig_ = null;
+ }
+ voiceConfigCase_ = 3;
+ onChanged();
+ return replicatedVoiceConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VoiceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VoiceConfig)
+ private static final com.google.cloud.aiplatform.v1.VoiceConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VoiceConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1.VoiceConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public VoiceConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VoiceConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfigOrBuilder.java
new file mode 100644
index 000000000000..51353e2922ed
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfigOrBuilder.java
@@ -0,0 +1,111 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+public interface VoiceConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.VoiceConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ *
+ * @return Whether the prebuiltVoiceConfig field is set.
+ */
+ boolean hasPrebuiltVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ *
+ * @return The prebuiltVoiceConfig.
+ */
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getPrebuiltVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * The configuration for a prebuilt voice.
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
+ */
+ com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder getPrebuiltVoiceConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the replicatedVoiceConfig field is set.
+ */
+ boolean hasReplicatedVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The replicatedVoiceConfig.
+ */
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getReplicatedVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder getReplicatedVoiceConfigOrBuilder();
+
+ com.google.cloud.aiplatform.v1.VoiceConfig.VoiceConfigCase getVoiceConfigCase();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
index 58883bfc726b..55041862d78c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
@@ -184,6 +184,70 @@ message VideoMetadata {
[(google.api.field_behavior) = OPTIONAL];
}
+// Configuration for a prebuilt voice.
+message PrebuiltVoiceConfig {
+ // The name of the prebuilt voice to use.
+ optional string voice_name = 1;
+}
+
+// The configuration for the replicated voice to use.
+message ReplicatedVoiceConfig {
+ // Optional. The mimetype of the voice sample. The only currently supported
+ // value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ // with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ // set.
+ string mime_type = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The sample of the custom voice.
+ bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+
+// Configuration for a voice.
+message VoiceConfig {
+ // The configuration for the speaker to use.
+ oneof voice_config {
+ // The configuration for a prebuilt voice.
+ PrebuiltVoiceConfig prebuilt_voice_config = 1;
+
+ // Optional. The configuration for a replicated voice. This enables users to
+ // replicate a voice from an audio sample.
+ ReplicatedVoiceConfig replicated_voice_config = 3
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+}
+
+// Configuration for a single speaker in a multi-speaker setup.
+message SpeakerVoiceConfig {
+ // Required. The name of the speaker. This should be the same as the speaker
+ // name used in the prompt.
+ string speaker = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The configuration for the voice of this speaker.
+ VoiceConfig voice_config = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Configuration for a multi-speaker text-to-speech request.
+message MultiSpeakerVoiceConfig {
+ // Required. A list of configurations for the voices of the speakers. Exactly
+ // two speaker voice configurations must be provided.
+ repeated SpeakerVoiceConfig speaker_voice_configs = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Configuration for speech generation.
+message SpeechConfig {
+ // The configuration for the voice to use.
+ VoiceConfig voice_config = 1;
+
+ // Optional. The language code (ISO 639-1) for the speech synthesis.
+ string language_code = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // The configuration for a multi-speaker text-to-speech request.
+ // This field is mutually exclusive with `voice_config`.
+ MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+}
+
// Config for image generation features.
message ImageConfig {
// Optional. The desired aspect ratio for the generated images. The following
@@ -347,6 +411,10 @@ message GenerationConfig {
optional RoutingConfig routing_config = 17
[(google.api.field_behavior) = OPTIONAL];
+ // Optional. The speech generation config.
+ optional SpeechConfig speech_config = 23
+ [(google.api.field_behavior) = OPTIONAL];
+
// Optional. Config for thinking features.
// An error will be returned if this field is set for models that don't
// support thinking.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto
index 4f75c52bb721..769a46305bd9 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto
@@ -82,6 +82,11 @@ message FeatureOnlineStore {
// Output only. Metadata of the Bigtable instance. Output only.
BigtableMetadata bigtable_metadata = 4
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The zone where the underlying Bigtable cluster for the primary
+ // Bigtable instance will be provisioned. Only the zone must be provided.
+ // For example, only "us-central1-a" should be provided.
+ string zone = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Optimized storage type
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto
index 05310b218145..e82856202e02 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto
@@ -54,6 +54,25 @@ message MachineSpec {
// The number of accelerators to attach to the machine.
int32 accelerator_count = 3;
+ // Optional. Immutable. The Nvidia GPU partition size.
+ //
+ // When specified, the requested accelerators will be partitioned into
+ // smaller GPU partitions. For example, if the request is for 8 units of
+ // NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+ // create 8 * 7 = 56 partitioned MIG instances.
+ //
+ // The partition size must be a value supported by the requested accelerator.
+ // Refer to
+ // [Nvidia GPU
+ // Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+ // for the available partition sizes.
+ //
+ // If set, the accelerator_count should be set to 1.
+ string gpu_partition_size = 7 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
// Immutable. The topology of the TPUs. Corresponds to the TPU topologies
// available from GKE. (Example: tpu_topology: "2x2x1").
string tpu_topology = 4 [(google.api.field_behavior) = IMMUTABLE];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto
index a969d3e32a13..440d1e19484d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto
@@ -31,6 +31,10 @@ option java_outer_classname = "ReasoningEngineProto";
option java_package = "com.google.cloud.aiplatform.v1";
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
option ruby_package = "Google::Cloud::AIPlatform::V1";
+option (google.api.resource_definition) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}"
+};
// ReasoningEngine configurations
message ReasoningEngineSpec {
@@ -47,8 +51,9 @@ message ReasoningEngineSpec {
// Optional. The Cloud Storage URI of the `requirements.txt` file
string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL];
- // Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- // If not specified, default value is 3.10.
+ // Optional. The Python version. Supported values
+ // are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ // is 3.10.
string python_version = 4 [(google.api.field_behavior) = OPTIONAL];
}
@@ -104,14 +109,45 @@ message ReasoningEngineSpec {
// Specifies source code provided as a byte stream.
message InlineSource {
// Required. Input only. The application source code archive, provided as
- // a compressed tarball
- // (.tar.gz) file.
+ // a compressed tarball (.tar.gz) file.
bytes source_archive = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = INPUT_ONLY
];
}
+ // Specifies the configuration for fetching source code from a Git
+ // repository that is managed by Developer Connect. This includes the
+ // repository, revision, and directory to use.
+ message DeveloperConnectConfig {
+ // Required. The Developer Connect Git repository link, formatted as
+ // `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ string git_repository_link = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+
+ // Required. Directory, relative to the source root, in which to run the
+ // build.
+ string dir = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The revision to fetch from the Git repository such as a
+ // branch, a tag, a commit SHA, or any Git ref.
+ string revision = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Specifies source code to be fetched from a Git repository managed through
+ // the Developer Connect service.
+ message DeveloperConnectSource {
+ // Required. The Developer Connect configuration that defines the
+ // specific repository, revision, and directory to use as the source code
+ // root.
+ DeveloperConnectConfig config = 1
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
// Specification for running a Python application from source.
message PythonSpec {
// Optional. The version of Python to use. Support version
@@ -141,6 +177,9 @@ message ReasoningEngineSpec {
oneof source {
// Source code is provided directly in the request.
InlineSource inline_source = 1;
+
+ // Source code is in a Git repository managed by Developer Connect.
+ DeveloperConnectSource developer_connect_source = 3;
}
// Specifies the language-specific configuration for building and running
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
index 6b898f2264cb..c43ce838f5d1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
@@ -52,10 +52,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -237,13 +249,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"=\n"
+ "\023PrebuiltVoiceConfig\022\027\n\n"
+ "voice_name\030\001 \001(\tH\000\210\001\001B\r\n"
- + "\013_voice_name\"t\n"
+ + "\013_voice_name\"P\n"
+ + "\025ReplicatedVoiceConfig\022\026\n"
+ + "\tmime_type\030\001 \001(\tB\003\340A\001\022\037\n"
+ + "\022voice_sample_audio\030\002 \001(\014B\003\340A\001\"\324\001\n"
+ "\013VoiceConfig\022U\n"
+ "\025prebuilt_voice_config\030\001"
- + " \001(\01324.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigH\000B\016\n"
- + "\014voice_config\"R\n"
+ + " \001(\01324.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigH\000\022^\n"
+ + "\027replicated_voice_config\030\003 \001(\01326.google.c"
+ + "loud.aiplatform.v1beta1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n"
+ + "\014voice_config\"s\n"
+ + "\022SpeakerVoiceConfig\022\024\n"
+ + "\007speaker\030\001 \001(\tB\003\340A\002\022G\n"
+ + "\014voice_config\030\002"
+ + " \001(\0132,.google.cloud.aiplatform.v1beta1.VoiceConfigB\003\340A\002\"r\n"
+ + "\027MultiSpeakerVoiceConfig\022W\n"
+ + "\025speaker_voice_configs\030\002 "
+ + "\003(\01323.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigB\003\340A\002\"\314\001\n"
+ "\014SpeechConfig\022B\n"
- + "\014voice_config\030\001 \001(\0132,.google.cloud.aiplatform.v1beta1.VoiceConfig\">\n"
+ + "\014voice_config\030\001"
+ + " \001(\0132,.google.cloud.aiplatform.v1beta1.VoiceConfig\022\032\n\r"
+ + "language_code\030\002 \001(\tB\003\340A\001\022\\\n"
+ + "\032multi_speaker_voice_config\030\003"
+ + " \001(\01328.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig\">\n"
+ "\013ImageConfig\022\036\n"
+ "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\000\210\001\001B\017\n\r"
+ "_aspect_ratio\"\256\025\n"
@@ -261,36 +289,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004seed\030\014 \001(\005B\003\340A\001H\t\210\001\001\022\037\n"
+ "\022response_mime_type\030\r"
+ " \001(\tB\003\340A\001\022J\n"
- + "\017response_schema\030\020"
- + " \001(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001H\n"
+ + "\017response_schema\030\020 \001(\0132\'.go"
+ + "ogle.cloud.aiplatform.v1beta1.SchemaB\003\340A\001H\n"
+ "\210\001\001\022>\n"
+ "\024response_json_schema\030\034"
+ " \001(\0132\026.google.protobuf.ValueB\003\340A\001H\013\210\001\001\022a\n"
- + "\016routing_config\030\021 \001(\0132"
- + "?.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022!\n"
+ + "\016routing_config\030\021 \001(\0132?.google.cloud.aiplatform"
+ + ".v1beta1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022!\n"
+ "\017audio_timestamp\030\024 \001(\010B\003\340A\001H\r"
+ "\210\001\001\022\\\n"
- + "\023response_modalities\030\025 \003(\0162:.google.cloud.aiplat"
- + "form.v1beta1.GenerationConfig.ModalityB\003\340A\001\022e\n"
- + "\020media_resolution\030\026 \001(\0162A.google.c"
- + "loud.aiplatform.v1beta1.GenerationConfig.MediaResolutionB\003\340A\001H\016\210\001\001\022N\n\r"
- + "speech_config\030\027"
- + " \001(\0132-.google.cloud.aiplatform.v1beta1.SpeechConfigB\003\340A\001H\017\210\001\001\022^\n"
- + "\017thinking_config\030\031 \001(\0132@.google.cloud.aiplatform.v1"
- + "beta1.GenerationConfig.ThinkingConfigB\003\340A\001\022X\n"
- + "\014model_config\030\033 \001(\0132=.google.cloud."
- + "aiplatform.v1beta1.GenerationConfig.ModelConfigB\003\340A\001\022L\n"
- + "\014image_config\030\036 \001(\0132,.goo"
- + "gle.cloud.aiplatform.v1beta1.ImageConfigB\003\340A\001H\020\210\001\001\032\321\004\n\r"
+ + "\023response_modalities\030\025 \003(\0162:.goog"
+ + "le.cloud.aiplatform.v1beta1.GenerationConfig.ModalityB\003\340A\001\022e\n"
+ + "\020media_resolution\030\026 \001(\0162A.google.cloud.aiplatform.v1beta1.G"
+ + "enerationConfig.MediaResolutionB\003\340A\001H\016\210\001\001\022N\n\r"
+ + "speech_config\030\027 \001(\0132-.google.cloud."
+ + "aiplatform.v1beta1.SpeechConfigB\003\340A\001H\017\210\001\001\022^\n"
+ + "\017thinking_config\030\031 \001(\0132@.google.clou"
+ + "d.aiplatform.v1beta1.GenerationConfig.ThinkingConfigB\003\340A\001\022X\n"
+ + "\014model_config\030\033 \001(\0132"
+ + "=.google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfigB\003\340A\001\022L\n"
+ + "\014image_config\030\036"
+ + " \001(\0132,.google.cloud.aiplatform.v1beta1.ImageConfigB\003\340A\001H\020\210\001\001\032\321\004\n\r"
+ "RoutingConfig\022d\n"
- + "\tauto_mode\030\001 \001(\0132O.google.cloud.aiplatform.v1beta"
- + "1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022h\n"
- + "\013manual_mode\030\002 \001(\0132Q.google"
- + ".cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\240\002\n"
+ + "\tauto_mode\030\001 \001(\0132O.google.cloud.ai"
+ + "platform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022h\n"
+ + "\013manual_mode\030\002 \001(\0132Q.google.cloud.aiplatform.v1beta1"
+ + ".GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\240\002\n"
+ "\017AutoRoutingMode\022\215\001\n"
- + "\030model_routing_preference\030\001 \001(\0162f.google.cloud.aiplatform.v1"
- + "beta1.GenerationConfig.RoutingConfig.Aut"
- + "oRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n"
+ + "\030model_routing_preference\030\001 \001(\0162f.google.clou"
+ + "d.aiplatform.v1beta1.GenerationConfig.Ro"
+ + "utingConfig.AutoRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n"
+ "\026ModelRoutingPreference\022\013\n"
+ "\007UNKNOWN\020\000\022\026\n"
+ "\022PRIORITIZE_QUALITY\020\001\022\014\n"
@@ -307,9 +335,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021_include_thoughtsB\022\n"
+ "\020_thinking_budget\032\233\002\n"
+ "\013ModelConfig\022\203\001\n"
- + "\034feature_selection_preference\030\001 \001(\0162X.googl"
- + "e.cloud.aiplatform.v1beta1.GenerationCon"
- + "fig.ModelConfig.FeatureSelectionPreferenceB\003\340A\002\"\205\001\n"
+ + "\034feature_selection_preference\030\001 \001(\0162X.google.cloud.aiplatform.v1beta"
+ + "1.GenerationConfig.ModelConfig.FeatureSelectionPreferenceB\003\340A\002\"\205\001\n"
+ "\032FeatureSelectionPreference\022,\n"
+ "(FEATURE_SELECTION_PREFERENCE_UNSPECIFIED\020\000\022\026\n"
+ "\022PRIORITIZE_QUALITY\020\001\022\014\n"
@@ -340,16 +367,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017_routing_configB\022\n"
+ "\020_audio_timestampB\023\n"
+ "\021_media_resolutionB\020\n"
- + "\016_speech_configB\017\n"
- + "\r"
+ + "\016_speech_configB\017\n\r"
+ "_image_config\"\372\003\n\r"
+ "SafetySetting\022D\n"
+ "\010category\030\001"
+ " \001(\0162-.google.cloud.aiplatform.v1beta1.HarmCategoryB\003\340A\002\022Y\n"
- + "\tthreshold\030\002 \001("
- + "\0162A.google.cloud.aiplatform.v1beta1.SafetySetting.HarmBlockThresholdB\003\340A\002\022S\n"
- + "\006method\030\004 \001(\0162>.google.cloud.aiplatform.v1be"
- + "ta1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n"
+ + "\tthreshold\030\002 \001(\0162A.google.cloud.aiplatfo"
+ + "rm.v1beta1.SafetySetting.HarmBlockThresholdB\003\340A\002\022S\n"
+ + "\006method\030\004 \001(\0162>.google.cloud."
+ + "aiplatform.v1beta1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n"
+ "\022HarmBlockThreshold\022$\n"
+ " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n"
+ "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n"
@@ -362,19 +388,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010SEVERITY\020\001\022\017\n"
+ "\013PROBABILITY\020\002\"\316\004\n"
+ "\014SafetyRating\022D\n"
- + "\010category\030\001 \001(\0162-"
- + ".google.cloud.aiplatform.v1beta1.HarmCategoryB\003\340A\003\022W\n"
- + "\013probability\030\002 \001(\0162=.google"
- + ".cloud.aiplatform.v1beta1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n"
+ + "\010category\030\001"
+ + " \001(\0162-.google.cloud.aiplatform.v1beta1.HarmCategoryB\003\340A\003\022W\n"
+ + "\013probability\030\002"
+ + " \001(\0162=.google.cloud.aiplatform.v1beta1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n"
+ "\021probability_score\030\005 \001(\002B\003\340A\003\022Q\n"
- + "\010severity\030\006 \001(\0162:.google.c"
- + "loud.aiplatform.v1beta1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n"
+ + "\010severity\030\006"
+ + " \001(\0162:.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n"
+ "\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n"
+ "\007blocked\030\003 \001(\010B\003\340A\003\"b\n"
+ "\017HarmProbability\022 \n"
+ "\034HARM_PROBABILITY_UNSPECIFIED\020\000\022\016\n\n"
+ "NEGLIGIBLE\020\001\022\007\n"
- + "\003LOW\020\002\022\n\n"
+ + "\003LOW\020\002\022\n"
+ + "\n"
+ "\006MEDIUM\020\003\022\010\n"
+ "\004HIGH\020\004\"\224\001\n"
+ "\014HarmSeverity\022\035\n"
@@ -384,8 +411,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024HARM_SEVERITY_MEDIUM\020\003\022\026\n"
+ "\022HARM_SEVERITY_HIGH\020\004\"U\n"
+ "\020CitationMetadata\022A\n"
- + "\tcitations\030\001 \003(\0132).go"
- + "ogle.cloud.aiplatform.v1beta1.CitationB\003\340A\003\"\252\001\n"
+ + "\tcitations\030\001"
+ + " \003(\0132).google.cloud.aiplatform.v1beta1.CitationB\003\340A\003\"\252\001\n"
+ "\010Citation\022\030\n"
+ "\013start_index\030\001 \001(\005B\003\340A\003\022\026\n"
+ "\tend_index\030\002 \001(\005B\003\340A\003\022\020\n"
@@ -395,28 +422,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020publication_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\357\006\n"
+ "\tCandidate\022\022\n"
+ "\005index\030\001 \001(\005B\003\340A\003\022>\n"
- + "\007content\030\002"
- + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022\031\n"
+ + "\007content\030\002 \001"
+ + "(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022\031\n"
+ "\014avg_logprobs\030\t \001(\001B\003\340A\003\022M\n"
+ "\017logprobs_result\030\n"
+ " \001(\0132/.google.cloud.aiplatform.v1beta1.LogprobsResultB\003\340A\003\022S\n\r"
- + "finish_reason\030\003 "
- + "\001(\01627.google.cloud.aiplatform.v1beta1.Candidate.FinishReasonB\003\340A\003\022J\n"
+ + "finish_reason\030\003 \001(\01627.google.cloud.aiplat"
+ + "form.v1beta1.Candidate.FinishReasonB\003\340A\003\022J\n"
+ "\016safety_ratings\030\004"
+ " \003(\0132-.google.cloud.aiplatform.v1beta1.SafetyRatingB\003\340A\003\022 \n"
+ "\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q\n"
- + "\021citation_metadata\030\006 \001"
- + "(\01321.google.cloud.aiplatform.v1beta1.CitationMetadataB\003\340A\003\022S\n"
- + "\022grounding_metadata\030\007"
- + " \001(\01322.google.cloud.aiplatform.v1beta1.GroundingMetadataB\003\340A\003\022V\n"
- + "\024url_context_metadata\030\013"
- + " \001(\01323.google.cloud.aiplatform.v1beta1.UrlContextMetadataB\003\340A\003\"\315\001\n"
+ + "\021citation_metadata\030\006"
+ + " \001(\01321.google.cloud.aiplatform.v1beta1.CitationMetadataB\003\340A\003\022S\n"
+ + "\022grounding_metadata\030\007 \001(\01322.google.cloud.aip"
+ + "latform.v1beta1.GroundingMetadataB\003\340A\003\022V\n"
+ + "\024url_context_metadata\030\013 \001(\01323.google.cl"
+ + "oud.aiplatform.v1beta1.UrlContextMetadataB\003\340A\003\"\315\001\n"
+ "\014FinishReason\022\035\n"
+ "\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n"
+ "\004STOP\020\001\022\016\n\n"
+ "MAX_TOKENS\020\002\022\n\n"
- + "\006SAFETY\020\003\022\016\n"
- + "\n"
+ + "\006SAFETY\020\003\022\016\n\n"
+ "RECITATION\020\004\022\t\n"
+ "\005OTHER\020\005\022\r\n"
+ "\tBLOCKLIST\020\006\022\026\n"
@@ -427,21 +453,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "B\021\n"
+ "\017_finish_message\"]\n"
+ "\022UrlContextMetadata\022G\n"
- + "\014url_metadata\030\001"
- + " \003(\0132,.google.cloud.aiplatform.v1beta1.UrlMetadataB\003\340A\003\"\201\002\n"
+ + "\014url_metadata\030\001 \003(\0132,."
+ + "google.cloud.aiplatform.v1beta1.UrlMetadataB\003\340A\003\"\201\002\n"
+ "\013UrlMetadata\022\025\n\r"
+ "retrieved_url\030\001 \001(\t\022]\n"
- + "\024url_retrieval_status\030\002 \001(\0162?.google.cloud.ai"
- + "platform.v1beta1.UrlMetadata.UrlRetrievalStatus\"|\n"
+ + "\024url_retrieval_status\030\002 \001(\0162?."
+ + "google.cloud.aiplatform.v1beta1.UrlMetadata.UrlRetrievalStatus\"|\n"
+ "\022UrlRetrievalStatus\022$\n"
+ " URL_RETRIEVAL_STATUS_UNSPECIFIED\020\000\022 \n"
+ "\034URL_RETRIEVAL_STATUS_SUCCESS\020\001\022\036\n"
+ "\032URL_RETRIEVAL_STATUS_ERROR\020\002\"\236\003\n"
+ "\016LogprobsResult\022U\n"
- + "\016top_candidates\030\001 \003(\0132=.google.cloud.aiplatfo"
- + "rm.v1beta1.LogprobsResult.TopCandidates\022T\n"
- + "\021chosen_candidates\030\002 \003(\01329.google.clou"
- + "d.aiplatform.v1beta1.LogprobsResult.Candidate\032\177\n"
+ + "\016top_candidates\030\001 \003(\0132=.google"
+ + ".cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates\022T\n"
+ + "\021chosen_candidates\030\002 \003("
+ + "\01329.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate\032\177\n"
+ "\tCandidate\022\022\n"
+ "\005token\030\001 \001(\tH\000\210\001\001\022\025\n"
+ "\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n"
@@ -450,8 +476,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\t_token_idB\022\n"
+ "\020_log_probability\032^\n\r"
+ "TopCandidates\022M\n\n"
- + "candidates\030\001"
- + " \003(\01329.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate\"g\n"
+ + "candidates\030\001 \003(\01329.google.clou"
+ + "d.aiplatform.v1beta1.LogprobsResult.Candidate\"g\n"
+ "\007Segment\022\027\n\n"
+ "part_index\030\001 \001(\005B\003\340A\003\022\030\n"
+ "\013start_index\030\002 \001(\005B\003\340A\003\022\026\n"
@@ -460,10 +486,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016GroundingChunk\022B\n"
+ "\003web\030\001"
+ " \001(\01323.google.cloud.aiplatform.v1beta1.GroundingChunk.WebH\000\022]\n"
- + "\021retrieved_context\030\002"
- + " \001(\0132@.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextH\000\022D\n"
- + "\004maps\030\003"
- + " \001(\01324.google.cloud.aiplatform.v1beta1.GroundingChunk.MapsH\000\032=\n"
+ + "\021retrieved_context\030\002 \001(\0132@.google.cloud."
+ + "aiplatform.v1beta1.GroundingChunk.RetrievedContextH\000\022D\n"
+ + "\004maps\030\003 \001(\01324.google.clou"
+ + "d.aiplatform.v1beta1.GroundingChunk.MapsH\000\032=\n"
+ "\003Web\022\020\n"
+ "\003uri\030\001 \001(\tH\000\210\001\001\022\022\n"
+ "\005title\030\002 \001(\tH\001\210\001\001B\006\n"
@@ -486,11 +512,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005title\030\002 \001(\tH\001\210\001\001\022\021\n"
+ "\004text\030\003 \001(\tH\002\210\001\001\022\025\n"
+ "\010place_id\030\004 \001(\tH\003\210\001\001\022e\n"
- + "\024place_answer_sources\030\005 \001(\0132G.google.cloud.aiplatform.v1bet"
- + "a1.GroundingChunk.Maps.PlaceAnswerSources\032\320\001\n"
+ + "\024place_answer_sources\030\005 \001(\0132G.google.cloud.a"
+ + "iplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources\032\320\001\n"
+ "\022PlaceAnswerSources\022n\n"
- + "\017review_snippets\030\001 \003(\0132U.google.cloud.aiplatform.v1be"
- + "ta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r"
+ + "\017review_snippets\030\001 \003(\0132U.google.cloud."
+ + "aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r"
+ "ReviewSnippet\022\021\n"
+ "\treview_id\030\001 \001(\t\022\027\n"
+ "\017google_maps_uri\030\002 \001(\t\022\r\n"
@@ -501,26 +527,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\t_place_idB\014\n\n"
+ "chunk_type\"\232\001\n"
+ "\020GroundingSupport\022>\n"
- + "\007segment\030\001"
- + " \001(\0132(.google.cloud.aiplatform.v1beta1.SegmentH\000\210\001\001\022\037\n"
+ + "\007segment\030\001 \001(\0132"
+ + "(.google.cloud.aiplatform.v1beta1.SegmentH\000\210\001\001\022\037\n"
+ "\027grounding_chunk_indices\030\002 \003(\005\022\031\n"
+ "\021confidence_scores\030\003 \003(\002B\n\n"
+ "\010_segment\"\331\005\n"
+ "\021GroundingMetadata\022\037\n"
+ "\022web_search_queries\030\001 \003(\tB\003\340A\001\022W\n"
- + "\022search_entry_point\030\004 \001(\01321.google.clou"
- + "d.aiplatform.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022\036\n"
+ + "\022search_entry_point\030\004 \001("
+ + "\01321.google.cloud.aiplatform.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022\036\n"
+ "\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n"
- + "\020grounding_chunks\030\005"
- + " \003(\0132/.google.cloud.aiplatform.v1beta1.GroundingChunk\022R\n"
- + "\022grounding_supports\030\006 \003(\01321.google.cloud.ai"
- + "platform.v1beta1.GroundingSupportB\003\340A\001\022[\n"
- + "\022retrieval_metadata\030\007 \001(\01322.google.clou"
- + "d.aiplatform.v1beta1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n"
+ + "\020grounding_chunks\030\005 \003(\013"
+ + "2/.google.cloud.aiplatform.v1beta1.GroundingChunk\022R\n"
+ + "\022grounding_supports\030\006 \003(\01321."
+ + "google.cloud.aiplatform.v1beta1.GroundingSupportB\003\340A\001\022[\n"
+ + "\022retrieval_metadata\030\007 \001("
+ + "\01322.google.cloud.aiplatform.v1beta1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n"
+ " google_maps_widget_context_token\030\010 \001("
+ "\tB\006\340A\001\340A\003H\002\210\001\001\022b\n"
- + "\024source_flagging_uris\030\t \003(\0132D.google.cloud.aiplatfo"
- + "rm.v1beta1.GroundingMetadata.SourceFlaggingUri\032@\n"
+ + "\024source_flagging_uris\030\t \003(\0132D.google"
+ + ".cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri\032@\n"
+ "\021SourceFlaggingUri\022\021\n"
+ "\tsource_id\030\001 \001(\t\022\030\n"
+ "\020flag_content_uri\030\002 \001(\tB\025\n"
@@ -555,12 +581,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005VIDEO\020\003\022\t\n"
+ "\005AUDIO\020\004\022\014\n"
+ "\010DOCUMENT\020\005B\310\002\n"
- + "#com.google.cloud.aiplatform.v1beta1B\014ContentProtoP\001ZCcloud.google.com/go"
- + "/aiplatform/apiv1beta1/aiplatformpb;aipl"
- + "atformpb\252\002\037Google.Cloud.AIPlatform.V1Bet"
- + "a1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352Ab\n"
- + "\"modelarmor.googleapis.com/Template\022
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the fullFineTunedResources field is set.
+ */
+ @java.lang.Override
+ public boolean hasFullFineTunedResources() {
+ return predictionResourcesCase_ == 36;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The fullFineTunedResources.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getFullFineTunedResources() {
+ if (predictionResourcesCase_ == 36) {
+ return (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder
+ getFullFineTunedResourcesOrBuilder() {
+ if (predictionResourcesCase_ == 36) {
+ return (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance();
+ }
+
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -2549,6 +2613,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(30, getSpeculativeDecodingSpec());
}
+ if (predictionResourcesCase_ == 36) {
+ output.writeMessage(
+ 36, (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_);
+ }
getUnknownFields().writeTo(output);
}
@@ -2635,6 +2703,12 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
30, getSpeculativeDecodingSpec());
}
+ if (predictionResourcesCase_ == 36) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 36,
+ (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2701,6 +2775,9 @@ public boolean equals(final java.lang.Object obj) {
case 17:
if (!getSharedResources().equals(other.getSharedResources())) return false;
break;
+ case 36:
+ if (!getFullFineTunedResources().equals(other.getFullFineTunedResources())) return false;
+ break;
case 0:
default:
}
@@ -2780,6 +2857,10 @@ public int hashCode() {
hash = (37 * hash) + SHARED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getSharedResources().hashCode();
break;
+ case 36:
+ hash = (37 * hash) + FULL_FINE_TUNED_RESOURCES_FIELD_NUMBER;
+ hash = (53 * hash) + getFullFineTunedResources().hashCode();
+ break;
case 0:
default:
}
@@ -2966,6 +3047,9 @@ public Builder clear() {
if (automaticResourcesBuilder_ != null) {
automaticResourcesBuilder_.clear();
}
+ if (fullFineTunedResourcesBuilder_ != null) {
+ fullFineTunedResourcesBuilder_.clear();
+ }
id_ = "";
model_ = "";
modelVersionId_ = "";
@@ -3051,72 +3135,72 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel buildPartial() {
private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedModel result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000008) != 0)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.id_ = id_;
}
- if (((from_bitField0_ & 0x00000010) != 0)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.model_ = model_;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.modelVersionId_ = modelVersionId_;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.displayName_ = displayName_;
}
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
result.explanationSpec_ =
explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
result.disableExplanations_ = disableExplanations_;
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
result.serviceAccount_ = serviceAccount_;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.enableContainerLogging_ = enableContainerLogging_;
}
- if (((from_bitField0_ & 0x00001000) != 0)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
result.disableContainerLogging_ = disableContainerLogging_;
}
- if (((from_bitField0_ & 0x00002000) != 0)) {
+ if (((from_bitField0_ & 0x00004000) != 0)) {
result.enableAccessLogging_ = enableAccessLogging_;
}
- if (((from_bitField0_ & 0x00004000) != 0)) {
+ if (((from_bitField0_ & 0x00008000) != 0)) {
result.privateEndpoints_ =
privateEndpointsBuilder_ == null ? privateEndpoints_ : privateEndpointsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00008000) != 0)) {
+ if (((from_bitField0_ & 0x00010000) != 0)) {
result.fasterDeploymentConfig_ =
fasterDeploymentConfigBuilder_ == null
? fasterDeploymentConfig_
: fasterDeploymentConfigBuilder_.build();
to_bitField0_ |= 0x00000008;
}
- if (((from_bitField0_ & 0x00010000) != 0)) {
+ if (((from_bitField0_ & 0x00020000) != 0)) {
result.rolloutOptions_ =
rolloutOptionsBuilder_ == null ? rolloutOptions_ : rolloutOptionsBuilder_.build();
to_bitField0_ |= 0x00000010;
}
- if (((from_bitField0_ & 0x00020000) != 0)) {
+ if (((from_bitField0_ & 0x00040000) != 0)) {
result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
to_bitField0_ |= 0x00000020;
}
- if (((from_bitField0_ & 0x00040000) != 0)) {
+ if (((from_bitField0_ & 0x00080000) != 0)) {
result.systemLabels_ = internalGetSystemLabels();
result.systemLabels_.makeImmutable();
}
- if (((from_bitField0_ & 0x00080000) != 0)) {
+ if (((from_bitField0_ & 0x00100000) != 0)) {
result.checkpointId_ = checkpointId_;
}
- if (((from_bitField0_ & 0x00100000) != 0)) {
+ if (((from_bitField0_ & 0x00200000) != 0)) {
result.speculativeDecodingSpec_ =
speculativeDecodingSpecBuilder_ == null
? speculativeDecodingSpec_
@@ -3135,6 +3219,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.DeployedMode
if (predictionResourcesCase_ == 8 && automaticResourcesBuilder_ != null) {
result.predictionResources_ = automaticResourcesBuilder_.build();
}
+ if (predictionResourcesCase_ == 36 && fullFineTunedResourcesBuilder_ != null) {
+ result.predictionResources_ = fullFineTunedResourcesBuilder_.build();
+ }
}
@java.lang.Override
@@ -3185,22 +3272,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other
return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getModel().isEmpty()) {
model_ = other.model_;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getModelVersionId().isEmpty()) {
modelVersionId_ = other.modelVersionId_;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasCreateTime()) {
@@ -3214,7 +3301,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other
}
if (!other.getServiceAccount().isEmpty()) {
serviceAccount_ = other.serviceAccount_;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
}
if (other.getEnableContainerLogging() != false) {
@@ -3239,10 +3326,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other
mergeStatus(other.getStatus());
}
internalGetMutableSystemLabels().mergeFrom(other.internalGetSystemLabels());
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
if (!other.getCheckpointId().isEmpty()) {
checkpointId_ = other.checkpointId_;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
onChanged();
}
if (other.hasSpeculativeDecodingSpec()) {
@@ -3266,6 +3353,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other
onChanged();
break;
}
+ case FULL_FINE_TUNED_RESOURCES:
+ {
+ mergeFullFineTunedResources(other.getFullFineTunedResources());
+ break;
+ }
case PREDICTIONRESOURCES_NOT_SET:
{
break;
@@ -3300,25 +3392,25 @@ public Builder mergeFrom(
case 10:
{
id_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
break;
} // case 10
case 18:
{
model_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 18
case 26:
{
displayName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 26
case 50:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 50
case 58:
@@ -3338,38 +3430,38 @@ public Builder mergeFrom(
case 74:
{
input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 74
case 90:
{
serviceAccount_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
break;
} // case 90
case 96:
{
enableContainerLogging_ = input.readBool();
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
break;
} // case 96
case 104:
{
enableAccessLogging_ = input.readBool();
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
break;
} // case 104
case 114:
{
input.readMessage(
getPrivateEndpointsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
break;
} // case 114
case 120:
{
disableContainerLogging_ = input.readBool();
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
break;
} // case 120
case 138:
@@ -3382,32 +3474,32 @@ public Builder mergeFrom(
case 146:
{
modelVersionId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 146
case 152:
{
disableExplanations_ = input.readBool();
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
break;
} // case 152
case 186:
{
input.readMessage(
getFasterDeploymentConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
break;
} // case 186
case 202:
{
input.readMessage(getRolloutOptionsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
break;
} // case 202
case 210:
{
input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
break;
} // case 210
case 226:
@@ -3419,22 +3511,29 @@ public Builder mergeFrom(
internalGetMutableSystemLabels()
.getMutableMap()
.put(systemLabels__.getKey(), systemLabels__.getValue());
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
break;
} // case 226
case 234:
{
checkpointId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
break;
} // case 234
case 242:
{
input.readMessage(
getSpeculativeDecodingSpecFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
break;
} // case 242
+ case 290:
+ {
+ input.readMessage(
+ getFullFineTunedResourcesFieldBuilder().getBuilder(), extensionRegistry);
+ predictionResourcesCase_ = 36;
+ break;
+ } // case 290
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4085,6 +4184,250 @@ public Builder setSharedResourcesBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources,
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder,
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder>
+ fullFineTunedResourcesBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the fullFineTunedResources field is set.
+ */
+ @java.lang.Override
+ public boolean hasFullFineTunedResources() {
+ return predictionResourcesCase_ == 36;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The fullFineTunedResources.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getFullFineTunedResources() {
+ if (fullFineTunedResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 36) {
+ return (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance();
+ } else {
+ if (predictionResourcesCase_ == 36) {
+ return fullFineTunedResourcesBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFullFineTunedResources(
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources value) {
+ if (fullFineTunedResourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ predictionResources_ = value;
+ onChanged();
+ } else {
+ fullFineTunedResourcesBuilder_.setMessage(value);
+ }
+ predictionResourcesCase_ = 36;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFullFineTunedResources(
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder builderForValue) {
+ if (fullFineTunedResourcesBuilder_ == null) {
+ predictionResources_ = builderForValue.build();
+ onChanged();
+ } else {
+ fullFineTunedResourcesBuilder_.setMessage(builderForValue.build());
+ }
+ predictionResourcesCase_ = 36;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeFullFineTunedResources(
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources value) {
+ if (fullFineTunedResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 36
+ && predictionResources_
+ != com.google.cloud.aiplatform.v1beta1.FullFineTunedResources
+ .getDefaultInstance()) {
+ predictionResources_ =
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources)
+ predictionResources_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ predictionResources_ = value;
+ }
+ onChanged();
+ } else {
+ if (predictionResourcesCase_ == 36) {
+ fullFineTunedResourcesBuilder_.mergeFrom(value);
+ } else {
+ fullFineTunedResourcesBuilder_.setMessage(value);
+ }
+ }
+ predictionResourcesCase_ = 36;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearFullFineTunedResources() {
+ if (fullFineTunedResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 36) {
+ predictionResourcesCase_ = 0;
+ predictionResources_ = null;
+ onChanged();
+ }
+ } else {
+ if (predictionResourcesCase_ == 36) {
+ predictionResourcesCase_ = 0;
+ predictionResources_ = null;
+ }
+ fullFineTunedResourcesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder
+ getFullFineTunedResourcesBuilder() {
+ return getFullFineTunedResourcesFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder
+ getFullFineTunedResourcesOrBuilder() {
+ if ((predictionResourcesCase_ == 36) && (fullFineTunedResourcesBuilder_ != null)) {
+ return fullFineTunedResourcesBuilder_.getMessageOrBuilder();
+ } else {
+ if (predictionResourcesCase_ == 36) {
+ return (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resources for a full fine tuned model.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources,
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder,
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder>
+ getFullFineTunedResourcesFieldBuilder() {
+ if (fullFineTunedResourcesBuilder_ == null) {
+ if (!(predictionResourcesCase_ == 36)) {
+ predictionResources_ =
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance();
+ }
+ fullFineTunedResourcesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources,
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder,
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_,
+ getParentForChildren(),
+ isClean());
+ predictionResources_ = null;
+ }
+ predictionResourcesCase_ = 36;
+ onChanged();
+ return fullFineTunedResourcesBuilder_;
+ }
+
private java.lang.Object id_ = "";
/**
@@ -4159,7 +4502,7 @@ public Builder setId(java.lang.String value) {
throw new NullPointerException();
}
id_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -4180,7 +4523,7 @@ public Builder setId(java.lang.String value) {
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -4206,7 +4549,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
id_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -4300,7 +4643,7 @@ public Builder setModel(java.lang.String value) {
throw new NullPointerException();
}
model_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -4326,7 +4669,7 @@ public Builder setModel(java.lang.String value) {
*/
public Builder clearModel() {
model_ = getDefaultInstance().getModel();
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -4357,7 +4700,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
model_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -4427,7 +4770,7 @@ public Builder setModelVersionId(java.lang.String value) {
throw new NullPointerException();
}
modelVersionId_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -4445,7 +4788,7 @@ public Builder setModelVersionId(java.lang.String value) {
*/
public Builder clearModelVersionId() {
modelVersionId_ = getDefaultInstance().getModelVersionId();
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
@@ -4468,7 +4811,7 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
modelVersionId_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -4541,7 +4884,7 @@ public Builder setDisplayName(java.lang.String value) {
throw new NullPointerException();
}
displayName_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -4560,7 +4903,7 @@ public Builder setDisplayName(java.lang.String value) {
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -4584,7 +4927,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
displayName_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -4610,7 +4953,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
@@ -4656,7 +4999,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
} else {
createTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -4678,7 +5021,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -4696,7 +5039,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0)
+ if (((bitField0_ & 0x00000100) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
@@ -4707,7 +5050,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
return this;
@@ -4725,7 +5068,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearCreateTime() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
@@ -4747,7 +5090,7 @@ public Builder clearCreateTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
@@ -4836,7 +5179,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
* @return Whether the explanationSpec field is set.
*/
public boolean hasExplanationSpec() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
@@ -4910,7 +5253,7 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio
} else {
explanationSpecBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -4947,7 +5290,7 @@ public Builder setExplanationSpec(
} else {
explanationSpecBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -4979,7 +5322,7 @@ public Builder setExplanationSpec(
*/
public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) {
if (explanationSpecBuilder_ == null) {
- if (((bitField0_ & 0x00000100) != 0)
+ if (((bitField0_ & 0x00000200) != 0)
&& explanationSpec_ != null
&& explanationSpec_
!= com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()) {
@@ -4991,7 +5334,7 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat
explanationSpecBuilder_.mergeFrom(value);
}
if (explanationSpec_ != null) {
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
}
return this;
@@ -5023,7 +5366,7 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat
* .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9;
*/
public Builder clearExplanationSpec() {
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
explanationSpec_ = null;
if (explanationSpecBuilder_ != null) {
explanationSpecBuilder_.dispose();
@@ -5059,7 +5402,7 @@ public Builder clearExplanationSpec() {
* .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9;
*/
public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanationSpecBuilder() {
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return getExplanationSpecFieldBuilder().getBuilder();
}
@@ -5183,7 +5526,7 @@ public boolean getDisableExplanations() {
public Builder setDisableExplanations(boolean value) {
disableExplanations_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -5204,7 +5547,7 @@ public Builder setDisableExplanations(boolean value) {
* @return This builder for chaining.
*/
public Builder clearDisableExplanations() {
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
disableExplanations_ = false;
onChanged();
return this;
@@ -5293,7 +5636,7 @@ public Builder setServiceAccount(java.lang.String value) {
throw new NullPointerException();
}
serviceAccount_ = value;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -5317,7 +5660,7 @@ public Builder setServiceAccount(java.lang.String value) {
*/
public Builder clearServiceAccount() {
serviceAccount_ = getDefaultInstance().getServiceAccount();
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
@@ -5346,7 +5689,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
serviceAccount_ = value;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -5390,7 +5733,7 @@ public boolean getEnableContainerLogging() {
public Builder setEnableContainerLogging(boolean value) {
enableContainerLogging_ = value;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -5410,7 +5753,7 @@ public Builder setEnableContainerLogging(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableContainerLogging() {
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
enableContainerLogging_ = false;
onChanged();
return this;
@@ -5461,7 +5804,7 @@ public boolean getDisableContainerLogging() {
public Builder setDisableContainerLogging(boolean value) {
disableContainerLogging_ = value;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -5484,7 +5827,7 @@ public Builder setDisableContainerLogging(boolean value) {
* @return This builder for chaining.
*/
public Builder clearDisableContainerLogging() {
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00002000);
disableContainerLogging_ = false;
onChanged();
return this;
@@ -5537,7 +5880,7 @@ public boolean getEnableAccessLogging() {
public Builder setEnableAccessLogging(boolean value) {
enableAccessLogging_ = value;
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -5561,7 +5904,7 @@ public Builder setEnableAccessLogging(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableAccessLogging() {
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
enableAccessLogging_ = false;
onChanged();
return this;
@@ -5591,7 +5934,7 @@ public Builder clearEnableAccessLogging() {
* @return Whether the privateEndpoints field is set.
*/
public boolean hasPrivateEndpoints() {
- return ((bitField0_ & 0x00004000) != 0);
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
@@ -5643,7 +5986,7 @@ public Builder setPrivateEndpoints(com.google.cloud.aiplatform.v1beta1.PrivateEn
} else {
privateEndpointsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
return this;
}
@@ -5669,7 +6012,7 @@ public Builder setPrivateEndpoints(
} else {
privateEndpointsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
return this;
}
@@ -5691,7 +6034,7 @@ public Builder setPrivateEndpoints(
public Builder mergePrivateEndpoints(
com.google.cloud.aiplatform.v1beta1.PrivateEndpoints value) {
if (privateEndpointsBuilder_ == null) {
- if (((bitField0_ & 0x00004000) != 0)
+ if (((bitField0_ & 0x00008000) != 0)
&& privateEndpoints_ != null
&& privateEndpoints_
!= com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance()) {
@@ -5703,7 +6046,7 @@ public Builder mergePrivateEndpoints(
privateEndpointsBuilder_.mergeFrom(value);
}
if (privateEndpoints_ != null) {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
}
return this;
@@ -5724,7 +6067,7 @@ public Builder mergePrivateEndpoints(
*
*/
public Builder clearPrivateEndpoints() {
- bitField0_ = (bitField0_ & ~0x00004000);
+ bitField0_ = (bitField0_ & ~0x00008000);
privateEndpoints_ = null;
if (privateEndpointsBuilder_ != null) {
privateEndpointsBuilder_.dispose();
@@ -5750,7 +6093,7 @@ public Builder clearPrivateEndpoints() {
*/
public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder
getPrivateEndpointsBuilder() {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
return getPrivateEndpointsFieldBuilder().getBuilder();
}
@@ -5831,7 +6174,7 @@ public Builder clearPrivateEndpoints() {
* @return Whether the fasterDeploymentConfig field is set.
*/
public boolean hasFasterDeploymentConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ return ((bitField0_ & 0x00010000) != 0);
}
/**
@@ -5876,7 +6219,7 @@ public Builder setFasterDeploymentConfig(
} else {
fasterDeploymentConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -5898,7 +6241,7 @@ public Builder setFasterDeploymentConfig(
} else {
fasterDeploymentConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -5916,7 +6259,7 @@ public Builder setFasterDeploymentConfig(
public Builder mergeFasterDeploymentConfig(
com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig value) {
if (fasterDeploymentConfigBuilder_ == null) {
- if (((bitField0_ & 0x00008000) != 0)
+ if (((bitField0_ & 0x00010000) != 0)
&& fasterDeploymentConfig_ != null
&& fasterDeploymentConfig_
!= com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig
@@ -5929,7 +6272,7 @@ public Builder mergeFasterDeploymentConfig(
fasterDeploymentConfigBuilder_.mergeFrom(value);
}
if (fasterDeploymentConfig_ != null) {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
}
return this;
@@ -5946,7 +6289,7 @@ public Builder mergeFasterDeploymentConfig(
*
*/
public Builder clearFasterDeploymentConfig() {
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
fasterDeploymentConfig_ = null;
if (fasterDeploymentConfigBuilder_ != null) {
fasterDeploymentConfigBuilder_.dispose();
@@ -5968,7 +6311,7 @@ public Builder clearFasterDeploymentConfig() {
*/
public com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig.Builder
getFasterDeploymentConfigBuilder() {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return getFasterDeploymentConfigFieldBuilder().getBuilder();
}
@@ -6040,7 +6383,7 @@ public Builder clearFasterDeploymentConfig() {
* @return Whether the rolloutOptions field is set.
*/
public boolean hasRolloutOptions() {
- return ((bitField0_ & 0x00010000) != 0);
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
@@ -6082,7 +6425,7 @@ public Builder setRolloutOptions(com.google.cloud.aiplatform.v1beta1.RolloutOpti
} else {
rolloutOptionsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -6103,7 +6446,7 @@ public Builder setRolloutOptions(
} else {
rolloutOptionsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -6119,7 +6462,7 @@ public Builder setRolloutOptions(
*/
public Builder mergeRolloutOptions(com.google.cloud.aiplatform.v1beta1.RolloutOptions value) {
if (rolloutOptionsBuilder_ == null) {
- if (((bitField0_ & 0x00010000) != 0)
+ if (((bitField0_ & 0x00020000) != 0)
&& rolloutOptions_ != null
&& rolloutOptions_
!= com.google.cloud.aiplatform.v1beta1.RolloutOptions.getDefaultInstance()) {
@@ -6131,7 +6474,7 @@ public Builder mergeRolloutOptions(com.google.cloud.aiplatform.v1beta1.RolloutOp
rolloutOptionsBuilder_.mergeFrom(value);
}
if (rolloutOptions_ != null) {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
}
return this;
@@ -6147,7 +6490,7 @@ public Builder mergeRolloutOptions(com.google.cloud.aiplatform.v1beta1.RolloutOp
* .google.cloud.aiplatform.v1beta1.RolloutOptions rollout_options = 25;
*/
public Builder clearRolloutOptions() {
- bitField0_ = (bitField0_ & ~0x00010000);
+ bitField0_ = (bitField0_ & ~0x00020000);
rolloutOptions_ = null;
if (rolloutOptionsBuilder_ != null) {
rolloutOptionsBuilder_.dispose();
@@ -6167,7 +6510,7 @@ public Builder clearRolloutOptions() {
* .google.cloud.aiplatform.v1beta1.RolloutOptions rollout_options = 25;
*/
public com.google.cloud.aiplatform.v1beta1.RolloutOptions.Builder getRolloutOptionsBuilder() {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return getRolloutOptionsFieldBuilder().getBuilder();
}
@@ -6239,7 +6582,7 @@ public com.google.cloud.aiplatform.v1beta1.RolloutOptions.Builder getRolloutOpti
* @return Whether the status field is set.
*/
public boolean hasStatus() {
- return ((bitField0_ & 0x00020000) != 0);
+ return ((bitField0_ & 0x00040000) != 0);
}
/**
@@ -6285,7 +6628,7 @@ public Builder setStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Statu
} else {
statusBuilder_.setMessage(value);
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -6308,7 +6651,7 @@ public Builder setStatus(
} else {
statusBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -6326,7 +6669,7 @@ public Builder setStatus(
*/
public Builder mergeStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Status value) {
if (statusBuilder_ == null) {
- if (((bitField0_ & 0x00020000) != 0)
+ if (((bitField0_ & 0x00040000) != 0)
&& status_ != null
&& status_
!= com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance()) {
@@ -6338,7 +6681,7 @@ public Builder mergeStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Sta
statusBuilder_.mergeFrom(value);
}
if (status_ != null) {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
onChanged();
}
return this;
@@ -6356,7 +6699,7 @@ public Builder mergeStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Sta
*
*/
public Builder clearStatus() {
- bitField0_ = (bitField0_ & ~0x00020000);
+ bitField0_ = (bitField0_ & ~0x00040000);
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
@@ -6378,7 +6721,7 @@ public Builder clearStatus() {
*
*/
public com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder getStatusBuilder() {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
@@ -6452,7 +6795,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder getStat
if (!systemLabels_.isMutable()) {
systemLabels_ = systemLabels_.copy();
}
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
onChanged();
return systemLabels_;
}
@@ -6546,7 +6889,7 @@ public java.lang.String getSystemLabelsOrThrow(java.lang.String key) {
}
public Builder clearSystemLabels() {
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00080000);
internalGetMutableSystemLabels().getMutableMap().clear();
return this;
}
@@ -6572,7 +6915,7 @@ public Builder removeSystemLabels(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map+ * Optional. Resources for a full fine tuned model. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the fullFineTunedResources field is set.
+ */
+ boolean hasFullFineTunedResources();
+
+ /**
+ *
+ *
+ * + * Optional. Resources for a full fine tuned model. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The fullFineTunedResources.
+ */
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getFullFineTunedResources();
+
+ /**
+ *
+ *
+ * + * Optional. Resources for a full fine tuned model. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder
+ getFullFineTunedResourcesOrBuilder();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java
index f0f2d4fd6ac4..bee394449832 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java
@@ -155,41 +155,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n"
+ "\"aiplatform.googleapis.com/Endpoint\022string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The zone.
+ */
+ java.lang.String getZone();
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for zone.
+ */
+ com.google.protobuf.ByteString getZoneBytes();
}
/** Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable} */
@@ -372,7 +402,9 @@ private Bigtable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Bigtable() {}
+ private Bigtable() {
+ zone_ = "";
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -2488,6 +2520,63 @@ public boolean hasBigtableMetadata() {
: bigtableMetadata_;
}
+ public static final int ZONE_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object zone_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The zone.
+ */
+ @java.lang.Override
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ 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();
+ zone_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for zone.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2511,6 +2600,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getBigtableMetadata());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, zone_);
+ }
getUnknownFields().writeTo(output);
}
@@ -2530,6 +2622,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBigtableMetadata());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, zone_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2555,6 +2650,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasBigtableMetadata()) {
if (!getBigtableMetadata().equals(other.getBigtableMetadata())) return false;
}
+ if (!getZone().equals(other.getZone())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2577,6 +2673,8 @@ public int hashCode() {
hash = (37 * hash) + BIGTABLE_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getBigtableMetadata().hashCode();
}
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2735,6 +2833,7 @@ public Builder clear() {
bigtableMetadataBuilder_.dispose();
bigtableMetadataBuilder_ = null;
}
+ zone_ = "";
return this;
}
@@ -2789,6 +2888,9 @@ private void buildPartial0(
: bigtableMetadataBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.zone_ = zone_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -2851,6 +2953,11 @@ public Builder mergeFrom(
if (other.hasBigtableMetadata()) {
mergeBigtableMetadata(other.getBigtableMetadata());
}
+ if (!other.getZone().isEmpty()) {
+ zone_ = other.zone_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2896,6 +3003,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 34
+ case 42:
+ {
+ zone_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3431,6 +3544,127 @@ public Builder clearBigtableMetadata() {
return bigtableMetadataBuilder_;
}
+ private java.lang.Object zone_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The zone.
+ */
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ zone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for zone.
+ */
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ zone_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearZone() {
+ zone_ = getDefaultInstance().getZone();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + *+ * + *
string zone = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ zone_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -6583,7 +6817,7 @@ public boolean hasDedicatedServingEndpoint() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201
* @return Whether the embeddingManagement field is set.
*/
@java.lang.Override
@@ -6605,7 +6839,7 @@ public boolean hasEmbeddingManagement() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201
* @return The embeddingManagement.
*/
@java.lang.Override
@@ -9300,7 +9534,7 @@ public Builder clearDedicatedServingEndpoint() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201
* @return Whether the embeddingManagement field is set.
*/
@java.lang.Deprecated
@@ -9321,7 +9555,7 @@ public boolean hasEmbeddingManagement() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201
* @return The embeddingManagement.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java
index 4708429808b9..72db5aa097e7 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java
@@ -456,7 +456,7 @@ java.lang.String getLabelsOrDefault(
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201
* @return Whether the embeddingManagement field is set.
*/
@java.lang.Deprecated
@@ -475,7 +475,7 @@ java.lang.String getLabelsOrDefault(
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201
* @return The embeddingManagement.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java
index dedc6fe90a10..45c5fa01507c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java
@@ -69,67 +69,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n:google/cloud/aiplatform/v1beta1/featur"
- + "e_online_store.proto\022\037google.cloud.aipla"
+ "\n"
+ + ":google/cloud/aiplatform/v1beta1/feature_online_store.proto\022\037google.cloud.aipla"
+ "tform.v1beta1\032\037google/api/field_behavior"
+ ".proto\032\031google/api/resource.proto\0325googl"
- + "e/cloud/aiplatform/v1beta1/encryption_sp"
- + "ec.proto\0328google/cloud/aiplatform/v1beta"
- + "1/service_networking.proto\032\037google/proto"
- + "buf/timestamp.proto\"\304\016\n\022FeatureOnlineSto"
- + "re\022P\n\010bigtable\030\010 \001(\0132<.google.cloud.aipl"
- + "atform.v1beta1.FeatureOnlineStore.Bigtab"
- + "leH\000\022R\n\toptimized\030\014 \001(\0132=.google.cloud.a"
- + "iplatform.v1beta1.FeatureOnlineStore.Opt"
- + "imizedH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_ti"
- + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A"
- + "\003\0224\n\013update_time\030\004 \001(\0132\032.google.protobuf"
- + ".TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003\340A\001\022T\n\006la"
- + "bels\030\006 \003(\0132?.google.cloud.aiplatform.v1b"
- + "eta1.FeatureOnlineStore.LabelsEntryB\003\340A\001"
- + "\022M\n\005state\030\007 \001(\01629.google.cloud.aiplatfor"
- + "m.v1beta1.FeatureOnlineStore.StateB\003\340A\003\022"
- + "u\n\032dedicated_serving_endpoint\030\n \001(\0132L.go"
- + "ogle.cloud.aiplatform.v1beta1.FeatureOnl"
- + "ineStore.DedicatedServingEndpointB\003\340A\001\022l"
- + "\n\024embedding_management\030\013 \001(\0132G.google.cl"
- + "oud.aiplatform.v1beta1.FeatureOnlineStor"
- + "e.EmbeddingManagementB\005\030\001\340A\001\022M\n\017encrypti"
- + "on_spec\030\r \001(\0132/.google.cloud.aiplatform."
- + "v1beta1.EncryptionSpecB\003\340A\001\022\032\n\rsatisfies"
- + "_pzs\030\017 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\020 \001(\010B\003"
- + "\340A\003\032\316\003\n\010Bigtable\022c\n\014auto_scaling\030\001 \001(\0132H"
- + ".google.cloud.aiplatform.v1beta1.Feature"
- + "OnlineStore.Bigtable.AutoScalingB\003\340A\002\022*\n"
- + "\035enable_direct_bigtable_access\030\003 \001(\010B\003\340A"
- + "\001\022m\n\021bigtable_metadata\030\004 \001(\0132M.google.cl"
- + "oud.aiplatform.v1beta1.FeatureOnlineStor"
- + "e.Bigtable.BigtableMetadataB\003\340A\003\032l\n\013Auto"
- + "Scaling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016"
- + "max_node_count\030\002 \001(\005B\003\340A\002\022#\n\026cpu_utiliza"
- + "tion_target\030\003 \001(\005B\003\340A\001\032T\n\020BigtableMetada"
- + "ta\022\031\n\021tenant_project_id\030\001 \001(\t\022\023\n\013instanc"
- + "e_id\030\002 \001(\t\022\020\n\010table_id\030\003 \001(\t\032\013\n\tOptimize"
- + "d\032\320\001\n\030DedicatedServingEndpoint\022(\n\033public"
- + "_endpoint_domain_name\030\002 \001(\tB\003\340A\003\022i\n\036priv"
- + "ate_service_connect_config\030\003 \001(\0132<.googl"
- + "e.cloud.aiplatform.v1beta1.PrivateServic"
- + "eConnectConfigB\003\340A\001\022\037\n\022service_attachmen"
- + "t\030\004 \001(\tB\003\340A\003\0322\n\023EmbeddingManagement\022\027\n\007e"
- + "nabled\030\001 \001(\010B\006\340A\001\340A\005:\002\030\001\032-\n\013LabelsEntry\022"
- + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State"
- + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010U"
- + "PDATING\020\002:\206\001\352A\202\001\n,aiplatform.googleapis."
- + "com/FeatureOnlineStore\022Rprojects/{projec"
- + "t}/locations/{location}/featureOnlineSto"
- + "res/{feature_online_store}B\016\n\014storage_ty"
- + "peB\356\001\n#com.google.cloud.aiplatform.v1bet"
- + "a1B\027FeatureOnlineStoreProtoP\001ZCcloud.goo"
- + "gle.com/go/aiplatform/apiv1beta1/aiplatf"
- + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat"
- + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V"
- + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be"
- + "ta1b\006proto3"
+ + "e/cloud/aiplatform/v1beta1/encryption_spec.proto\0328google/cloud/aiplatform/v1beta"
+ + "1/service_networking.proto\032\037google/protobuf/timestamp.proto\"\327\016\n"
+ + "\022FeatureOnlineStore\022P\n"
+ + "\010bigtable\030\010 \001(\0132<.google.cloud.aipl"
+ + "atform.v1beta1.FeatureOnlineStore.BigtableH\000\022R\n"
+ + "\toptimized\030\014 \001(\0132=.google.cloud.a"
+ + "iplatform.v1beta1.FeatureOnlineStore.OptimizedH\000\022\021\n"
+ + "\004name\030\001 \001(\tB\003\340A\010\0224\n"
+ + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ + "\013update_time\030\004"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n"
+ + "\004etag\030\005 \001(\tB\003\340A\001\022T\n"
+ + "\006labels\030\006 \003(\0132?.google.cloud.aiplatform.v1b"
+ + "eta1.FeatureOnlineStore.LabelsEntryB\003\340A\001\022M\n"
+ + "\005state\030\007 \001(\01629.google.cloud.aiplatfor"
+ + "m.v1beta1.FeatureOnlineStore.StateB\003\340A\003\022u\n"
+ + "\032dedicated_serving_endpoint\030\n"
+ + " \001(\0132L.google.cloud.aiplatform.v1beta1.FeatureOnl"
+ + "ineStore.DedicatedServingEndpointB\003\340A\001\022l\n"
+ + "\024embedding_management\030\013 \001(\0132G.google.cl"
+ + "oud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagementB\005\030\001\340A\001\022M\n"
+ + "\017encryption_spec\030\r"
+ + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpecB\003\340A\001\022\032\n\r"
+ + "satisfies_pzs\030\017 \001(\010B\003\340A\003\022\032\n\r"
+ + "satisfies_pzi\030\020 \001(\010B\003\340A\003\032\341\003\n"
+ + "\010Bigtable\022c\n"
+ + "\014auto_scaling\030\001 \001(\0132H"
+ + ".google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScalingB\003\340A\002\022*\n"
+ + "\035enable_direct_bigtable_access\030\003 \001(\010B\003\340A\001\022m\n"
+ + "\021bigtable_metadata\030\004 \001(\0132M.google.cl"
+ + "oud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadataB\003\340A\003\022\021\n"
+ + "\004zone\030\005 \001(\tB\003\340A\001\032l\n"
+ + "\013AutoScaling\022\033\n"
+ + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n"
+ + "\016max_node_count\030\002 \001(\005B\003\340A\002\022#\n"
+ + "\026cpu_utilization_target\030\003 \001(\005B\003\340A\001\032T\n"
+ + "\020BigtableMetadata\022\031\n"
+ + "\021tenant_project_id\030\001 \001(\t\022\023\n"
+ + "\013instance_id\030\002 \001(\t\022\020\n"
+ + "\010table_id\030\003 \001(\t\032\013\n"
+ + "\tOptimized\032\320\001\n"
+ + "\030DedicatedServingEndpoint\022(\n"
+ + "\033public_endpoint_domain_name\030\002 \001(\tB\003\340A\003\022i\n"
+ + "\036private_service_connect_config\030\003 \001(\0132<.google.cloud.aiplatform.v1"
+ + "beta1.PrivateServiceConnectConfigB\003\340A\001\022\037\n"
+ + "\022service_attachment\030\004 \001(\tB\003\340A\003\0322\n"
+ + "\023EmbeddingManagement\022\027\n"
+ + "\007enabled\030\001 \001(\010B\006\340A\001\340A\005:\002\030\001\032-\n"
+ + "\013LabelsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022\r\n"
+ + "\005value\030\002 \001(\t:\0028\001\"8\n"
+ + "\005State\022\025\n"
+ + "\021STATE_UNSPECIFIED\020\000\022\n\n"
+ + "\006STABLE\020\001\022\014\n"
+ + "\010UPDATING\020\002:\206\001\352A\202\001\n"
+ + ",aiplatform.googleapis.com/FeatureOnlineStor"
+ + "e\022Rprojects/{project}/locations/{locatio"
+ + "n}/featureOnlineStores/{feature_online_store}B\016\n"
+ + "\014storage_typeB\356\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\027FeatureOnlineStor"
+ + "eProtoP\001ZCcloud.google.com/go/aiplatform"
+ + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037"
+ + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google"
+ + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -170,7 +177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_descriptor,
new java.lang.String[] {
- "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata",
+ "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata", "Zone",
});
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_descriptor
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResources.java
new file mode 100644
index 000000000000..7df23c7a7c34
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResources.java
@@ -0,0 +1,948 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1beta1/machine_resources.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Resources for an fft model. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FullFineTunedResources} + */ +public final class FullFineTunedResources extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FullFineTunedResources) + FullFineTunedResourcesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FullFineTunedResources.newBuilder() to construct. + private FullFineTunedResources(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FullFineTunedResources() { + deploymentType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FullFineTunedResources(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.class, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder.class); + } + + /** + * + * + *
+ * The type of deployment. + *+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType} + */ + public enum DeploymentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified deployment type. + *+ * + *
DEPLOYMENT_TYPE_UNSPECIFIED = 0;
+ */
+ DEPLOYMENT_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Eval deployment type. + *+ * + *
DEPLOYMENT_TYPE_EVAL = 1;
+ */
+ DEPLOYMENT_TYPE_EVAL(1),
+ /**
+ *
+ *
+ * + * Prod deployment type. + *+ * + *
DEPLOYMENT_TYPE_PROD = 2;
+ */
+ DEPLOYMENT_TYPE_PROD(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified deployment type. + *+ * + *
DEPLOYMENT_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int DEPLOYMENT_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Eval deployment type. + *+ * + *
DEPLOYMENT_TYPE_EVAL = 1;
+ */
+ public static final int DEPLOYMENT_TYPE_EVAL_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Prod deployment type. + *+ * + *
DEPLOYMENT_TYPE_PROD = 2;
+ */
+ public static final int DEPLOYMENT_TYPE_PROD_VALUE = 2;
+
+ 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 DeploymentType 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 DeploymentType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return DEPLOYMENT_TYPE_UNSPECIFIED;
+ case 1:
+ return DEPLOYMENT_TYPE_EVAL;
+ case 2:
+ return DEPLOYMENT_TYPE_PROD;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for deploymentType.
+ */
+ @java.lang.Override
+ public int getDeploymentTypeValue() {
+ return deploymentType_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The deploymentType.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType
+ getDeploymentType() {
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType result =
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType.forNumber(
+ deploymentType_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int MODEL_INFERENCE_UNIT_COUNT_FIELD_NUMBER = 2;
+ private int modelInferenceUnitCount_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The number of model inference units to use for this deployment. + * This can only be specified for DEPLOYMENT_TYPE_PROD. + * The following table lists the number of model inference units for different + * model types: + * * Gemini 2.5 Flash + * * Foundation FMIU: 25 + * * Expansion FMIU: 4 + * * Gemini 2.5 Pro + * * Foundation FMIU: 32 + * * Expansion FMIU: 16 + * * Veo 3.0 (undistilled) + * * Foundation FMIU: 63 + * * Expansion FMIU: 7 + * * Veo 3.0 (distilled) + * * Foundation FMIU: 30 + * * Expansion FMIU: 10 + *+ * + *
int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The modelInferenceUnitCount.
+ */
+ @java.lang.Override
+ public int getModelInferenceUnitCount() {
+ return modelInferenceUnitCount_;
+ }
+
+ 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 (deploymentType_
+ != com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType
+ .DEPLOYMENT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, deploymentType_);
+ }
+ if (modelInferenceUnitCount_ != 0) {
+ output.writeInt32(2, modelInferenceUnitCount_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (deploymentType_
+ != com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType
+ .DEPLOYMENT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, deploymentType_);
+ }
+ if (modelInferenceUnitCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, modelInferenceUnitCount_);
+ }
+ 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.aiplatform.v1beta1.FullFineTunedResources)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources other =
+ (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) obj;
+
+ if (deploymentType_ != other.deploymentType_) return false;
+ if (getModelInferenceUnitCount() != other.getModelInferenceUnitCount()) 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) + DEPLOYMENT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + deploymentType_;
+ hash = (37 * hash) + MODEL_INFERENCE_UNIT_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getModelInferenceUnitCount();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources 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.aiplatform.v1beta1.FullFineTunedResources parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources 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.aiplatform.v1beta1.FullFineTunedResources parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1beta1.FullFineTunedResources 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Resources for an fft model. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FullFineTunedResources} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for deploymentType.
+ */
+ @java.lang.Override
+ public int getDeploymentTypeValue() {
+ return deploymentType_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The enum numeric value on the wire for deploymentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeploymentTypeValue(int value) {
+ deploymentType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The deploymentType.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType
+ getDeploymentType() {
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType result =
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType.forNumber(
+ deploymentType_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The deploymentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeploymentType(
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ deploymentType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDeploymentType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ deploymentType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int modelInferenceUnitCount_;
+
+ /**
+ *
+ *
+ * + * Optional. The number of model inference units to use for this deployment. + * This can only be specified for DEPLOYMENT_TYPE_PROD. + * The following table lists the number of model inference units for different + * model types: + * * Gemini 2.5 Flash + * * Foundation FMIU: 25 + * * Expansion FMIU: 4 + * * Gemini 2.5 Pro + * * Foundation FMIU: 32 + * * Expansion FMIU: 16 + * * Veo 3.0 (undistilled) + * * Foundation FMIU: 63 + * * Expansion FMIU: 7 + * * Veo 3.0 (distilled) + * * Foundation FMIU: 30 + * * Expansion FMIU: 10 + *+ * + *
int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The modelInferenceUnitCount.
+ */
+ @java.lang.Override
+ public int getModelInferenceUnitCount() {
+ return modelInferenceUnitCount_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The number of model inference units to use for this deployment. + * This can only be specified for DEPLOYMENT_TYPE_PROD. + * The following table lists the number of model inference units for different + * model types: + * * Gemini 2.5 Flash + * * Foundation FMIU: 25 + * * Expansion FMIU: 4 + * * Gemini 2.5 Pro + * * Foundation FMIU: 32 + * * Expansion FMIU: 16 + * * Veo 3.0 (undistilled) + * * Foundation FMIU: 63 + * * Expansion FMIU: 7 + * * Veo 3.0 (distilled) + * * Foundation FMIU: 30 + * * Expansion FMIU: 10 + *+ * + *
int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The modelInferenceUnitCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelInferenceUnitCount(int value) {
+
+ modelInferenceUnitCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The number of model inference units to use for this deployment. + * This can only be specified for DEPLOYMENT_TYPE_PROD. + * The following table lists the number of model inference units for different + * model types: + * * Gemini 2.5 Flash + * * Foundation FMIU: 25 + * * Expansion FMIU: 4 + * * Gemini 2.5 Pro + * * Foundation FMIU: 32 + * * Expansion FMIU: 16 + * * Veo 3.0 (undistilled) + * * Foundation FMIU: 63 + * * Expansion FMIU: 7 + * * Veo 3.0 (distilled) + * * Foundation FMIU: 30 + * * Expansion FMIU: 10 + *+ * + *
int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearModelInferenceUnitCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ modelInferenceUnitCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.FullFineTunedResources)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FullFineTunedResources)
+ private static final com.google.cloud.aiplatform.v1beta1.FullFineTunedResources DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FullFineTunedResources();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for deploymentType.
+ */
+ int getDeploymentTypeValue();
+
+ /**
+ *
+ *
+ * + * Required. The kind of deployment. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The deploymentType.
+ */
+ com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType getDeploymentType();
+
+ /**
+ *
+ *
+ * + * Optional. The number of model inference units to use for this deployment. + * This can only be specified for DEPLOYMENT_TYPE_PROD. + * The following table lists the number of model inference units for different + * model types: + * * Gemini 2.5 Flash + * * Foundation FMIU: 25 + * * Expansion FMIU: 4 + * * Gemini 2.5 Pro + * * Foundation FMIU: 32 + * * Expansion FMIU: 16 + * * Veo 3.0 (undistilled) + * * Foundation FMIU: 63 + * * Expansion FMIU: 7 + * * Veo 3.0 (distilled) + * * Foundation FMIU: 30 + * * Expansion FMIU: 10 + *+ * + *
int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The modelInferenceUnitCount.
+ */
+ int getModelInferenceUnitCount();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java
index eeeac8751148..9b47a3738b1b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java
@@ -523,7 +523,7 @@ public com.google.cloud.aiplatform.v1beta1.SharePointSources getSharePointSource
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710
* @return Whether the partialFailureGcsSink field is set.
*/
@java.lang.Override
@@ -545,7 +545,7 @@ public boolean hasPartialFailureGcsSink() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710
* @return The partialFailureGcsSink.
*/
@java.lang.Override
@@ -599,7 +599,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getPartialFailureGcsSi
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink
- * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698
+ * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719
* @return Whether the partialFailureBigquerySink field is set.
*/
@java.lang.Override
@@ -626,7 +626,7 @@ public boolean hasPartialFailureBigquerySink() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink
- * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698
+ * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719
* @return The partialFailureBigquerySink.
*/
@java.lang.Override
@@ -808,7 +808,7 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getImportResultBi
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738
* @return Whether the ragFileChunkingConfig field is set.
*/
@java.lang.Override
@@ -829,7 +829,7 @@ public boolean hasRagFileChunkingConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738
* @return The ragFileChunkingConfig.
*/
@java.lang.Override
@@ -3239,7 +3239,7 @@ public Builder clearSharePointSources() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710
* @return Whether the partialFailureGcsSink field is set.
*/
@java.lang.Override
@@ -3261,7 +3261,7 @@ public boolean hasPartialFailureGcsSink() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710
* @return The partialFailureGcsSink.
*/
@java.lang.Override
@@ -3508,7 +3508,7 @@ public Builder clearPartialFailureGcsSink() {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719
* @return Whether the partialFailureBigquerySink field is set.
*/
@java.lang.Override
@@ -3536,7 +3536,7 @@ public boolean hasPartialFailureBigquerySink() {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719
* @return The partialFailureBigquerySink.
*/
@java.lang.Override
@@ -4314,7 +4314,7 @@ public Builder clearImportResultBigquerySink() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738
* @return Whether the ragFileChunkingConfig field is set.
*/
@java.lang.Deprecated
@@ -4334,7 +4334,7 @@ public boolean hasRagFileChunkingConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738
* @return The ragFileChunkingConfig.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java
index 52b99f4b57a1..1af43e4f6932 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java
@@ -234,7 +234,7 @@ public interface ImportRagFilesConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710
* @return Whether the partialFailureGcsSink field is set.
*/
@java.lang.Deprecated
@@ -253,7 +253,7 @@ public interface ImportRagFilesConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710
* @return The partialFailureGcsSink.
*/
@java.lang.Deprecated
@@ -292,7 +292,7 @@ public interface ImportRagFilesConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink
- * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698
+ * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719
* @return Whether the partialFailureBigquerySink field is set.
*/
@java.lang.Deprecated
@@ -316,7 +316,7 @@ public interface ImportRagFilesConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink
- * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698
+ * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719
* @return The partialFailureBigquerySink.
*/
@java.lang.Deprecated
@@ -448,7 +448,7 @@ public interface ImportRagFilesConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738
* @return Whether the ragFileChunkingConfig field is set.
*/
@java.lang.Deprecated
@@ -466,7 +466,7 @@ public interface ImportRagFilesConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738
* @return The ragFileChunkingConfig.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java
index 78f9132db386..406ad3f25531 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java
@@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_BatchDedicatedResources_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_BatchDedicatedResources_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -93,7 +97,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "7google/cloud/aiplatform/v1beta1/machine_resources.proto\022\037google.cloud.aiplatfo"
+ "rm.v1beta1\032\037google/api/field_behavior.pr"
+ "oto\0326google/cloud/aiplatform/v1beta1/accelerator_type.proto\032:google/cloud/aiplat"
- + "form/v1beta1/reservation_affinity.proto\032\036google/protobuf/duration.proto\"\331\002\n"
+ + "form/v1beta1/reservation_affinity.proto\032\036google/protobuf/duration.proto\"\201\003\n"
+ "\013MachineSpec\022\031\n"
+ "\014machine_type\030\001 \001(\tB\003\340A\005\022O\n"
+ "\020accelerator_type\030\002"
@@ -103,7 +107,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014tpu_topology\030\004 \001(\tB\003\340A\005\022(\n"
+ "\030multihost_gpu_node_count\030\006 \001(\005B\006\340A\005\340A\001\022Z\n"
+ "\024reservation_affinity\030\005 \001(\01324."
- + "google.cloud.aiplatform.v1beta1.ReservationAffinityB\006\340A\005\340A\001\"\233\005\n"
+ + "google.cloud.aiplatform.v1beta1.ReservationAffinityB\006\340A\005\340A\001\022&\n"
+ + "\026min_gpu_driver_version\030\t \001(\tB\006\340A\001\340A\005\"\233\005\n"
+ "\022DedicatedResources\022J\n"
+ "\014machine_spec\030\001 \001(\0132,.google.cloud."
+ "aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022!\n"
@@ -133,7 +138,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021max_replica_count\030\003 \001(\005B\003\340A\005\022F\n\n"
+ "flex_start\030\004"
+ " \001(\0132*.google.cloud.aiplatform.v1beta1.FlexStartB\006\340A\005\340A\001\022\021\n"
- + "\004spot\030\005 \001(\010B\003\340A\001\"/\n"
+ + "\004spot\030\005 \001(\010B\003\340A\001\"\216\002\n"
+ + "\026FullFineTunedResources\022d\n"
+ + "\017deployment_type\030\001 \001(\0162F.google.cloud.aiplatform.v1"
+ + "beta1.FullFineTunedResources.DeploymentTypeB\003\340A\002\022\'\n"
+ + "\032model_inference_unit_count\030\002 \001(\005B\003\340A\001\"e\n"
+ + "\016DeploymentType\022\037\n"
+ + "\033DEPLOYMENT_TYPE_UNSPECIFIED\020\000\022\030\n"
+ + "\024DEPLOYMENT_TYPE_EVAL\020\001\022\030\n"
+ + "\024DEPLOYMENT_TYPE_PROD\020\002\"/\n"
+ "\021ResourcesConsumed\022\032\n\r"
+ "replica_hours\030\001 \001(\001B\003\340A\003\"=\n"
+ "\010DiskSpec\022\026\n"
@@ -149,9 +162,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\025AutoscalingMetricSpec\022\030\n"
+ "\013metric_name\030\001 \001(\tB\003\340A\002\022\016\n"
+ "\006target\030\002 \001(\005\022{\n"
- + "\031monitored_resource_labels\030\003 \003(\0132S.go"
- + "ogle.cloud.aiplatform.v1beta1.Autoscalin"
- + "gMetricSpec.MonitoredResourceLabelsEntryB\003\340A\001\032>\n"
+ + "\031monitored_resource_labels\030\003 \003(\0132S.google.cl"
+ + "oud.aiplatform.v1beta1.AutoscalingMetric"
+ + "Spec.MonitoredResourceLabelsEntryB\003\340A\001\032>\n"
+ "\034MonitoredResourceLabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001\".\n"
@@ -159,11 +172,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022enable_secure_boot\030\001 \001(\010\"D\n"
+ "\tFlexStart\0227\n"
+ "\024max_runtime_duration\030\001 \001(\0132\031.google.protobuf.DurationB\354\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\025MachineReso"
- + "urcesProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformp"
- + "b\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Go"
- + "ogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::"
- + "Cloud::AIPlatform::V1beta1b\006proto3"
+ + "#com.google.cloud.aiplatform.v1beta1B\025MachineResourcesPr"
+ + "otoP\001ZCcloud.google.com/go/aiplatform/ap"
+ + "iv1beta1/aiplatformpb;aiplatformpb\252\002\037Goo"
+ + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl"
+ + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -187,6 +200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"TpuTopology",
"MultihostGpuNodeCount",
"ReservationAffinity",
+ "MinGpuDriverVersion",
});
internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_descriptor =
getDescriptor().getMessageTypes().get(1);
@@ -230,8 +244,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"MachineSpec", "StartingReplicaCount", "MaxReplicaCount", "FlexStart", "Spot",
});
- internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor =
getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor,
+ new java.lang.String[] {
+ "DeploymentType", "ModelInferenceUnitCount",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_descriptor =
+ getDescriptor().getMessageTypes().get(5);
internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_descriptor,
@@ -239,7 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ReplicaHours",
});
internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(6);
internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_descriptor,
@@ -247,7 +269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"BootDiskType", "BootDiskSizeGb",
});
internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor,
@@ -255,7 +277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"DiskType", "DiskSizeGb",
});
internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_cloud_aiplatform_v1beta1_NfsMount_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor,
@@ -263,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Server", "Path", "MountPoint",
});
internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(9);
internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor,
@@ -281,7 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_aiplatform_v1beta1_ShieldedVmConfig_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(10);
internal_static_google_cloud_aiplatform_v1beta1_ShieldedVmConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_ShieldedVmConfig_descriptor,
@@ -289,7 +311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"EnableSecureBoot",
});
internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(11);
internal_static_google_cloud_aiplatform_v1beta1_FlexStart_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java
index 4cb7f8be8e05..00af546eeb06 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java
@@ -44,6 +44,7 @@ private MachineSpec() {
acceleratorType_ = 0;
gpuPartitionSize_ = "";
tpuTopology_ = "";
+ minGpuDriverVersion_ = "";
}
@java.lang.Override
@@ -434,6 +435,67 @@ public com.google.cloud.aiplatform.v1beta1.ReservationAffinity getReservationAff
: reservationAffinity_;
}
+ public static final int MIN_GPU_DRIVER_VERSION_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object minGpuDriverVersion_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The minGpuDriverVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getMinGpuDriverVersion() {
+ java.lang.Object ref = minGpuDriverVersion_;
+ 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();
+ minGpuDriverVersion_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for minGpuDriverVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMinGpuDriverVersionBytes() {
+ java.lang.Object ref = minGpuDriverVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ minGpuDriverVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -471,6 +533,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gpuPartitionSize_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minGpuDriverVersion_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minGpuDriverVersion_);
+ }
getUnknownFields().writeTo(output);
}
@@ -503,6 +568,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gpuPartitionSize_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minGpuDriverVersion_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minGpuDriverVersion_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -529,6 +597,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasReservationAffinity()) {
if (!getReservationAffinity().equals(other.getReservationAffinity())) return false;
}
+ if (!getMinGpuDriverVersion().equals(other.getMinGpuDriverVersion())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -556,6 +625,8 @@ public int hashCode() {
hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER;
hash = (53 * hash) + getReservationAffinity().hashCode();
}
+ hash = (37 * hash) + MIN_GPU_DRIVER_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getMinGpuDriverVersion().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -716,6 +787,7 @@ public Builder clear() {
reservationAffinityBuilder_.dispose();
reservationAffinityBuilder_ = null;
}
+ minGpuDriverVersion_ = "";
return this;
}
@@ -778,6 +850,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MachineSpec resul
: reservationAffinityBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.minGpuDriverVersion_ = minGpuDriverVersion_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -854,6 +929,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MachineSpec other)
if (other.hasReservationAffinity()) {
mergeReservationAffinity(other.getReservationAffinity());
}
+ if (!other.getMinGpuDriverVersion().isEmpty()) {
+ minGpuDriverVersion_ = other.minGpuDriverVersion_;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -923,6 +1003,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 58
+ case 74:
+ {
+ minGpuDriverVersion_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 74
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1880,6 +1966,137 @@ public Builder clearReservationAffinity() {
return reservationAffinityBuilder_;
}
+ private java.lang.Object minGpuDriverVersion_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The minGpuDriverVersion.
+ */
+ public java.lang.String getMinGpuDriverVersion() {
+ java.lang.Object ref = minGpuDriverVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ minGpuDriverVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for minGpuDriverVersion.
+ */
+ public com.google.protobuf.ByteString getMinGpuDriverVersionBytes() {
+ java.lang.Object ref = minGpuDriverVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ minGpuDriverVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The minGpuDriverVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinGpuDriverVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ minGpuDriverVersion_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMinGpuDriverVersion() {
+ minGpuDriverVersion_ = getDefaultInstance().getMinGpuDriverVersion();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The bytes for minGpuDriverVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinGpuDriverVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ minGpuDriverVersion_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java
index e99f4d0f24bb..de2a660e643b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java
@@ -267,4 +267,38 @@ public interface MachineSpecOrBuilder
*/
com.google.cloud.aiplatform.v1beta1.ReservationAffinityOrBuilder
getReservationAffinityOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The minGpuDriverVersion.
+ */
+ java.lang.String getMinGpuDriverVersion();
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The minimum GPU driver version that this machine + * requires. For example, "535.104.06". If not specified, the default GPU + * driver version will be used by the underlying infrastructure. + *+ * + *
+ * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for minGpuDriverVersion.
+ */
+ com.google.protobuf.ByteString getMinGpuDriverVersionBytes();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfig.java
new file mode 100644
index 000000000000..4ba0e3d91fb8
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfig.java
@@ -0,0 +1,1052 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1beta1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Configuration for a multi-speaker text-to-speech request. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} + */ +public final class MultiSpeakerVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) + MultiSpeakerVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MultiSpeakerVoiceConfig.newBuilder() to construct. + private MultiSpeakerVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private MultiSpeakerVoiceConfig() { + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiSpeakerVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder.class); + } + + public static final int SPEAKER_VOICE_CONFIGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List
+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder>
+ getSpeakerVoiceConfigsOrBuilderList() {
+ return speakerVoiceConfigs_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getSpeakerVoiceConfigsCount() {
+ return speakerVoiceConfigs_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index) {
+ return speakerVoiceConfigs_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder
+ getSpeakerVoiceConfigsOrBuilder(int index) {
+ return speakerVoiceConfigs_.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 {
+ for (int i = 0; i < speakerVoiceConfigs_.size(); i++) {
+ output.writeMessage(2, speakerVoiceConfigs_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < speakerVoiceConfigs_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, speakerVoiceConfigs_.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.aiplatform.v1beta1.MultiSpeakerVoiceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig other =
+ (com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) obj;
+
+ if (!getSpeakerVoiceConfigsList().equals(other.getSpeakerVoiceConfigsList())) 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();
+ if (getSpeakerVoiceConfigsCount() > 0) {
+ hash = (37 * hash) + SPEAKER_VOICE_CONFIGS_FIELD_NUMBER;
+ hash = (53 * hash) + getSpeakerVoiceConfigsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig 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.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig 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.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1beta1.MultiSpeakerVoiceConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Configuration for a multi-speaker text-to-speech request. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getSpeakerVoiceConfigsCount() {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ return speakerVoiceConfigs_.size();
+ } else {
+ return speakerVoiceConfigsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getSpeakerVoiceConfigs(
+ int index) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ return speakerVoiceConfigs_.get(index);
+ } else {
+ return speakerVoiceConfigsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setSpeakerVoiceConfigs(
+ int index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig value) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.set(index, value);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setSpeakerVoiceConfigs(
+ int index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder builderForValue) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addSpeakerVoiceConfigs(
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig value) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.add(value);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addSpeakerVoiceConfigs(
+ int index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig value) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.add(index, value);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addSpeakerVoiceConfigs(
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder builderForValue) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addSpeakerVoiceConfigs(
+ int index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder builderForValue) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllSpeakerVoiceConfigs(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig>
+ values) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speakerVoiceConfigs_);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearSpeakerVoiceConfigs() {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ speakerVoiceConfigs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeSpeakerVoiceConfigs(int index) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ ensureSpeakerVoiceConfigsIsMutable();
+ speakerVoiceConfigs_.remove(index);
+ onChanged();
+ } else {
+ speakerVoiceConfigsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder
+ getSpeakerVoiceConfigsBuilder(int index) {
+ return getSpeakerVoiceConfigsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder
+ getSpeakerVoiceConfigsOrBuilder(int index) {
+ if (speakerVoiceConfigsBuilder_ == null) {
+ return speakerVoiceConfigs_.get(index);
+ } else {
+ return speakerVoiceConfigsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder>
+ getSpeakerVoiceConfigsOrBuilderList() {
+ if (speakerVoiceConfigsBuilder_ != null) {
+ return speakerVoiceConfigsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(speakerVoiceConfigs_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder
+ addSpeakerVoiceConfigsBuilder() {
+ return getSpeakerVoiceConfigsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder
+ addSpeakerVoiceConfigsBuilder(int index) {
+ return getSpeakerVoiceConfigsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index);
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getSpeakerVoiceConfigsCount();
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder>
+ getSpeakerVoiceConfigsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Required. A list of configurations for the voices of the speakers. Exactly + * two speaker voice configurations must be provided. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder getSpeakerVoiceConfigsOrBuilder(
+ int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java
index 0cef861b82bf..bc29b052674e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java
@@ -3048,7 +3048,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360
* @return Whether the ragEmbeddingModelConfig field is set.
*/
@java.lang.Override
@@ -3069,7 +3069,7 @@ public boolean hasRagEmbeddingModelConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360
* @return The ragEmbeddingModelConfig.
*/
@java.lang.Override
@@ -3115,7 +3115,7 @@ public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddi
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367
* @return Whether the ragVectorDbConfig field is set.
*/
@java.lang.Override
@@ -3136,7 +3136,7 @@ public boolean hasRagVectorDbConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367
* @return The ragVectorDbConfig.
*/
@java.lang.Override
@@ -3338,6 +3338,9 @@ public com.google.cloud.aiplatform.v1beta1.CorpusStatusOrBuilder getCorpusStatus
*
*
* Output only. Number of RagFiles in the RagCorpus.
+ *
+ * NOTE: This field is not populated in the response of
+ * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
*
*
* int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3477,6 +3480,44 @@ public com.google.cloud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfig getCorpusT
: corpusTypeConfig_;
}
+ public static final int SATISFIES_PZS_FIELD_NUMBER = 19;
+ private boolean satisfiesPzs_ = false;
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ @java.lang.Override
+ public boolean getSatisfiesPzs() {
+ return satisfiesPzs_;
+ }
+
+ public static final int SATISFIES_PZI_FIELD_NUMBER = 20;
+ private boolean satisfiesPzi_ = false;
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzi.
+ */
+ @java.lang.Override
+ public boolean getSatisfiesPzi() {
+ return satisfiesPzi_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3532,6 +3573,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(13, getCorpusTypeConfig());
}
+ if (satisfiesPzs_ != false) {
+ output.writeBool(19, satisfiesPzs_);
+ }
+ if (satisfiesPzi_ != false) {
+ output.writeBool(20, satisfiesPzi_);
+ }
getUnknownFields().writeTo(output);
}
@@ -3585,6 +3632,12 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCorpusTypeConfig());
}
+ if (satisfiesPzs_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, satisfiesPzs_);
+ }
+ if (satisfiesPzi_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3633,6 +3686,8 @@ public boolean equals(final java.lang.Object obj) {
if (hasCorpusTypeConfig()) {
if (!getCorpusTypeConfig().equals(other.getCorpusTypeConfig())) return false;
}
+ if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false;
+ if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false;
if (!getBackendConfigCase().equals(other.getBackendConfigCase())) return false;
switch (backendConfigCase_) {
case 9:
@@ -3691,6 +3746,10 @@ public int hashCode() {
hash = (37 * hash) + CORPUS_TYPE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getCorpusTypeConfig().hashCode();
}
+ hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs());
+ hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi());
switch (backendConfigCase_) {
case 9:
hash = (37 * hash) + VECTOR_DB_CONFIG_FIELD_NUMBER;
@@ -3904,6 +3963,8 @@ public Builder clear() {
corpusTypeConfigBuilder_.dispose();
corpusTypeConfigBuilder_ = null;
}
+ satisfiesPzs_ = false;
+ satisfiesPzi_ = false;
backendConfigCase_ = 0;
backendConfig_ = null;
return this;
@@ -3993,6 +4054,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagCorpus result)
corpusTypeConfigBuilder_ == null ? corpusTypeConfig_ : corpusTypeConfigBuilder_.build();
to_bitField0_ |= 0x00000040;
}
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.satisfiesPzs_ = satisfiesPzs_;
+ }
+ if (((from_bitField0_ & 0x00004000) != 0)) {
+ result.satisfiesPzi_ = satisfiesPzi_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -4091,6 +4158,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagCorpus other) {
if (other.hasCorpusTypeConfig()) {
mergeCorpusTypeConfig(other.getCorpusTypeConfig());
}
+ if (other.getSatisfiesPzs() != false) {
+ setSatisfiesPzs(other.getSatisfiesPzs());
+ }
+ if (other.getSatisfiesPzi() != false) {
+ setSatisfiesPzi(other.getSatisfiesPzi());
+ }
switch (other.getBackendConfigCase()) {
case VECTOR_DB_CONFIG:
{
@@ -4215,6 +4288,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00001000;
break;
} // case 106
+ case 152:
+ {
+ satisfiesPzs_ = input.readBool();
+ bitField0_ |= 0x00002000;
+ break;
+ } // case 152
+ case 160:
+ {
+ satisfiesPzi_ = input.readBool();
+ bitField0_ |= 0x00004000;
+ break;
+ } // case 160
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -5093,7 +5178,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360
* @return Whether the ragEmbeddingModelConfig field is set.
*/
@java.lang.Deprecated
@@ -5113,7 +5198,7 @@ public boolean hasRagEmbeddingModelConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360
* @return The ragEmbeddingModelConfig.
*/
@java.lang.Deprecated
@@ -5325,7 +5410,7 @@ public Builder clearRagEmbeddingModelConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367
* @return Whether the ragVectorDbConfig field is set.
*/
@java.lang.Deprecated
@@ -5345,7 +5430,7 @@ public boolean hasRagVectorDbConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367
* @return The ragVectorDbConfig.
*/
@java.lang.Deprecated
@@ -6181,6 +6266,9 @@ public com.google.cloud.aiplatform.v1beta1.CorpusStatusOrBuilder getCorpusStatus
*
*
* Output only. Number of RagFiles in the RagCorpus.
+ *
+ * NOTE: This field is not populated in the response of
+ * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
*
*
* int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -6197,6 +6285,9 @@ public int getRagFilesCount() {
*
*
* Output only. Number of RagFiles in the RagCorpus.
+ *
+ * NOTE: This field is not populated in the response of
+ * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
*
*
* int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -6217,6 +6308,9 @@ public Builder setRagFilesCount(int value) {
*
*
* Output only. Number of RagFiles in the RagCorpus.
+ *
+ * NOTE: This field is not populated in the response of
+ * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
*
*
* int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -6691,6 +6785,118 @@ public Builder clearCorpusTypeConfig() {
return corpusTypeConfigBuilder_;
}
+ private boolean satisfiesPzs_;
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ @java.lang.Override
+ public boolean getSatisfiesPzs() {
+ return satisfiesPzs_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The satisfiesPzs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSatisfiesPzs(boolean value) {
+
+ satisfiesPzs_ = value;
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSatisfiesPzs() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ satisfiesPzs_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean satisfiesPzi_;
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzi.
+ */
+ @java.lang.Override
+ public boolean getSatisfiesPzi() {
+ return satisfiesPzi_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The satisfiesPzi to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSatisfiesPzi(boolean value) {
+
+ satisfiesPzi_ = value;
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSatisfiesPzi() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ satisfiesPzi_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java
index 2ae2b11f7044..6e73d63b4e2c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java
@@ -205,7 +205,7 @@ public interface RagCorpusOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360
* @return Whether the ragEmbeddingModelConfig field is set.
*/
@java.lang.Deprecated
@@ -223,7 +223,7 @@ public interface RagCorpusOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360
* @return The ragEmbeddingModelConfig.
*/
@java.lang.Deprecated
@@ -256,7 +256,7 @@ public interface RagCorpusOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367
* @return Whether the ragVectorDbConfig field is set.
*/
@java.lang.Deprecated
@@ -274,7 +274,7 @@ public interface RagCorpusOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367
* @return The ragVectorDbConfig.
*/
@java.lang.Deprecated
@@ -422,6 +422,9 @@ public interface RagCorpusOrBuilder
*
*
* Output only. Number of RagFiles in the RagCorpus.
+ *
+ * NOTE: This field is not populated in the response of
+ * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
*
*
* int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -526,5 +529,31 @@ public interface RagCorpusOrBuilder
com.google.cloud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfigOrBuilder
getCorpusTypeConfigOrBuilder();
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ boolean getSatisfiesPzs();
+
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzi.
+ */
+ boolean getSatisfiesPzi();
+
com.google.cloud.aiplatform.v1beta1.RagCorpus.BackendConfigCase getBackendConfigCase();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java
index debfc2437242..3b8007b250de 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java
@@ -1041,7 +1041,7 @@ public com.google.cloud.aiplatform.v1beta1.FileStatusOrBuilder getFileStatusOrBu
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
@@ -1066,7 +1066,7 @@ public java.lang.String getUserMetadata() {
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
@@ -4452,7 +4452,7 @@ public com.google.cloud.aiplatform.v1beta1.FileStatusOrBuilder getFileStatusOrBu
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
@@ -4476,7 +4476,7 @@ public java.lang.String getUserMetadata() {
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
@@ -4500,7 +4500,7 @@ public com.google.protobuf.ByteString getUserMetadataBytes() {
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
@@ -4523,7 +4523,7 @@ public Builder setUserMetadata(java.lang.String value) {
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
@@ -4542,7 +4542,7 @@ public Builder clearUserMetadata() {
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java
index 35caa86d0718..1baa912d5f29 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java
@@ -873,7 +873,7 @@ public boolean hasFixedLengthChunking() {
* int32 chunk_size = 1 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528
* @return The chunkSize.
*/
@java.lang.Override
@@ -895,7 +895,7 @@ public int getChunkSize() {
* int32 chunk_overlap = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531
* @return The chunkOverlap.
*/
@java.lang.Override
@@ -1613,7 +1613,7 @@ public Builder clearFixedLengthChunking() {
* int32 chunk_size = 1 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528
* @return The chunkSize.
*/
@java.lang.Override
@@ -1632,7 +1632,7 @@ public int getChunkSize() {
* int32 chunk_size = 1 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528
* @param value The chunkSize to set.
* @return This builder for chaining.
*/
@@ -1655,7 +1655,7 @@ public Builder setChunkSize(int value) {
* int32 chunk_size = 1 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1678,7 +1678,7 @@ public Builder clearChunkSize() {
* int32 chunk_overlap = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531
* @return The chunkOverlap.
*/
@java.lang.Override
@@ -1697,7 +1697,7 @@ public int getChunkOverlap() {
* int32 chunk_overlap = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531
* @param value The chunkOverlap to set.
* @return This builder for chaining.
*/
@@ -1720,7 +1720,7 @@ public Builder setChunkOverlap(int value) {
* int32 chunk_overlap = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java
index 1e19cadba1ad..8474e3324be2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java
@@ -79,7 +79,7 @@ public interface RagFileChunkingConfigOrBuilder
* int32 chunk_size = 1 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528
* @return The chunkSize.
*/
@java.lang.Deprecated
@@ -95,7 +95,7 @@ public interface RagFileChunkingConfigOrBuilder
* int32 chunk_overlap = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated.
- * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510
+ * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531
* @return The chunkOverlap.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfig.java
index d615b611de16..189b4f811a02 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfig.java
@@ -178,7 +178,7 @@ public MetadataSourceCase getMetadataSourceCase() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -199,7 +199,7 @@ public boolean hasGcsMetadataSchemaSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -223,7 +223,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSchemaSource(
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -246,7 +246,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSchemaSource(
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -267,7 +267,7 @@ public boolean hasGoogleDriveMetadataSchemaSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -292,7 +292,7 @@ public boolean hasGoogleDriveMetadataSchemaSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -392,7 +392,7 @@ public com.google.protobuf.ByteString getInlineMetadataSchemaSourceBytes() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -413,7 +413,7 @@ public boolean hasGcsMetadataSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -437,7 +437,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -459,7 +459,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsMetadataSour
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -479,7 +479,7 @@ public boolean hasGoogleDriveMetadataSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -502,7 +502,7 @@ public com.google.cloud.aiplatform.v1beta1.GoogleDriveSource getGoogleDriveMetad
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -1188,7 +1188,7 @@ public Builder clearMetadataSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1209,7 +1209,7 @@ public boolean hasGcsMetadataSchemaSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1240,7 +1240,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSchemaSource(
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1268,7 +1268,7 @@ public Builder setGcsMetadataSchemaSource(com.google.cloud.aiplatform.v1beta1.Gc
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1294,7 +1294,7 @@ public Builder setGcsMetadataSchemaSource(
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1334,7 +1334,7 @@ public Builder mergeGcsMetadataSchemaSource(
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1365,7 +1365,7 @@ public Builder clearGcsMetadataSchemaSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1384,7 +1384,7 @@ public Builder clearGcsMetadataSchemaSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1411,7 +1411,7 @@ public Builder clearGcsMetadataSchemaSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1454,7 +1454,7 @@ public Builder clearGcsMetadataSchemaSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1475,7 +1475,7 @@ public boolean hasGoogleDriveMetadataSchemaSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1507,7 +1507,7 @@ public boolean hasGoogleDriveMetadataSchemaSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1536,7 +1536,7 @@ public Builder setGoogleDriveMetadataSchemaSource(
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1562,7 +1562,7 @@ public Builder setGoogleDriveMetadataSchemaSource(
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1602,7 +1602,7 @@ public Builder mergeGoogleDriveMetadataSchemaSource(
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1633,7 +1633,7 @@ public Builder clearGoogleDriveMetadataSchemaSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1652,7 +1652,7 @@ public Builder clearGoogleDriveMetadataSchemaSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1679,7 +1679,7 @@ public Builder clearGoogleDriveMetadataSchemaSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -1865,7 +1865,7 @@ public Builder setInlineMetadataSchemaSourceBytes(com.google.protobuf.ByteString
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -1886,7 +1886,7 @@ public boolean hasGcsMetadataSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -1917,7 +1917,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -1945,7 +1945,7 @@ public Builder setGcsMetadataSource(com.google.cloud.aiplatform.v1beta1.GcsSourc
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -1971,7 +1971,7 @@ public Builder setGcsMetadataSource(
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2010,7 +2010,7 @@ public Builder mergeGcsMetadataSource(com.google.cloud.aiplatform.v1beta1.GcsSou
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2041,7 +2041,7 @@ public Builder clearGcsMetadataSource() {
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2059,7 +2059,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsMetadataSourc
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2085,7 +2085,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsMetadataSour
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2127,7 +2127,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsMetadataSour
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2147,7 +2147,7 @@ public boolean hasGoogleDriveMetadataSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2177,7 +2177,7 @@ public com.google.cloud.aiplatform.v1beta1.GoogleDriveSource getGoogleDriveMetad
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2205,7 +2205,7 @@ public Builder setGoogleDriveMetadataSource(
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2230,7 +2230,7 @@ public Builder setGoogleDriveMetadataSource(
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2269,7 +2269,7 @@ public Builder mergeGoogleDriveMetadataSource(
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2299,7 +2299,7 @@ public Builder clearGoogleDriveMetadataSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2317,7 +2317,7 @@ public Builder clearGoogleDriveMetadataSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -2343,7 +2343,7 @@ public Builder clearGoogleDriveMetadataSource() {
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfigOrBuilder.java
index 7a0805d436d2..bd4de42441f8 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfigOrBuilder.java
@@ -32,7 +32,7 @@ public interface RagFileMetadataConfigOrBuilder
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -50,7 +50,7 @@ public interface RagFileMetadataConfigOrBuilder
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -68,7 +68,7 @@ public interface RagFileMetadataConfigOrBuilder
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata schema will be read from
+ * If the user provides a directory, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -82,7 +82,7 @@ public interface RagFileMetadataConfigOrBuilder
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -100,7 +100,7 @@ public interface RagFileMetadataConfigOrBuilder
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -118,7 +118,7 @@ public interface RagFileMetadataConfigOrBuilder
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a folder, the metadata schema will be read from
+ * If the user provides a folder, the metadata schema will be read from
* the files that ends with "metadata_schema.json" in the directory.
*
*
@@ -176,7 +176,7 @@ public interface RagFileMetadataConfigOrBuilder
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -194,7 +194,7 @@ public interface RagFileMetadataConfigOrBuilder
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -212,7 +212,7 @@ public interface RagFileMetadataConfigOrBuilder
* well as entire Google Cloud Storage directories. Sample formats:
* - `gs://bucket_name/my_directory/object_name/metadata.json`
* - `gs://bucket_name/my_directory`
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -226,7 +226,7 @@ public interface RagFileMetadataConfigOrBuilder
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -243,7 +243,7 @@ public interface RagFileMetadataConfigOrBuilder
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
@@ -260,7 +260,7 @@ public interface RagFileMetadataConfigOrBuilder
*
* Google Drive location. Supports importing individual files as
* well as Google Drive folders.
- * If providing a directory, the metadata will be read from
+ * If the user provides a directory, the metadata will be read from
* the files that ends with "metadata.json" in the directory.
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java
index 93870200ec02..089f9f3da283 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java
@@ -525,7 +525,7 @@ public interface RagFileOrBuilder
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
@@ -539,7 +539,7 @@ public interface RagFileOrBuilder
*
*
*
- * Output only. The metadata for metadata search. The contents will be
+ * Output only. The metadata for metadata search. The user_metadata Needs to
* be in JSON format.
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java
index 8514dc49e3e5..fa6468ab7037 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java
@@ -3036,7 +3036,7 @@ public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser getLlm
* bool use_advanced_pdf_parsing = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616
* @return The useAdvancedPdfParsing.
*/
@java.lang.Override
@@ -4256,7 +4256,7 @@ public Builder clearLlmParser() {
* bool use_advanced_pdf_parsing = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616
* @return The useAdvancedPdfParsing.
*/
@java.lang.Override
@@ -4275,7 +4275,7 @@ public boolean getUseAdvancedPdfParsing() {
* bool use_advanced_pdf_parsing = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616
* @param value The useAdvancedPdfParsing to set.
* @return This builder for chaining.
*/
@@ -4298,7 +4298,7 @@ public Builder setUseAdvancedPdfParsing(boolean value) {
* bool use_advanced_pdf_parsing = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java
index 8d6cac10b0a7..d216c265aa3a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java
@@ -154,7 +154,7 @@ public interface RagFileParsingConfigOrBuilder
* bool use_advanced_pdf_parsing = 2 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616
* @return The useAdvancedPdfParsing.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfig.java
index 25bf7bd5483b..261e9523d704 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfig.java
@@ -72,7 +72,6 @@ public interface EnterpriseOrBuilder
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
* Enterprise tier offers production grade performance along with
* autoscaling functionality. It is suitable for customers with large
* amounts of data or performance sensitive workloads.
@@ -273,7 +272,6 @@ protected Builder newBuilderForType(
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
* Enterprise tier offers production grade performance along with
* autoscaling functionality. It is suitable for customers with large
* amounts of data or performance sensitive workloads.
@@ -1897,9 +1895,7 @@ public TierCase getTierCase() {
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -1907,7 +1903,7 @@ public TierCase getTierCase() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814
* @return Whether the enterprise field is set.
*/
@java.lang.Override
@@ -1920,9 +1916,7 @@ public boolean hasEnterprise() {
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -1930,7 +1924,7 @@ public boolean hasEnterprise() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814
* @return The enterprise.
*/
@java.lang.Override
@@ -1946,9 +1940,7 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Enterprise getEnte
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -1971,7 +1963,8 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Enterprise getEnte
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -1987,7 +1980,8 @@ public boolean hasScaled() {
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -2006,7 +2000,8 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled getScaled()
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -2631,9 +2626,7 @@ public Builder clearTier() {
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2641,7 +2634,7 @@ public Builder clearTier() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814
* @return Whether the enterprise field is set.
*/
@java.lang.Override
@@ -2654,9 +2647,7 @@ public boolean hasEnterprise() {
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2664,7 +2655,7 @@ public boolean hasEnterprise() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814
* @return The enterprise.
*/
@java.lang.Override
@@ -2689,9 +2680,7 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Enterprise getEnte
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2718,9 +2707,7 @@ public Builder setEnterprise(
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2744,9 +2731,7 @@ public Builder setEnterprise(
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2785,9 +2770,7 @@ public Builder mergeEnterprise(
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2816,9 +2799,7 @@ public Builder clearEnterprise() {
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2835,9 +2816,7 @@ public Builder clearEnterprise() {
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2863,9 +2842,7 @@ public Builder clearEnterprise() {
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -2908,7 +2885,8 @@ public Builder clearEnterprise() {
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -2924,7 +2902,8 @@ public boolean hasScaled() {
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -2950,7 +2929,8 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled getScaled()
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -2973,7 +2953,8 @@ public Builder setScaled(com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -2994,7 +2975,8 @@ public Builder setScaled(
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -3030,7 +3012,8 @@ public Builder mergeScaled(
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -3056,7 +3039,8 @@ public Builder clearScaled() {
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -3070,7 +3054,8 @@ public Builder clearScaled() {
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -3092,7 +3077,8 @@ public Builder clearScaled() {
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfigOrBuilder.java
index d463d0277058..87c4301ea3c5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfigOrBuilder.java
@@ -28,9 +28,7 @@ public interface RagManagedDbConfigOrBuilder
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -38,7 +36,7 @@ public interface RagManagedDbConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814
* @return Whether the enterprise field is set.
*/
@java.lang.Deprecated
@@ -48,9 +46,7 @@ public interface RagManagedDbConfigOrBuilder
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -58,7 +54,7 @@ public interface RagManagedDbConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796
+ * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814
* @return The enterprise.
*/
@java.lang.Deprecated
@@ -68,9 +64,7 @@ public interface RagManagedDbConfigOrBuilder
*
*
*
- * Deprecated: Please use `Scaled` tier instead.
- * Sets the RagManagedDb to the Enterprise tier. This is the default tier
- * if not explicitly chosen.
+ * Sets the RagManagedDb to the Enterprise tier.
*
*
*
@@ -85,7 +79,8 @@ public interface RagManagedDbConfigOrBuilder
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -98,7 +93,8 @@ public interface RagManagedDbConfigOrBuilder
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
@@ -111,7 +107,8 @@ public interface RagManagedDbConfigOrBuilder
*
*
*
- * Sets the RagManagedDb to the Scaled tier.
+ * Sets the RagManagedDb to the Scaled tier. This is the default tier
+ * if not explicitly chosen.
*
*
* .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java
index 85d00c6959fb..b2c94cf201ea 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java
@@ -5768,6 +5768,725 @@ public com.google.protobuf.Parser getParserForType() {
}
}
+ public interface RagManagedVertexVectorSearchOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The collectionName.
+ */
+ java.lang.String getCollectionName();
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for collectionName.
+ */
+ com.google.protobuf.ByteString getCollectionNameBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch}
+ */
+ public static final class RagManagedVertexVectorSearch
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ RagManagedVertexVectorSearchOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use RagManagedVertexVectorSearch.newBuilder() to construct.
+ private RagManagedVertexVectorSearch(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private RagManagedVertexVectorSearch() {
+ collectionName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new RagManagedVertexVectorSearch();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto
+ .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto
+ .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .class,
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .Builder.class);
+ }
+
+ public static final int COLLECTION_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object collectionName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The collectionName.
+ */
+ @java.lang.Override
+ public java.lang.String getCollectionName() {
+ java.lang.Object ref = collectionName_;
+ 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();
+ collectionName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for collectionName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCollectionNameBytes() {
+ java.lang.Object ref = collectionName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ collectionName_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectionName_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectionName_);
+ }
+ 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch other =
+ (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) obj;
+
+ if (!getCollectionName().equals(other.getCollectionName())) 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) + COLLECTION_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getCollectionName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearchOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto
+ .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto
+ .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .class,
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ collectionName_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto
+ .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ build() {
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch result =
+ new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch(
+ this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.collectionName_ = collectionName_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .getDefaultInstance()) return this;
+ if (!other.getCollectionName().isEmpty()) {
+ collectionName_ = other.collectionName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ collectionName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object collectionName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The collectionName.
+ */
+ public java.lang.String getCollectionName() {
+ java.lang.Object ref = collectionName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ collectionName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for collectionName.
+ */
+ public com.google.protobuf.ByteString getCollectionNameBytes() {
+ java.lang.Object ref = collectionName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ collectionName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The collectionName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollectionName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ collectionName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCollectionName() {
+ collectionName_ = getDefaultInstance().getCollectionName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vector Search 2.0 Collection that
+ * RAG Created for the corpus. Only populated after the corpus is
+ * successfully created. Format:
+ * `projects/{project}/locations/{location}/collections/{collection_id}`
+ *
+ *
+ * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for collectionName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollectionNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ collectionName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ private static final com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearch
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RagManagedVertexVectorSearch parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
private int bitField0_;
private int vectorDbCase_ = 0;
@@ -5783,6 +6502,7 @@ public enum VectorDbCase
PINECONE(3),
VERTEX_FEATURE_STORE(4),
VERTEX_VECTOR_SEARCH(6),
+ RAG_MANAGED_VERTEX_VECTOR_SEARCH(8),
VECTORDB_NOT_SET(0);
private final int value;
@@ -5812,6 +6532,8 @@ public static VectorDbCase forNumber(int value) {
return VERTEX_FEATURE_STORE;
case 6:
return VERTEX_VECTOR_SEARCH;
+ case 8:
+ return RAG_MANAGED_VERTEX_VECTOR_SEARCH;
case 0:
return VECTORDB_NOT_SET;
default:
@@ -6124,6 +6846,72 @@ public boolean hasVertexVectorSearch() {
.getDefaultInstance();
}
+ public static final int RAG_MANAGED_VERTEX_VECTOR_SEARCH_FIELD_NUMBER = 8;
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ *
+ * @return Whether the ragManagedVertexVectorSearch field is set.
+ */
+ @java.lang.Override
+ public boolean hasRagManagedVertexVectorSearch() {
+ return vectorDbCase_ == 8;
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ *
+ * @return The ragManagedVertexVectorSearch.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ getRagManagedVertexVectorSearch() {
+ if (vectorDbCase_ == 8) {
+ return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ vectorDb_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearchOrBuilder
+ getRagManagedVertexVectorSearchOrBuilder() {
+ if (vectorDbCase_ == 8) {
+ return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ vectorDb_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .getDefaultInstance();
+ }
+
public static final int API_AUTH_FIELD_NUMBER = 5;
private com.google.cloud.aiplatform.v1beta1.ApiAuth apiAuth_;
@@ -6277,6 +7065,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(7, getRagEmbeddingModelConfig());
}
+ if (vectorDbCase_ == 8) {
+ output.writeMessage(
+ 8,
+ (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ vectorDb_);
+ }
getUnknownFields().writeTo(output);
}
@@ -6320,6 +7114,13 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRagEmbeddingModelConfig());
}
+ if (vectorDbCase_ == 8) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 8,
+ (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ vectorDb_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -6361,6 +7162,10 @@ public boolean equals(final java.lang.Object obj) {
case 6:
if (!getVertexVectorSearch().equals(other.getVertexVectorSearch())) return false;
break;
+ case 8:
+ if (!getRagManagedVertexVectorSearch().equals(other.getRagManagedVertexVectorSearch()))
+ return false;
+ break;
case 0:
default:
}
@@ -6404,6 +7209,10 @@ public int hashCode() {
hash = (37 * hash) + VERTEX_VECTOR_SEARCH_FIELD_NUMBER;
hash = (53 * hash) + getVertexVectorSearch().hashCode();
break;
+ case 8:
+ hash = (37 * hash) + RAG_MANAGED_VERTEX_VECTOR_SEARCH_FIELD_NUMBER;
+ hash = (53 * hash) + getRagManagedVertexVectorSearch().hashCode();
+ break;
case 0:
default:
}
@@ -6573,6 +7382,9 @@ public Builder clear() {
if (vertexVectorSearchBuilder_ != null) {
vertexVectorSearchBuilder_.clear();
}
+ if (ragManagedVertexVectorSearchBuilder_ != null) {
+ ragManagedVertexVectorSearchBuilder_.clear();
+ }
apiAuth_ = null;
if (apiAuthBuilder_ != null) {
apiAuthBuilder_.dispose();
@@ -6623,11 +7435,11 @@ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig buildPartial() {
private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.apiAuth_ = apiAuthBuilder_ == null ? apiAuth_ : apiAuthBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.ragEmbeddingModelConfig_ =
ragEmbeddingModelConfigBuilder_ == null
? ragEmbeddingModelConfig_
@@ -6655,6 +7467,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.RagVectorDbC
if (vectorDbCase_ == 6 && vertexVectorSearchBuilder_ != null) {
result.vectorDb_ = vertexVectorSearchBuilder_.build();
}
+ if (vectorDbCase_ == 8 && ragManagedVertexVectorSearchBuilder_ != null) {
+ result.vectorDb_ = ragManagedVertexVectorSearchBuilder_.build();
+ }
}
@java.lang.Override
@@ -6735,6 +7550,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig o
mergeVertexVectorSearch(other.getVertexVectorSearch());
break;
}
+ case RAG_MANAGED_VERTEX_VECTOR_SEARCH:
+ {
+ mergeRagManagedVertexVectorSearch(other.getRagManagedVertexVectorSearch());
+ break;
+ }
case VECTORDB_NOT_SET:
{
break;
@@ -6794,7 +7614,7 @@ public Builder mergeFrom(
case 42:
{
input.readMessage(getApiAuthFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 42
case 50:
@@ -6808,9 +7628,16 @@ public Builder mergeFrom(
{
input.readMessage(
getRagEmbeddingModelConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 58
+ case 66:
+ {
+ input.readMessage(
+ getRagManagedVertexVectorSearchFieldBuilder().getBuilder(), extensionRegistry);
+ vectorDbCase_ = 8;
+ break;
+ } // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -8040,6 +8867,271 @@ public Builder clearVertexVectorSearch() {
return vertexVectorSearchBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch,
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearchOrBuilder>
+ ragManagedVertexVectorSearchBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ *
+ * @return Whether the ragManagedVertexVectorSearch field is set.
+ */
+ @java.lang.Override
+ public boolean hasRagManagedVertexVectorSearch() {
+ return vectorDbCase_ == 8;
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ *
+ * @return The ragManagedVertexVectorSearch.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ getRagManagedVertexVectorSearch() {
+ if (ragManagedVertexVectorSearchBuilder_ == null) {
+ if (vectorDbCase_ == 8) {
+ return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearch)
+ vectorDb_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .getDefaultInstance();
+ } else {
+ if (vectorDbCase_ == 8) {
+ return ragManagedVertexVectorSearchBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ public Builder setRagManagedVertexVectorSearch(
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch value) {
+ if (ragManagedVertexVectorSearchBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ vectorDb_ = value;
+ onChanged();
+ } else {
+ ragManagedVertexVectorSearchBuilder_.setMessage(value);
+ }
+ vectorDbCase_ = 8;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ public Builder setRagManagedVertexVectorSearch(
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch.Builder
+ builderForValue) {
+ if (ragManagedVertexVectorSearchBuilder_ == null) {
+ vectorDb_ = builderForValue.build();
+ onChanged();
+ } else {
+ ragManagedVertexVectorSearchBuilder_.setMessage(builderForValue.build());
+ }
+ vectorDbCase_ = 8;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ public Builder mergeRagManagedVertexVectorSearch(
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch value) {
+ if (ragManagedVertexVectorSearchBuilder_ == null) {
+ if (vectorDbCase_ == 8
+ && vectorDb_
+ != com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearch.getDefaultInstance()) {
+ vectorDb_ =
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearch)
+ vectorDb_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ vectorDb_ = value;
+ }
+ onChanged();
+ } else {
+ if (vectorDbCase_ == 8) {
+ ragManagedVertexVectorSearchBuilder_.mergeFrom(value);
+ } else {
+ ragManagedVertexVectorSearchBuilder_.setMessage(value);
+ }
+ }
+ vectorDbCase_ = 8;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ public Builder clearRagManagedVertexVectorSearch() {
+ if (ragManagedVertexVectorSearchBuilder_ == null) {
+ if (vectorDbCase_ == 8) {
+ vectorDbCase_ = 0;
+ vectorDb_ = null;
+ onChanged();
+ }
+ } else {
+ if (vectorDbCase_ == 8) {
+ vectorDbCase_ = 0;
+ vectorDb_ = null;
+ }
+ ragManagedVertexVectorSearchBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .Builder
+ getRagManagedVertexVectorSearchBuilder() {
+ return getRagManagedVertexVectorSearchFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearchOrBuilder
+ getRagManagedVertexVectorSearchOrBuilder() {
+ if ((vectorDbCase_ == 8) && (ragManagedVertexVectorSearchBuilder_ != null)) {
+ return ragManagedVertexVectorSearchBuilder_.getMessageOrBuilder();
+ } else {
+ if (vectorDbCase_ == 8) {
+ return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearch)
+ vectorDb_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch,
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearchOrBuilder>
+ getRagManagedVertexVectorSearchFieldBuilder() {
+ if (ragManagedVertexVectorSearchBuilder_ == null) {
+ if (!(vectorDbCase_ == 8)) {
+ vectorDb_ =
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .getDefaultInstance();
+ }
+ ragManagedVertexVectorSearchBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch,
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig
+ .RagManagedVertexVectorSearchOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)
+ vectorDb_,
+ getParentForChildren(),
+ isClean());
+ vectorDb_ = null;
+ }
+ vectorDbCase_ = 8;
+ onChanged();
+ return ragManagedVertexVectorSearchBuilder_;
+ }
+
private com.google.cloud.aiplatform.v1beta1.ApiAuth apiAuth_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.aiplatform.v1beta1.ApiAuth,
@@ -8059,7 +9151,7 @@ public Builder clearVertexVectorSearch() {
* @return Whether the apiAuth field is set.
*/
public boolean hasApiAuth() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
@@ -8101,7 +9193,7 @@ public Builder setApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth value) {
} else {
apiAuthBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -8121,7 +9213,7 @@ public Builder setApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth.Builder bu
} else {
apiAuthBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -8137,7 +9229,7 @@ public Builder setApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth.Builder bu
*/
public Builder mergeApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth value) {
if (apiAuthBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
+ if (((bitField0_ & 0x00000040) != 0)
&& apiAuth_ != null
&& apiAuth_ != com.google.cloud.aiplatform.v1beta1.ApiAuth.getDefaultInstance()) {
getApiAuthBuilder().mergeFrom(value);
@@ -8148,7 +9240,7 @@ public Builder mergeApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth value) {
apiAuthBuilder_.mergeFrom(value);
}
if (apiAuth_ != null) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
}
return this;
@@ -8164,7 +9256,7 @@ public Builder mergeApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth value) {
* .google.cloud.aiplatform.v1beta1.ApiAuth api_auth = 5;
*/
public Builder clearApiAuth() {
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
apiAuth_ = null;
if (apiAuthBuilder_ != null) {
apiAuthBuilder_.dispose();
@@ -8184,7 +9276,7 @@ public Builder clearApiAuth() {
* .google.cloud.aiplatform.v1beta1.ApiAuth api_auth = 5;
*/
public com.google.cloud.aiplatform.v1beta1.ApiAuth.Builder getApiAuthBuilder() {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return getApiAuthFieldBuilder().getBuilder();
}
@@ -8255,7 +9347,7 @@ public com.google.cloud.aiplatform.v1beta1.ApiAuthOrBuilder getApiAuthOrBuilder(
* @return Whether the ragEmbeddingModelConfig field is set.
*/
public boolean hasRagEmbeddingModelConfig() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -8303,7 +9395,7 @@ public Builder setRagEmbeddingModelConfig(
} else {
ragEmbeddingModelConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -8326,7 +9418,7 @@ public Builder setRagEmbeddingModelConfig(
} else {
ragEmbeddingModelConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -8345,7 +9437,7 @@ public Builder setRagEmbeddingModelConfig(
public Builder mergeRagEmbeddingModelConfig(
com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig value) {
if (ragEmbeddingModelConfigBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
+ if (((bitField0_ & 0x00000080) != 0)
&& ragEmbeddingModelConfig_ != null
&& ragEmbeddingModelConfig_
!= com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig
@@ -8358,7 +9450,7 @@ public Builder mergeRagEmbeddingModelConfig(
ragEmbeddingModelConfigBuilder_.mergeFrom(value);
}
if (ragEmbeddingModelConfig_ != null) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
return this;
@@ -8376,7 +9468,7 @@ public Builder mergeRagEmbeddingModelConfig(
*
*/
public Builder clearRagEmbeddingModelConfig() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
ragEmbeddingModelConfig_ = null;
if (ragEmbeddingModelConfigBuilder_ != null) {
ragEmbeddingModelConfigBuilder_.dispose();
@@ -8399,7 +9491,7 @@ public Builder clearRagEmbeddingModelConfig() {
*/
public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder
getRagEmbeddingModelConfigBuilder() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return getRagEmbeddingModelConfigFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java
index 9130da36ede4..24b7047da9c1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java
@@ -227,6 +227,51 @@ public interface RagVectorDbConfigOrBuilder
com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearchOrBuilder
getVertexVectorSearchOrBuilder();
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ *
+ * @return Whether the ragManagedVertexVectorSearch field is set.
+ */
+ boolean hasRagManagedVertexVectorSearch();
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ *
+ * @return The ragManagedVertexVectorSearch.
+ */
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch
+ getRagManagedVertexVectorSearch();
+
+ /**
+ *
+ *
+ *
+ * The config for the RAG-managed Vertex Vector Search 2.0.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearchOrBuilder
+ getRagManagedVertexVectorSearchOrBuilder();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java
index c5b2b494505b..3473fde870f1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java
@@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -105,7 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "v_var.proto\0328google/cloud/aiplatform/v1b"
+ "eta1/service_networking.proto\032\036google/pr"
+ "otobuf/duration.proto\032\034google/protobuf/s"
- + "truct.proto\032\037google/protobuf/timestamp.proto\"\352\014\n"
+ + "truct.proto\032\037google/protobuf/timestamp.proto\"\222\020\n"
+ "\023ReasoningEngineSpec\022_\n"
+ "\020source_code_spec\030\013 \001(\0132C.google.cloud.aiplatform"
+ ".v1beta1.ReasoningEngineSpec.SourceCodeSpecH\000\022!\n"
@@ -138,14 +146,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001B\020\n"
+ "\016_min_instancesB\020\n"
+ "\016_max_instancesB\030\n"
- + "\026_container_concurrency\032\262\003\n"
+ + "\026_container_concurrency\032\332\006\n"
+ "\016SourceCodeSpec\022i\n\r"
+ "inline_source\030\001 \001(\0132P.google.cloud.aiplatform."
- + "v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022e\n"
- + "\013python_spec\030\002 \001(\0132N.google.cloud.aiplatform.v1beta1.Reasoni"
- + "ngEngineSpec.SourceCodeSpec.PythonSpecH\001\032.\n"
+ + "v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022~\n"
+ + "\030developer_connect_source\030\003 \001(\0132Z.google.cloud.aiplatform.v1"
+ + "beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\000\022e\n"
+ + "\013python_spec\030\002 \001(\0132N.google.cloud.aiplatform.v1beta1"
+ + ".ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\032.\n"
+ "\014InlineSource\022\036\n"
- + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\202\001\n\n"
+ + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\231\001\n"
+ + "\026DeveloperConnectConfig\022V\n"
+ + "\023git_repository_link\030\001 \001(\tB9\340A\002\372A3\n"
+ + "1developerconnect.googleapis.com/GitRepositoryLink\022\020\n"
+ + "\003dir\030\002 \001(\tB\003\340A\002\022\025\n"
+ + "\010revision\030\003 \001(\tB\003\340A\002\032\211\001\n"
+ + "\026DeveloperConnectSource\022o\n"
+ + "\006config\030\001 \001(\0132Z.google.cloud.aiplatfor"
+ + "m.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\003\340A\002\032\202\001\n\n"
+ "PythonSpec\022\024\n"
+ "\007version\030\001 \001(\tB\003\340A\001\022\036\n"
+ "\021entrypoint_module\030\002 \001(\tB\003\340A\001\022\036\n"
@@ -159,42 +177,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB\003\340A\010\022\031\n"
+ "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n"
+ "\013description\030\007 \001(\tB\003\340A\001\022G\n"
- + "\004spec\030\003 \001(\01324.go"
- + "ogle.cloud.aiplatform.v1beta1.ReasoningEngineSpecB\003\340A\001\0224\n"
+ + "\004spec\030\003 \001(\01324.google.cloud.aipla"
+ + "tform.v1beta1.ReasoningEngineSpecB\003\340A\001\0224\n"
+ "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ "\013update_time\030\005"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n"
+ "\004etag\030\006 \001(\tB\003\340A\001\022V\n"
- + "\014context_spec\030\t "
- + "\001(\0132;.google.cloud.aiplatform.v1beta1.ReasoningEngineContextSpecB\003\340A\001\022H\n"
- + "\017encryption_spec\030\013"
- + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n"
- + "\006labels\030\021 \003(\0132"
- + "<.google.cloud.aiplatform.v1beta1.ReasoningEngine.LabelsEntry\032-\n"
+ + "\014context_spec\030\t \001(\0132;.google.clo"
+ + "ud.aiplatform.v1beta1.ReasoningEngineContextSpecB\003\340A\001\022H\n"
+ + "\017encryption_spec\030\013 \001(\0132/"
+ + ".google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n"
+ + "\006labels\030\021 \003(\0132<.google.cloud.a"
+ + "iplatform.v1beta1.ReasoningEngine.LabelsEntry\032-\n"
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n"
- + ")aiplatform.googleapis.com/ReasoningEngine\022K"
- + "projects/{project}/locations/{location}/"
- + "reasoningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\354\010\n"
+ + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{projec"
+ + "t}/locations/{location}/reasoningEngines"
+ + "/{reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\354\010\n"
+ "\032ReasoningEngineContextSpec\022m\n"
- + "\022memory_bank_config\030\001 \001(\0132L.google.cloud.aiplatform.v1be"
- + "ta1.ReasoningEngineContextSpec.MemoryBankConfigB\003\340A\001\032\336\007\n"
+ + "\022memory_bank_config\030\001 \001(\0132L.goog"
+ + "le.cloud.aiplatform.v1beta1.ReasoningEngineContextSpec.MemoryBankConfigB\003\340A\001\032\336\007\n"
+ "\020MemoryBankConfig\022}\n"
- + "\021generation_config\030\001 \001(\0132].google.cloud.aipl"
- + "atform.v1beta1.ReasoningEngineContextSpe"
- + "c.MemoryBankConfig.GenerationConfigB\003\340A\001\022\212\001\n"
- + "\030similarity_search_config\030\002 \001(\0132c.go"
- + "ogle.cloud.aiplatform.v1beta1.ReasoningE"
- + "ngineContextSpec.MemoryBankConfig.SimilaritySearchConfigB\003\340A\001\022o\n\n"
- + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.Reas"
- + "oningEngineContextSpec.MemoryBankConfig.TtlConfigB\003\340A\001\032\236\003\n"
+ + "\021generation_config\030\001 \001(\0132].google.cloud.aiplatform.v1beta1.R"
+ + "easoningEngineContextSpec.MemoryBankConfig.GenerationConfigB\003\340A\001\022\212\001\n"
+ + "\030similarity_search_config\030\002 \001(\0132c.google.cloud.aipla"
+ + "tform.v1beta1.ReasoningEngineContextSpec"
+ + ".MemoryBankConfig.SimilaritySearchConfigB\003\340A\001\022o\n\n"
+ + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.ReasoningEngineConte"
+ + "xtSpec.MemoryBankConfig.TtlConfigB\003\340A\001\032\236\003\n"
+ "\tTtlConfig\0225\n"
+ "\013default_ttl\030\001"
+ " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\022\214\001\n"
- + "\023granular_ttl_config\030\002 \001(\0132h.goog"
- + "le.cloud.aiplatform.v1beta1.ReasoningEng"
- + "ineContextSpec.MemoryBankConfig.TtlConfig.GranularTtlConfigB\003\340A\001H\000\032\303\001\n"
+ + "\023granular_ttl_config\030\002 \001(\0132h.google.cloud.aiplatf"
+ + "orm.v1beta1.ReasoningEngineContextSpec.M"
+ + "emoryBankConfig.TtlConfig.GranularTtlConfigB\003\340A\001H\000\032\303\001\n"
+ "\021GranularTtlConfig\0222\n\n"
+ "create_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022<\n"
+ "\024generate_created_ttl\030\002"
@@ -207,12 +224,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\"aiplatform.googleapis.com/Endpoint\032]\n"
+ "\026SimilaritySearchConfig\022C\n"
+ "\017embedding_model\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/EndpointB\353\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\024ReasoningEngineProtoP\001ZCcloud.goo"
- + "gle.com/go/aiplatform/apiv1beta1/aiplatf"
- + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat"
- + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V"
- + "1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "\"aiplatform.googleapis.com/EndpointB\215\003\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\024Reasoning"
+ + "EngineProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatform"
+ + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G"
+ + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352A\236\001\n"
+ + "1developerconnect.googleapis.com/GitRepositoryLi"
+ + "nk\022iprojects/{project}/locations/{location}/connections/{connection}/gitReposito"
+ + "ryLinks/{git_repository_link}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -285,7 +304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor,
new java.lang.String[] {
- "InlineSource", "PythonSpec", "Source", "LanguageSpec",
+ "InlineSource", "DeveloperConnectSource", "PythonSpec", "Source", "LanguageSpec",
});
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor
@@ -297,10 +316,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"SourceArchive",
});
- internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor
.getNestedTypes()
.get(1);
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor,
+ new java.lang.String[] {
+ "GitRepositoryLink", "Dir", "Revision",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor
+ .getNestedTypes()
+ .get(2);
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor,
+ new java.lang.String[] {
+ "Config",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor
+ .getNestedTypes()
+ .get(3);
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor,
@@ -396,6 +435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceDefinition);
registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java
index a2f167fc7761..9ebfa8eedbd7 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java
@@ -153,8 +153,9 @@ public interface PackageSpecOrBuilder
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -167,8 +168,9 @@ public interface PackageSpecOrBuilder
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -395,8 +397,9 @@ public com.google.protobuf.ByteString getRequirementsGcsUriBytes() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -420,8 +423,9 @@ public java.lang.String getPythonVersion() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1209,8 +1213,9 @@ public Builder setRequirementsGcsUriBytes(com.google.protobuf.ByteString value)
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1233,8 +1238,9 @@ public java.lang.String getPythonVersion() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1257,8 +1263,9 @@ public com.google.protobuf.ByteString getPythonVersionBytes() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1280,8 +1287,9 @@ public Builder setPythonVersion(java.lang.String value) {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1299,8 +1307,9 @@ public Builder clearPythonVersion() {
*
*
*
- * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- * If not specified, default value is 3.10.
+ * Optional. The Python version. Supported values
+ * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ * is 3.10.
*
*
* string python_version = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -4803,6 +4812,52 @@ public interface SourceCodeSpecOrBuilder
com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceOrBuilder
getInlineSourceOrBuilder();
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return Whether the developerConnectSource field is set.
+ */
+ boolean hasDeveloperConnectSource();
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return The developerConnectSource.
+ */
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource
+ getDeveloperConnectSource();
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder
+ getDeveloperConnectSourceOrBuilder();
+
/**
*
*
@@ -5526,274 +5581,180 @@ public com.google.protobuf.Parser getParserForType() {
}
}
- public interface PythonSpecOrBuilder
+ public interface DeveloperConnectConfigOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The version.
- */
- java.lang.String getVersion();
-
- /**
- *
- *
- *
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for version.
- */
- com.google.protobuf.ByteString getVersionBytes();
-
- /**
- *
- *
- *
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The entrypointModule.
+ * @return The gitRepositoryLink.
*/
- java.lang.String getEntrypointModule();
+ java.lang.String getGitRepositoryLink();
/**
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The bytes for entrypointModule.
+ * @return The bytes for gitRepositoryLink.
*/
- com.google.protobuf.ByteString getEntrypointModuleBytes();
+ com.google.protobuf.ByteString getGitRepositoryLinkBytes();
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The entrypointObject.
+ * @return The dir.
*/
- java.lang.String getEntrypointObject();
+ java.lang.String getDir();
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for entrypointObject.
+ * @return The bytes for dir.
*/
- com.google.protobuf.ByteString getEntrypointObjectBytes();
+ com.google.protobuf.ByteString getDirBytes();
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The requirementsFile.
+ * @return The revision.
*/
- java.lang.String getRequirementsFile();
+ java.lang.String getRevision();
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for requirementsFile.
+ * @return The bytes for revision.
*/
- com.google.protobuf.ByteString getRequirementsFileBytes();
+ com.google.protobuf.ByteString getRevisionBytes();
}
/**
*
*
*
- * Specification for running a Python application from source.
+ * Specifies the configuration for fetching source code from a Git
+ * repository that is managed by Developer Connect. This includes the
+ * repository, revision, and directory to use.
*
*
* Protobuf type {@code
- * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec}
+ * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig}
*/
- public static final class PythonSpec extends com.google.protobuf.GeneratedMessageV3
+ public static final class DeveloperConnectConfig extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
- PythonSpecOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
+ DeveloperConnectConfigOrBuilder {
private static final long serialVersionUID = 0L;
- // Use PythonSpec.newBuilder() to construct.
- private PythonSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use DeveloperConnectConfig.newBuilder() to construct.
+ private DeveloperConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private PythonSpec() {
- version_ = "";
- entrypointModule_ = "";
- entrypointObject_ = "";
- requirementsFile_ = "";
+ private DeveloperConnectConfig() {
+ gitRepositoryLink_ = "";
+ dir_ = "";
+ revision_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new PythonSpec();
+ return new DeveloperConnectConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
- .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
- .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
- .class,
- com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
- .Builder.class);
- }
-
- public static final int VERSION_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object version_ = "";
-
- /**
- *
- *
- *
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The version.
- */
- @java.lang.Override
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
- 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();
- version_ = s;
- return s;
- }
- }
-
- /**
- *
- *
- *
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for version.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getVersionBytes() {
- java.lang.Object ref = version_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- version_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.class,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder.class);
}
- public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2;
+ public static final int GIT_REPOSITORY_LINK_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private volatile java.lang.Object entrypointModule_ = "";
+ private volatile java.lang.Object gitRepositoryLink_ = "";
/**
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The entrypointModule.
+ * @return The gitRepositoryLink.
*/
@java.lang.Override
- public java.lang.String getEntrypointModule() {
- java.lang.Object ref = entrypointModule_;
+ public java.lang.String getGitRepositoryLink() {
+ java.lang.Object ref = gitRepositoryLink_;
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();
- entrypointModule_ = s;
+ gitRepositoryLink_ = s;
return s;
}
}
@@ -5802,58 +5763,55 @@ public java.lang.String getEntrypointModule() {
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The bytes for entrypointModule.
+ * @return The bytes for gitRepositoryLink.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getEntrypointModuleBytes() {
- java.lang.Object ref = entrypointModule_;
+ public com.google.protobuf.ByteString getGitRepositoryLinkBytes() {
+ java.lang.Object ref = gitRepositoryLink_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- entrypointModule_ = b;
+ gitRepositoryLink_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3;
+ public static final int DIR_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private volatile java.lang.Object entrypointObject_ = "";
+ private volatile java.lang.Object dir_ = "";
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The entrypointObject.
+ * @return The dir.
*/
@java.lang.Override
- public java.lang.String getEntrypointObject() {
- java.lang.Object ref = entrypointObject_;
+ public java.lang.String getDir() {
+ java.lang.Object ref = dir_;
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();
- entrypointObject_ = s;
+ dir_ = s;
return s;
}
}
@@ -5862,54 +5820,53 @@ public java.lang.String getEntrypointObject() {
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for entrypointObject.
+ * @return The bytes for dir.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getEntrypointObjectBytes() {
- java.lang.Object ref = entrypointObject_;
+ public com.google.protobuf.ByteString getDirBytes() {
+ java.lang.Object ref = dir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- entrypointObject_ = b;
+ dir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4;
+ public static final int REVISION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
- private volatile java.lang.Object requirementsFile_ = "";
+ private volatile java.lang.Object revision_ = "";
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The requirementsFile.
+ * @return The revision.
*/
@java.lang.Override
- public java.lang.String getRequirementsFile() {
- java.lang.Object ref = requirementsFile_;
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
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();
- requirementsFile_ = s;
+ revision_ = s;
return s;
}
}
@@ -5918,21 +5875,21 @@ public java.lang.String getRequirementsFile() {
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for requirementsFile.
+ * @return The bytes for revision.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getRequirementsFileBytes() {
- java.lang.Object ref = requirementsFile_;
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- requirementsFile_ = b;
+ revision_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -5953,13 +5910,2251 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitRepositoryLink_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gitRepositoryLink_);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointModule_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entrypointModule_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dir_);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointObject_)) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, revision_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitRepositoryLink_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gitRepositoryLink_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dir_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, revision_);
+ }
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ other =
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig)
+ obj;
+
+ if (!getGitRepositoryLink().equals(other.getGitRepositoryLink())) return false;
+ if (!getDir().equals(other.getDir())) return false;
+ if (!getRevision().equals(other.getRevision())) 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) + GIT_REPOSITORY_LINK_FIELD_NUMBER;
+ hash = (53 * hash) + getGitRepositoryLink().hashCode();
+ hash = (37 * hash) + DIR_FIELD_NUMBER;
+ hash = (53 * hash) + getDir().hashCode();
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getRevision().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies the configuration for fetching source code from a Git
+ * repository that is managed by Developer Connect. This includes the
+ * repository, revision, and directory to use.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.class,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ gitRepositoryLink_ = "";
+ dir_ = "";
+ revision_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ build() {
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ result =
+ new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.gitRepositoryLink_ = gitRepositoryLink_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.dir_ = dir_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.revision_ = revision_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()) return this;
+ if (!other.getGitRepositoryLink().isEmpty()) {
+ gitRepositoryLink_ = other.gitRepositoryLink_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getDir().isEmpty()) {
+ dir_ = other.dir_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getRevision().isEmpty()) {
+ revision_ = other.revision_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ gitRepositoryLink_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ dir_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ revision_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object gitRepositoryLink_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The gitRepositoryLink.
+ */
+ public java.lang.String getGitRepositoryLink() {
+ java.lang.Object ref = gitRepositoryLink_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gitRepositoryLink_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for gitRepositoryLink.
+ */
+ public com.google.protobuf.ByteString getGitRepositoryLinkBytes() {
+ java.lang.Object ref = gitRepositoryLink_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gitRepositoryLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The gitRepositoryLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGitRepositoryLink(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gitRepositoryLink_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGitRepositoryLink() {
+ gitRepositoryLink_ = getDefaultInstance().getGitRepositoryLink();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect Git repository link, formatted as
+ * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ *
+ *
+ *
+ * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for gitRepositoryLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ gitRepositoryLink_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object dir_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The dir.
+ */
+ public java.lang.String getDir() {
+ java.lang.Object ref = dir_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dir_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for dir.
+ */
+ public com.google.protobuf.ByteString getDirBytes() {
+ java.lang.Object ref = dir_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dir_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The dir to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDir(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dir_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDir() {
+ dir_ = getDefaultInstance().getDir();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for dir to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDirBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ dir_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object revision_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The revision.
+ */
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ revision_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for revision.
+ */
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ revision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevision(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ revision_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRevision() {
+ revision_ = getDefaultInstance().getRevision();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository such as a
+ * branch, a tag, a commit SHA, or any Git ref.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevisionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ revision_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig)
+ private static final com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeveloperConnectConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface DeveloperConnectSourceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the config field is set.
+ */
+ boolean hasConfig();
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The config.
+ */
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig
+ getConfig();
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder
+ getConfigOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies source code to be fetched from a Git repository managed through
+ * the Developer Connect service.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource}
+ */
+ public static final class DeveloperConnectSource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ DeveloperConnectSourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use DeveloperConnectSource.newBuilder() to construct.
+ private DeveloperConnectSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DeveloperConnectSource() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DeveloperConnectSource();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.class,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int CONFIG_FIELD_NUMBER = 1;
+ private com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ config_;
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the config field is set.
+ */
+ @java.lang.Override
+ public boolean hasConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The config.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getConfig() {
+ return config_ == null
+ ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()
+ : config_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder
+ getConfigOrBuilder() {
+ return config_ == null
+ ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()
+ : config_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getConfig());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig());
+ }
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ other =
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ obj;
+
+ if (hasConfig() != other.hasConfig()) return false;
+ if (hasConfig()) {
+ if (!getConfig().equals(other.getConfig())) 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();
+ if (hasConfig()) {
+ hash = (37 * hash) + CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getConfig().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies source code to be fetched from a Git repository managed through
+ * the Developer Connect service.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.class,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getConfigFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ config_ = null;
+ if (configBuilder_ != null) {
+ configBuilder_.dispose();
+ configBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ build() {
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ result =
+ new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance()) return this;
+ if (other.hasConfig()) {
+ mergeConfig(other.getConfig());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ config_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder>
+ configBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the config field is set.
+ */
+ public boolean hasConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The config.
+ */
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ getConfig() {
+ if (configBuilder_ == null) {
+ return config_ == null
+ ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()
+ : config_;
+ } else {
+ return configBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setConfig(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ value) {
+ if (configBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ config_ = value;
+ } else {
+ configBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setConfig(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder
+ builderForValue) {
+ if (configBuilder_ == null) {
+ config_ = builderForValue.build();
+ } else {
+ configBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeConfig(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig
+ value) {
+ if (configBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && config_ != null
+ && config_
+ != com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()) {
+ getConfigBuilder().mergeFrom(value);
+ } else {
+ config_ = value;
+ }
+ } else {
+ configBuilder_.mergeFrom(value);
+ }
+ if (config_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearConfig() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ config_ = null;
+ if (configBuilder_ != null) {
+ configBuilder_.dispose();
+ configBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder
+ getConfigBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder
+ getConfigOrBuilder() {
+ if (configBuilder_ != null) {
+ return configBuilder_.getMessageOrBuilder();
+ } else {
+ return config_ == null
+ ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.getDefaultInstance()
+ : config_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The Developer Connect configuration that defines the
+ * specific repository, revision, and directory to use as the source code
+ * root.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder>
+ getConfigFieldBuilder() {
+ if (configBuilder_ == null) {
+ configBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectConfigOrBuilder>(
+ getConfig(), getParentForChildren(), isClean());
+ config_ = null;
+ }
+ return configBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource)
+ private static final com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeveloperConnectSource parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface PythonSpecOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The version.
+ */
+ java.lang.String getVersion();
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointModule.
+ */
+ java.lang.String getEntrypointModule();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointModule.
+ */
+ com.google.protobuf.ByteString getEntrypointModuleBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointObject.
+ */
+ java.lang.String getEntrypointObject();
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointObject.
+ */
+ com.google.protobuf.ByteString getEntrypointObjectBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requirementsFile.
+ */
+ java.lang.String getRequirementsFile();
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for requirementsFile.
+ */
+ com.google.protobuf.ByteString getRequirementsFileBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * Specification for running a Python application from source.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec}
+ */
+ public static final class PythonSpec extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ PythonSpecOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use PythonSpec.newBuilder() to construct.
+ private PythonSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PythonSpec() {
+ version_ = "";
+ entrypointModule_ = "";
+ entrypointObject_ = "";
+ requirementsFile_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PythonSpec();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
+ .class,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
+ .Builder.class);
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object version_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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();
+ version_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entrypointModule_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointModule.
+ */
+ @java.lang.Override
+ public java.lang.String getEntrypointModule() {
+ java.lang.Object ref = entrypointModule_;
+ 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();
+ entrypointModule_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointModule.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntrypointModuleBytes() {
+ java.lang.Object ref = entrypointModule_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entrypointModule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entrypointObject_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointObject.
+ */
+ @java.lang.Override
+ public java.lang.String getEntrypointObject() {
+ java.lang.Object ref = entrypointObject_;
+ 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();
+ entrypointObject_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointObject.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntrypointObjectBytes() {
+ java.lang.Object ref = entrypointObject_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entrypointObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object requirementsFile_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requirementsFile.
+ */
+ @java.lang.Override
+ public java.lang.String getRequirementsFile() {
+ java.lang.Object ref = requirementsFile_;
+ 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();
+ requirementsFile_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for requirementsFile.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRequirementsFileBytes() {
+ java.lang.Object ref = requirementsFile_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ requirementsFile_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointModule_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entrypointModule_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointObject_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entrypointObject_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requirementsFile_)) {
@@ -6976,6 +9171,7 @@ public enum SourceCase
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INLINE_SOURCE(1),
+ DEVELOPER_CONNECT_SOURCE(3),
SOURCE_NOT_SET(0);
private final int value;
@@ -6997,6 +9193,8 @@ public static SourceCase forNumber(int value) {
switch (value) {
case 1:
return INLINE_SOURCE;
+ case 3:
+ return DEVELOPER_CONNECT_SOURCE;
case 0:
return SOURCE_NOT_SET;
default:
@@ -7127,6 +9325,76 @@ public boolean hasInlineSource() {
.getDefaultInstance();
}
+ public static final int DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return Whether the developerConnectSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeveloperConnectSource() {
+ return sourceCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return The developerConnectSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDeveloperConnectSource() {
+ if (sourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder
+ getDeveloperConnectSourceOrBuilder() {
+ if (sourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+
public static final int PYTHON_SPEC_FIELD_NUMBER = 2;
/**
@@ -7220,6 +9488,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
(com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
languageSpec_);
}
+ if (sourceCase_ == 3) {
+ output.writeMessage(
+ 3,
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_);
+ }
getUnknownFields().writeTo(output);
}
@@ -7244,6 +9519,14 @@ public int getSerializedSize() {
(com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
languageSpec_);
}
+ if (sourceCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3,
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -7266,6 +9549,9 @@ public boolean equals(final java.lang.Object obj) {
case 1:
if (!getInlineSource().equals(other.getInlineSource())) return false;
break;
+ case 3:
+ if (!getDeveloperConnectSource().equals(other.getDeveloperConnectSource())) return false;
+ break;
case 0:
default:
}
@@ -7293,6 +9579,10 @@ public int hashCode() {
hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getInlineSource().hashCode();
break;
+ case 3:
+ hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getDeveloperConnectSource().hashCode();
+ break;
case 0:
default:
}
@@ -7453,6 +9743,9 @@ public Builder clear() {
if (inlineSourceBuilder_ != null) {
inlineSourceBuilder_.clear();
}
+ if (developerConnectSourceBuilder_ != null) {
+ developerConnectSourceBuilder_.clear();
+ }
if (pythonSpecBuilder_ != null) {
pythonSpecBuilder_.clear();
}
@@ -7510,6 +9803,9 @@ private void buildPartialOneofs(
if (sourceCase_ == 1 && inlineSourceBuilder_ != null) {
result.source_ = inlineSourceBuilder_.build();
}
+ if (sourceCase_ == 3 && developerConnectSourceBuilder_ != null) {
+ result.source_ = developerConnectSourceBuilder_.build();
+ }
result.languageSpecCase_ = languageSpecCase_;
result.languageSpec_ = this.languageSpec_;
if (languageSpecCase_ == 2 && pythonSpecBuilder_ != null) {
@@ -7575,6 +9871,11 @@ public Builder mergeFrom(
mergeInlineSource(other.getInlineSource());
break;
}
+ case DEVELOPER_CONNECT_SOURCE:
+ {
+ mergeDeveloperConnectSource(other.getDeveloperConnectSource());
+ break;
+ }
case SOURCE_NOT_SET:
{
break;
@@ -7629,6 +9930,13 @@ public Builder mergeFrom(
languageSpecCase_ = 2;
break;
} // case 18
+ case 26:
+ {
+ input.readMessage(
+ getDeveloperConnectSourceFieldBuilder().getBuilder(), extensionRegistry);
+ sourceCase_ = 3;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7946,6 +10254,281 @@ public Builder clearInlineSource() {
return inlineSourceBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder>
+ developerConnectSourceBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return Whether the developerConnectSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeveloperConnectSource() {
+ return sourceCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ *
+ * @return The developerConnectSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ getDeveloperConnectSource() {
+ if (developerConnectSourceBuilder_ == null) {
+ if (sourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 3) {
+ return developerConnectSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public Builder setDeveloperConnectSource(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ value) {
+ if (developerConnectSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ developerConnectSourceBuilder_.setMessage(value);
+ }
+ sourceCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public Builder setDeveloperConnectSource(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder
+ builderForValue) {
+ if (developerConnectSourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ developerConnectSourceBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public Builder mergeDeveloperConnectSource(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource
+ value) {
+ if (developerConnectSourceBuilder_ == null) {
+ if (sourceCase_ == 3
+ && source_
+ != com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 3) {
+ developerConnectSourceBuilder_.mergeFrom(value);
+ } else {
+ developerConnectSourceBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public Builder clearDeveloperConnectSource() {
+ if (developerConnectSourceBuilder_ == null) {
+ if (sourceCase_ == 3) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 3) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ developerConnectSourceBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder
+ getDeveloperConnectSourceBuilder() {
+ return getDeveloperConnectSourceFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder
+ getDeveloperConnectSourceOrBuilder() {
+ if ((sourceCase_ == 3) && (developerConnectSourceBuilder_ != null)) {
+ return developerConnectSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a Git repository managed by Developer Connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder>
+ getDeveloperConnectSourceFieldBuilder() {
+ if (developerConnectSourceBuilder_ == null) {
+ if (!(sourceCase_ == 3)) {
+ source_ =
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.getDefaultInstance();
+ }
+ developerConnectSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .DeveloperConnectSource)
+ source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 3;
+ onChanged();
+ return developerConnectSourceBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec,
com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfig.java
new file mode 100644
index 000000000000..2685190c7d3b
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfig.java
@@ -0,0 +1,756 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1beta1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * The configuration for the replicated voice to use.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig}
+ */
+public final class ReplicatedVoiceConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig)
+ ReplicatedVoiceConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ReplicatedVoiceConfig.newBuilder() to construct.
+ private ReplicatedVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ReplicatedVoiceConfig() {
+ mimeType_ = "";
+ voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ReplicatedVoiceConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.class,
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder.class);
+ }
+
+ public static final int MIME_TYPE_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object mimeType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ @java.lang.Override
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ 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();
+ mimeType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VOICE_SAMPLE_AUDIO_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The voiceSampleAudio.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVoiceSampleAudio() {
+ return voiceSampleAudio_;
+ }
+
+ 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.GeneratedMessageV3.isStringEmpty(mimeType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
+ }
+ if (!voiceSampleAudio_.isEmpty()) {
+ output.writeBytes(2, voiceSampleAudio_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
+ }
+ if (!voiceSampleAudio_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, voiceSampleAudio_);
+ }
+ 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.aiplatform.v1beta1.ReplicatedVoiceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig other =
+ (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) obj;
+
+ if (!getMimeType().equals(other.getMimeType())) return false;
+ if (!getVoiceSampleAudio().equals(other.getVoiceSampleAudio())) 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) + MIME_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMimeType().hashCode();
+ hash = (37 * hash) + VOICE_SAMPLE_AUDIO_FIELD_NUMBER;
+ hash = (53 * hash) + getVoiceSampleAudio().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig 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.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig 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.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1beta1.ReplicatedVoiceConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for the replicated voice to use.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig)
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.class,
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ mimeType_ = "";
+ voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig build() {
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig result =
+ new com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.mimeType_ = mimeType_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.voiceSampleAudio_ = voiceSampleAudio_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) {
+ return mergeFrom((com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig other) {
+ if (other == com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance())
+ return this;
+ if (!other.getMimeType().isEmpty()) {
+ mimeType_ = other.mimeType_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.getVoiceSampleAudio() != com.google.protobuf.ByteString.EMPTY) {
+ setVoiceSampleAudio(other.getVoiceSampleAudio());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ mimeType_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ voiceSampleAudio_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object mimeType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mimeType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mimeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMimeType() {
+ mimeType_ = getDefaultInstance().getMimeType();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ mimeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The voiceSampleAudio.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVoiceSampleAudio() {
+ return voiceSampleAudio_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The voiceSampleAudio to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVoiceSampleAudio(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceSampleAudio_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVoiceSampleAudio() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ voiceSampleAudio_ = getDefaultInstance().getVoiceSampleAudio();
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig)
+ private static final com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReplicatedVoiceConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfigOrBuilder.java
new file mode 100644
index 000000000000..8541aaa7b34c
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfigOrBuilder.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1beta1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+public interface ReplicatedVoiceConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ java.lang.String getMimeType();
+
+ /**
+ *
+ *
+ *
+ * Optional. The mimetype of the voice sample. The only currently supported
+ * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ * set.
+ *
+ *
+ * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ com.google.protobuf.ByteString getMimeTypeBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The sample of the custom voice.
+ *
+ *
+ * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The voiceSampleAudio.
+ */
+ com.google.protobuf.ByteString getVoiceSampleAudio();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfig.java
new file mode 100644
index 000000000000..97bc20557e96
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfig.java
@@ -0,0 +1,960 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1beta1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * Configuration for a single speaker in a multi-speaker setup.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig}
+ */
+public final class SpeakerVoiceConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig)
+ SpeakerVoiceConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use SpeakerVoiceConfig.newBuilder() to construct.
+ private SpeakerVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SpeakerVoiceConfig() {
+ speaker_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SpeakerVoiceConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.class,
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int SPEAKER_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object speaker_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The speaker.
+ */
+ @java.lang.Override
+ public java.lang.String getSpeaker() {
+ java.lang.Object ref = speaker_;
+ 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();
+ speaker_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for speaker.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSpeakerBytes() {
+ java.lang.Object ref = speaker_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ speaker_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VOICE_CONFIG_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1beta1.VoiceConfig voiceConfig_;
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasVoiceConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The voiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+
+ 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.GeneratedMessageV3.isStringEmpty(speaker_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, speaker_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getVoiceConfig());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(speaker_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, speaker_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVoiceConfig());
+ }
+ 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.aiplatform.v1beta1.SpeakerVoiceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig other =
+ (com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) obj;
+
+ if (!getSpeaker().equals(other.getSpeaker())) return false;
+ if (hasVoiceConfig() != other.hasVoiceConfig()) return false;
+ if (hasVoiceConfig()) {
+ if (!getVoiceConfig().equals(other.getVoiceConfig())) 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) + SPEAKER_FIELD_NUMBER;
+ hash = (53 * hash) + getSpeaker().hashCode();
+ if (hasVoiceConfig()) {
+ hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getVoiceConfig().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig 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.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig 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.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.aiplatform.v1beta1.SpeakerVoiceConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Configuration for a single speaker in a multi-speaker setup.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig)
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.class,
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getVoiceConfigFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ speaker_ = "";
+ voiceConfig_ = null;
+ if (voiceConfigBuilder_ != null) {
+ voiceConfigBuilder_.dispose();
+ voiceConfigBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig build() {
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig result =
+ new com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.speaker_ = speaker_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.voiceConfig_ =
+ voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) {
+ return mergeFrom((com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig other) {
+ if (other == com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.getDefaultInstance())
+ return this;
+ if (!other.getSpeaker().isEmpty()) {
+ speaker_ = other.speaker_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasVoiceConfig()) {
+ mergeVoiceConfig(other.getVoiceConfig());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ speaker_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getVoiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object speaker_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The speaker.
+ */
+ public java.lang.String getSpeaker() {
+ java.lang.Object ref = speaker_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ speaker_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for speaker.
+ */
+ public com.google.protobuf.ByteString getSpeakerBytes() {
+ java.lang.Object ref = speaker_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ speaker_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The speaker to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpeaker(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ speaker_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSpeaker() {
+ speaker_ = getDefaultInstance().getSpeaker();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for speaker to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpeakerBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ speaker_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1beta1.VoiceConfig voiceConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.VoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder>
+ voiceConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ public boolean hasVoiceConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The voiceConfig.
+ */
+ public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() {
+ if (voiceConfigBuilder_ == null) {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ } else {
+ return voiceConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig value) {
+ if (voiceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceConfig_ = value;
+ } else {
+ voiceConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setVoiceConfig(
+ com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder builderForValue) {
+ if (voiceConfigBuilder_ == null) {
+ voiceConfig_ = builderForValue.build();
+ } else {
+ voiceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig value) {
+ if (voiceConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && voiceConfig_ != null
+ && voiceConfig_
+ != com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance()) {
+ getVoiceConfigBuilder().mergeFrom(value);
+ } else {
+ voiceConfig_ = value;
+ }
+ } else {
+ voiceConfigBuilder_.mergeFrom(value);
+ }
+ if (voiceConfig_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearVoiceConfig() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ voiceConfig_ = null;
+ if (voiceConfigBuilder_ != null) {
+ voiceConfigBuilder_.dispose();
+ voiceConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder getVoiceConfigBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getVoiceConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() {
+ if (voiceConfigBuilder_ != null) {
+ return voiceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return voiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance()
+ : voiceConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.VoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder>
+ getVoiceConfigFieldBuilder() {
+ if (voiceConfigBuilder_ == null) {
+ voiceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.VoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder>(
+ getVoiceConfig(), getParentForChildren(), isClean());
+ voiceConfig_ = null;
+ }
+ return voiceConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig)
+ private static final com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SpeakerVoiceConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfigOrBuilder.java
new file mode 100644
index 000000000000..f8b35e51619d
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfigOrBuilder.java
@@ -0,0 +1,97 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/aiplatform/v1beta1/content.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+public interface SpeakerVoiceConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The speaker.
+ */
+ java.lang.String getSpeaker();
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the speaker. This should be the same as the speaker
+ * name used in the prompt.
+ *
+ *
+ * string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for speaker.
+ */
+ com.google.protobuf.ByteString getSpeakerBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the voiceConfig field is set.
+ */
+ boolean hasVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The voiceConfig.
+ */
+ com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * Required. The configuration for the voice of this speaker.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java
index 46fc8480c2d3..43c3c490be5f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java
@@ -23,7 +23,7 @@
*
*
*
- * The speech generation config.
+ * Configuration for speech generation.
*
*
* Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeechConfig}
@@ -39,7 +39,9 @@ private SpeechConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder)
super(builder);
}
- private SpeechConfig() {}
+ private SpeechConfig() {
+ languageCode_ = "";
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -70,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -86,7 +88,7 @@ public boolean hasVoiceConfig() {
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -104,7 +106,7 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() {
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -116,6 +118,119 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOr
: voiceConfig_;
}
+ public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The languageCode.
+ */
+ @java.lang.Override
+ public java.lang.String getLanguageCode() {
+ java.lang.Object ref = languageCode_;
+ 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();
+ languageCode_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for languageCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLanguageCodeBytes() {
+ java.lang.Object ref = languageCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ languageCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MULTI_SPEAKER_VOICE_CONFIG_FIELD_NUMBER = 3;
+ private com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig_;
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return Whether the multiSpeakerVoiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasMultiSpeakerVoiceConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return The multiSpeakerVoiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig() {
+ return multiSpeakerVoiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance()
+ : multiSpeakerVoiceConfig_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder
+ getMultiSpeakerVoiceConfigOrBuilder() {
+ return multiSpeakerVoiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance()
+ : multiSpeakerVoiceConfig_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -133,6 +248,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getVoiceConfig());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getMultiSpeakerVoiceConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -145,6 +266,13 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVoiceConfig());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMultiSpeakerVoiceConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -165,6 +293,11 @@ public boolean equals(final java.lang.Object obj) {
if (hasVoiceConfig()) {
if (!getVoiceConfig().equals(other.getVoiceConfig())) return false;
}
+ if (!getLanguageCode().equals(other.getLanguageCode())) return false;
+ if (hasMultiSpeakerVoiceConfig() != other.hasMultiSpeakerVoiceConfig()) return false;
+ if (hasMultiSpeakerVoiceConfig()) {
+ if (!getMultiSpeakerVoiceConfig().equals(other.getMultiSpeakerVoiceConfig())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -180,6 +313,12 @@ public int hashCode() {
hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getVoiceConfig().hashCode();
}
+ hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getLanguageCode().hashCode();
+ if (hasMultiSpeakerVoiceConfig()) {
+ hash = (37 * hash) + MULTI_SPEAKER_VOICE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getMultiSpeakerVoiceConfig().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -285,7 +424,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The speech generation config.
+ * Configuration for speech generation.
*
*
* Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeechConfig}
@@ -322,6 +461,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getVoiceConfigFieldBuilder();
+ getMultiSpeakerVoiceConfigFieldBuilder();
}
}
@@ -334,6 +474,12 @@ public Builder clear() {
voiceConfigBuilder_.dispose();
voiceConfigBuilder_ = null;
}
+ languageCode_ = "";
+ multiSpeakerVoiceConfig_ = null;
+ if (multiSpeakerVoiceConfigBuilder_ != null) {
+ multiSpeakerVoiceConfigBuilder_.dispose();
+ multiSpeakerVoiceConfigBuilder_ = null;
+ }
return this;
}
@@ -376,6 +522,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SpeechConfig resu
voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.languageCode_ = languageCode_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.multiSpeakerVoiceConfig_ =
+ multiSpeakerVoiceConfigBuilder_ == null
+ ? multiSpeakerVoiceConfig_
+ : multiSpeakerVoiceConfigBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -428,6 +584,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpeechConfig other)
if (other.hasVoiceConfig()) {
mergeVoiceConfig(other.getVoiceConfig());
}
+ if (!other.getLanguageCode().isEmpty()) {
+ languageCode_ = other.languageCode_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasMultiSpeakerVoiceConfig()) {
+ mergeMultiSpeakerVoiceConfig(other.getMultiSpeakerVoiceConfig());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -460,6 +624,19 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 18:
+ {
+ languageCode_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(
+ getMultiSpeakerVoiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -490,7 +667,7 @@ public Builder mergeFrom(
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -505,7 +682,7 @@ public boolean hasVoiceConfig() {
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -526,7 +703,7 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() {
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -549,7 +726,7 @@ public Builder setVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig va
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -570,7 +747,7 @@ public Builder setVoiceConfig(
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -599,7 +776,7 @@ public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -619,7 +796,7 @@ public Builder clearVoiceConfig() {
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -634,7 +811,7 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder getVoiceConfigBui
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -653,7 +830,7 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOr
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -675,6 +852,346 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOr
return voiceConfigBuilder_;
}
+ private java.lang.Object languageCode_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The languageCode.
+ */
+ public java.lang.String getLanguageCode() {
+ java.lang.Object ref = languageCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ languageCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for languageCode.
+ */
+ public com.google.protobuf.ByteString getLanguageCodeBytes() {
+ java.lang.Object ref = languageCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ languageCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The languageCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLanguageCode(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ languageCode_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLanguageCode() {
+ languageCode_ = getDefaultInstance().getLanguageCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for languageCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ languageCode_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder>
+ multiSpeakerVoiceConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return Whether the multiSpeakerVoiceConfig field is set.
+ */
+ public boolean hasMultiSpeakerVoiceConfig() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return The multiSpeakerVoiceConfig.
+ */
+ public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig
+ getMultiSpeakerVoiceConfig() {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ return multiSpeakerVoiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance()
+ : multiSpeakerVoiceConfig_;
+ } else {
+ return multiSpeakerVoiceConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public Builder setMultiSpeakerVoiceConfig(
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig value) {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ multiSpeakerVoiceConfig_ = value;
+ } else {
+ multiSpeakerVoiceConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public Builder setMultiSpeakerVoiceConfig(
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder builderForValue) {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ multiSpeakerVoiceConfig_ = builderForValue.build();
+ } else {
+ multiSpeakerVoiceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public Builder mergeMultiSpeakerVoiceConfig(
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig value) {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && multiSpeakerVoiceConfig_ != null
+ && multiSpeakerVoiceConfig_
+ != com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig
+ .getDefaultInstance()) {
+ getMultiSpeakerVoiceConfigBuilder().mergeFrom(value);
+ } else {
+ multiSpeakerVoiceConfig_ = value;
+ }
+ } else {
+ multiSpeakerVoiceConfigBuilder_.mergeFrom(value);
+ }
+ if (multiSpeakerVoiceConfig_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public Builder clearMultiSpeakerVoiceConfig() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ multiSpeakerVoiceConfig_ = null;
+ if (multiSpeakerVoiceConfigBuilder_ != null) {
+ multiSpeakerVoiceConfigBuilder_.dispose();
+ multiSpeakerVoiceConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder
+ getMultiSpeakerVoiceConfigBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getMultiSpeakerVoiceConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder
+ getMultiSpeakerVoiceConfigOrBuilder() {
+ if (multiSpeakerVoiceConfigBuilder_ != null) {
+ return multiSpeakerVoiceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return multiSpeakerVoiceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance()
+ : multiSpeakerVoiceConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder>
+ getMultiSpeakerVoiceConfigFieldBuilder() {
+ if (multiSpeakerVoiceConfigBuilder_ == null) {
+ multiSpeakerVoiceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder>(
+ getMultiSpeakerVoiceConfig(), getParentForChildren(), isClean());
+ multiSpeakerVoiceConfig_ = null;
+ }
+ return multiSpeakerVoiceConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java
index ada89cfc7779..01665fd492a2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java
@@ -28,7 +28,7 @@ public interface SpeechConfigOrBuilder
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -41,7 +41,7 @@ public interface SpeechConfigOrBuilder
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
@@ -54,10 +54,80 @@ public interface SpeechConfigOrBuilder
*
*
*
- * The configuration for the speaker to use.
+ * The configuration for the voice to use.
*
*
* .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1;
*/
com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The languageCode.
+ */
+ java.lang.String getLanguageCode();
+
+ /**
+ *
+ *
+ *
+ * Optional. The language code (ISO 639-1) for the speech synthesis.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for languageCode.
+ */
+ com.google.protobuf.ByteString getLanguageCodeBytes();
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return Whether the multiSpeakerVoiceConfig field is set.
+ */
+ boolean hasMultiSpeakerVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ *
+ * @return The multiSpeakerVoiceConfig.
+ */
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * The configuration for a multi-speaker text-to-speech request.
+ * This field is mutually exclusive with `voice_config`.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder
+ getMultiSpeakerVoiceConfigOrBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java
index b89f09794912..207a8fc67ce8 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java
@@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665
* @return Whether the ragFileChunkingConfig field is set.
*/
@java.lang.Override
@@ -99,7 +99,7 @@ public boolean hasRagFileChunkingConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665
* @return The ragFileChunkingConfig.
*/
@java.lang.Override
@@ -821,7 +821,7 @@ public Builder mergeFrom(
*
*
* @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665
* @return Whether the ragFileChunkingConfig field is set.
*/
@java.lang.Deprecated
@@ -841,7 +841,7 @@ public boolean hasRagFileChunkingConfig() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665
* @return The ragFileChunkingConfig.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java
index 2091b8b4a020..76ee27c33a41 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java
@@ -36,7 +36,7 @@ public interface UploadRagFileConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665
* @return Whether the ragFileChunkingConfig field is set.
*/
@java.lang.Deprecated
@@ -54,7 +54,7 @@ public interface UploadRagFileConfigOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665
* @return The ragFileChunkingConfig.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java
index f441f2e04e01..d20f754fb729 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java
@@ -80,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_VertexVectorSearch_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_VertexVectorSearch_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_FileStatus_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -226,7 +230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "RagEmbeddingModelConfig.SparseEmbeddingConfigB\003\340A\001\022\211\001\n"
+ ")dense_embedding_model_prediction_endpoint\030\002 \001(\0132Q.google.cloud.ai"
+ "platform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpointB\003\340A\002B\016\n"
- + "\014model_config\"\345\010\n"
+ + "\014model_config\"\240\n\n"
+ "\021RagVectorDbConfig\022Y\n"
+ "\016rag_managed_db\030\001 \001(\0132?.google.cloud.aiplatform.v"
+ "1beta1.RagVectorDbConfig.RagManagedDbH\000\022O\n"
@@ -237,15 +241,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024vertex_feature_store\030\004 \001(\0132E.google"
+ ".cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexFeatureStoreH\000\022e\n"
+ "\024vertex_vector_search\030\006 \001(\0132E.google.cloud.aiplatform"
- + ".v1beta1.RagVectorDbConfig.VertexVectorSearchH\000\022:\n"
+ + ".v1beta1.RagVectorDbConfig.VertexVectorSearchH\000\022{\n"
+ + " rag_managed_vertex_vector_search\030\010 \001(\0132O.google.cloud.aiplatform.v1be"
+ + "ta1.RagVectorDbConfig.RagManagedVertexVectorSearchH\000\022:\n"
+ "\010api_auth\030\005 \001(\0132(.google.cloud.aiplatform.v1beta1.ApiAuth\022d\n"
- + "\032rag_embedding_model_config\030\007 \001(\01328.google.cloud.a"
- + "iplatform.v1beta1.RagEmbeddingModelConfigB\006\340A\001\340A\005\032\202\002\n"
+ + "\032rag_embedding_model_config\030\007 \001(\01328.google.cl"
+ + "oud.aiplatform.v1beta1.RagEmbeddingModelConfigB\006\340A\001\340A\005\032\202\002\n"
+ "\014RagManagedDb\022R\n"
- + "\003knn\030\001 \001(\0132"
- + "C.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNH\000\022R\n"
- + "\003ann\030\002 "
- + "\001(\0132C.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNH\000\032\005\n"
+ + "\003knn\030\001"
+ + " \001(\0132C.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNH\000\022R\n"
+ + "\003ann\030\002 \001(\0132C.google.cloud.aiplatform.v1bet"
+ + "a1.RagVectorDbConfig.RagManagedDb.ANNH\000\032\005\n"
+ "\003KNN\032-\n"
+ "\003ANN\022\022\n\n"
+ "tree_depth\030\001 \001(\005\022\022\n\n"
@@ -260,11 +266,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\032feature_view_resource_name\030\001 \001(\t\032;\n"
+ "\022VertexVectorSearch\022\026\n"
+ "\016index_endpoint\030\001 \001(\t\022\r\n"
- + "\005index\030\002 \001(\tB\013\n"
+ + "\005index\030\002 \001(\t\032<\n"
+ + "\034RagManagedVertexVectorSearch\022\034\n"
+ + "\017collection_name\030\001 \001(\tB\003\340A\003B\013\n"
+ "\tvector_db\"\245\001\n\n"
+ "FileStatus\022E\n"
- + "\005state\030\001"
- + " \001(\01621.google.cloud.aiplatform.v1beta1.FileStatus.StateB\003\340A\003\022\031\n"
+ + "\005state\030\001 \001(\01621.google"
+ + ".cloud.aiplatform.v1beta1.FileStatus.StateB\003\340A\003\022\031\n"
+ "\014error_status\030\002 \001(\tB\003\340A\003\"5\n"
+ "\005State\022\025\n"
+ "\021STATE_UNSPECIFIED\020\000\022\n\n"
@@ -273,62 +281,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024VertexAiSearchConfig\022\026\n"
+ "\016serving_config\030\001 \001(\t\"\260\001\n"
+ "\014CorpusStatus\022G\n"
- + "\005state\030\001 \001(\01623.google.cloud.ai"
- + "platform.v1beta1.CorpusStatus.StateB\003\340A\003\022\031\n"
+ + "\005state\030\001"
+ + " \001(\01623.google.cloud.aiplatform.v1beta1.CorpusStatus.StateB\003\340A\003\022\031\n"
+ "\014error_status\030\002 \001(\tB\003\340A\003\"<\n"
+ "\005State\022\013\n"
+ "\007UNKNOWN\020\000\022\017\n"
+ "\013INITIALIZED\020\001\022\n\n"
+ "\006ACTIVE\020\002\022\t\n"
- + "\005ERROR\020\003\"\341\n\n"
+ + "\005ERROR\020\003\"\231\013\n"
+ "\tRagCorpus\022V\n"
- + "\020vector_db_config\030\t"
- + " \001(\01322.google.cloud.aiplatform.v1beta1.RagVectorDbConfigB\006\340A\001\340A\005H\000\022`\n"
+ + "\020vector_db_config\030\t \001(\01322.g"
+ + "oogle.cloud.aiplatform.v1beta1.RagVectorDbConfigB\006\340A\001\340A\005H\000\022`\n"
+ "\027vertex_ai_search_config\030\n"
- + " \001(\01325.google.cloud."
- + "aiplatform.v1beta1.VertexAiSearchConfigB\006\340A\001\340A\005H\000\022\021\n"
+ + " \001(\01325.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigB\006\340A\001\340A\005H\000\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\031\n"
+ "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n"
+ "\013description\030\003 \001(\tB\003\340A\001\022f\n"
- + "\032rag_embedding_model_config\030\006 \001(\01328."
- + "google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigB\010\030\001\340A\001\340A\005\022Z\n"
- + "\024rag_vector_db_config\030\007"
- + " \001(\01322.google.cloud.aiplatform.v1beta1.RagVectorDbConfigB\010\030\001\340A\001\340A\005\0224\n"
+ + "\032rag_embedding_model_config\030\006 \001(\01328.google.cloud."
+ + "aiplatform.v1beta1.RagEmbeddingModelConfigB\010\030\001\340A\001\340A\005\022Z\n"
+ + "\024rag_vector_db_config\030\007 \001"
+ + "(\01322.google.cloud.aiplatform.v1beta1.RagVectorDbConfigB\010\030\001\340A\001\340A\005\0224\n"
+ "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ "\013update_time\030\005"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\r"
- + "corpus_status\030\010"
- + " \001(\0132-.google.cloud.aiplatform.v1beta1.CorpusStatusB\003\340A\003\022\034\n"
+ + "corpus_status\030\010 \001(\0132-.go"
+ + "ogle.cloud.aiplatform.v1beta1.CorpusStatusB\003\340A\003\022\034\n"
+ "\017rag_files_count\030\013 \001(\005B\003\340A\003\022P\n"
- + "\017encryption_spec\030\014 \001(\0132/.go"
- + "ogle.cloud.aiplatform.v1beta1.EncryptionSpecB\006\340A\005\340A\001\022\\\n"
+ + "\017encryption_spec\030\014 \001(\0132/.google.cloud.ai"
+ + "platform.v1beta1.EncryptionSpecB\006\340A\005\340A\001\022\\\n"
+ "\022corpus_type_config\030\r"
- + " \001(\013"
- + "2;.google.cloud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfigB\003\340A\001\032\363\002\n"
+ + " \001(\0132;.google.clo"
+ + "ud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfigB\003\340A\001\022\032\n\r"
+ + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r"
+ + "satisfies_pzi\030\024 \001(\010B\003\340A\003\032\363\002\n"
+ "\020CorpusTypeConfig\022j\n"
- + "\017document_corpus\030\001 \001(\0132J.googl"
- + "e.cloud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfig.DocumentCorpusB\003\340A\001H\000\022f\n\r"
- + "memory_corpus\030\002 \001(\0132H.google.cloud.aiplat"
- + "form.v1beta1.RagCorpus.CorpusTypeConfig.MemoryCorpusB\003\340A\001H\000\032\020\n"
+ + "\017document_corpus\030\001 \001(\0132J.google.cloud.aiplatform.v1beta1.RagCorpus."
+ + "CorpusTypeConfig.DocumentCorpusB\003\340A\001H\000\022f\n\r"
+ + "memory_corpus\030\002 \001(\0132H.google.cloud.aip"
+ + "latform.v1beta1.RagCorpus.CorpusTypeConfig.MemoryCorpusB\003\340A\001H\000\032\020\n"
+ "\016DocumentCorpus\032c\n"
+ "\014MemoryCorpus\022S\n\n"
- + "llm_parser\030\001 \001(\0132?.goog"
- + "le.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserB\024\n"
+ + "llm_parser\030\001 \001(\0132?.g"
+ + "oogle.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserB\024\n"
+ "\022corpus_type_config:\200\001\352A}\n"
- + "#aiplatform.googleapis.com/RagCor"
- + "pus\022?projects/{project}/locations/{location}/ragCorpora/{rag_corpus}*\n"
+ + "#aiplatform.googleapis.com/Rag"
+ + "Corpus\022?projects/{project}/locations/{location}/ragCorpora/{rag_corpus}*\n"
+ "ragCorpora2\tragCorpusB\020\n"
+ "\016backend_config\"\342\010\n"
+ "\007RagFile\022E\n\n"
+ "gcs_source\030\010"
+ " \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceB\003\340A\003H\000\022V\n"
- + "\023google_drive_source\030\t \001(\01322.google.cloud.aip"
- + "latform.v1beta1.GoogleDriveSourceB\003\340A\003H\000\022X\n"
+ + "\023google_drive_source\030\t \001(\01322.google.cloud."
+ + "aiplatform.v1beta1.GoogleDriveSourceB\003\340A\003H\000\022X\n"
+ "\024direct_upload_source\030\n"
- + " \001(\01323.google."
- + "cloud.aiplatform.v1beta1.DirectUploadSourceB\003\340A\003H\000\022D\n"
- + "\014slack_source\030\013 \001(\0132,.googl"
- + "e.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n"
+ + " \001(\01323.goog"
+ + "le.cloud.aiplatform.v1beta1.DirectUploadSourceB\003\340A\003H\000\022D\n"
+ + "\014slack_source\030\013 \001(\0132,.go"
+ + "ogle.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n"
+ "\013jira_source\030\014"
+ " \001(\0132+.google.cloud.aiplatform.v1beta1.JiraSourceH\000\022Q\n"
+ "\023share_point_sources\030\016"
@@ -337,8 +346,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n"
+ "\013description\030\003 \001(\tB\003\340A\001\022\027\n\n"
+ "size_bytes\030\004 \001(\003B\003\340A\003\022P\n\r"
- + "rag_file_type\030\005 \001(\01624.google"
- + ".cloud.aiplatform.v1beta1.RagFile.RagFileTypeB\003\340A\003\0224\n"
+ + "rag_file_type\030\005 \001(\01624.goo"
+ + "gle.cloud.aiplatform.v1beta1.RagFile.RagFileTypeB\003\340A\003\0224\n"
+ "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ "\013update_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022E\n"
+ "\013file_status\030\r"
@@ -348,20 +357,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\031RAG_FILE_TYPE_UNSPECIFIED\020\000\022\025\n"
+ "\021RAG_FILE_TYPE_TXT\020\001\022\025\n"
+ "\021RAG_FILE_TYPE_PDF\020\002:\217\001\352A\213\001\n"
- + "!aiplatform.googleapis.com/RagFile\022Sprojects/{project}/locations/{location}/ragCorp"
- + "ora/{rag_corpus}/ragFiles/{rag_file}*\010ragFiles2\007ragFileB\021\n"
+ + "!aiplatform.googleapis.com/RagFile\022Sprojects/{project}/locations/{location}/ragC"
+ + "orpora/{rag_corpus}/ragFiles/{rag_file}*\010ragFiles2\007ragFileB\021\n"
+ "\017rag_file_source\"\245\001\n"
+ "\010RagChunk\022\014\n"
+ "\004text\030\001 \001(\t\022J\n"
- + "\tpage_span\030\002 \001(\013"
- + "22.google.cloud.aiplatform.v1beta1.RagChunk.PageSpanH\000\210\001\001\0321\n"
+ + "\tpage_span\030\002 "
+ + "\001(\01322.google.cloud.aiplatform.v1beta1.RagChunk.PageSpanH\000\210\001\001\0321\n"
+ "\010PageSpan\022\022\n\n"
+ "first_page\030\001 \001(\005\022\021\n"
+ "\tlast_page\030\002 \001(\005B\014\n\n"
+ "_page_span\"\214\002\n"
+ "\025RagFileChunkingConfig\022k\n"
- + "\025fixed_length_chunking\030\003 \001(\0132J.google.cloud.aipla"
- + "tform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingH\000\022\026\n\n"
+ + "\025fixed_length_chunking\030\003 \001(\0132J.google.cloud.ai"
+ + "platform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingH\000\022\026\n\n"
+ "chunk_size\030\001 \001(\005B\002\030\001\022\031\n\r"
+ "chunk_overlap\030\002 \001(\005B\002\030\001\032@\n"
+ "\023FixedLengthChunking\022\022\n\n"
@@ -369,15 +378,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "chunk_overlap\030\002 \001(\005B\021\n"
+ "\017chunking_config\"w\n"
+ "\033RagFileTransformationConfig\022X\n"
- + "\030rag_file_chunking_config\030\001"
- + " \001(\01326.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig\"\236\005\n"
+ + "\030rag_file_chunking_config\030\001 \001(\01326.google.cloud.aip"
+ + "latform.v1beta1.RagFileChunkingConfig\"\236\005\n"
+ "\024RagFileParsingConfig\022_\n"
- + "\017advanced_parser\030\003"
- + " \001(\0132D.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserH\000\022[\n\r"
- + "layout_parser\030\004 \001(\0132B.google.cloud.aipla"
- + "tform.v1beta1.RagFileParsingConfig.LayoutParserH\000\022U\n\n"
- + "llm_parser\030\005 \001(\0132?.google.c"
- + "loud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserH\000\022$\n"
+ + "\017advanced_parser\030\003 \001(\0132D.google.cloud.aiplatform.v1beta"
+ + "1.RagFileParsingConfig.AdvancedParserH\000\022[\n\r"
+ + "layout_parser\030\004 \001(\0132B.google.cloud.ai"
+ + "platform.v1beta1.RagFileParsingConfig.LayoutParserH\000\022U\n\n"
+ + "llm_parser\030\005 \001(\0132?.googl"
+ + "e.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserH\000\022$\n"
+ "\030use_advanced_pdf_parsing\030\002 \001(\010B\002\030\001\0322\n"
+ "\016AdvancedParser\022 \n"
+ "\030use_advanced_pdf_parsing\030\001 \001(\010\032y\n"
@@ -399,44 +408,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\035inline_metadata_schema_source\030\003 \001(\tH\000\022I\n"
+ "\023gcs_metadata_source\030\004"
+ " \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\001\022Z\n"
- + "\034google_drive_metadata_source\030\005 \001(\01322.google.cl"
- + "oud.aiplatform.v1beta1.GoogleDriveSourceH\001\022 \n"
+ + "\034google_drive_metadata_source\030\005 \001(\01322.google"
+ + ".cloud.aiplatform.v1beta1.GoogleDriveSourceH\001\022 \n"
+ "\026inline_metadata_source\030\006 \001(\tH\001B\030\n"
+ "\026metadata_schema_sourceB\021\n"
+ "\017metadata_source\"\220\003\n"
+ "\023UploadRagFileConfig\022\\\n"
- + "\030rag_file_chunking_config\030\001 \001(\01326.google.cloud.aipla"
- + "tform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n"
- + "\036rag_file_transformation_config\030\003 \001(\0132"
- + "<.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig\022X\n"
+ + "\030rag_file_chunking_config\030\001 \001(\01326.google.cloud.ai"
+ + "platform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n"
+ + "\036rag_file_transformation_config\030\003 \001"
+ + "(\0132<.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig\022X\n"
+ "\030rag_file_metadata_config\030\004"
+ " \001(\01326.google.cloud.aiplatform.v1beta1.RagFileMetadataConfig\022[\n"
- + "\027rag_file_parsing_config\030\005 \001(\01325.google.cloud."
- + "aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\"\252\n\n"
+ + "\027rag_file_parsing_config\030\005 \001(\01325.google.clo"
+ + "ud.aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\"\252\n\n"
+ "\024ImportRagFilesConfig\022@\n\n"
+ "gcs_source\030\002 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022Q\n"
+ "\023google_drive_source\030\003"
+ " \001(\01322.google.cloud.aiplatform.v1beta1.GoogleDriveSourceH\000\022D\n"
- + "\014slack_source\030\006 \001(\013"
- + "2,.google.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n"
- + "\013jira_source\030\007"
- + " \001(\0132+.google.cloud.aiplatform.v1beta1.JiraSourceH\000\022Q\n"
+ + "\014slack_source\030\006 "
+ + "\001(\0132,.google.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n"
+ + "\013jira_source\030\007 \001(\0132+.googl"
+ + "e.cloud.aiplatform.v1beta1.JiraSourceH\000\022Q\n"
+ "\023share_point_sources\030\r"
+ " \001(\01322.google.cloud.aiplatform.v1beta1.SharePointSourcesH\000\022W\n"
- + "\030partial_failure_gcs_sink\030\013 \001(\0132/.goog"
- + "le.cloud.aiplatform.v1beta1.GcsDestinationB\002\030\001H\001\022a\n"
+ + "\030partial_failure_gcs_sink\030\013 \001(\0132/.g"
+ + "oogle.cloud.aiplatform.v1beta1.GcsDestinationB\002\030\001H\001\022a\n"
+ "\035partial_failure_bigquery_sink\030\014"
+ " \001(\01324.google.cloud.aiplatform.v1beta1.BigQueryDestinationB\002\030\001H\001\022Q\n"
+ "\026import_result_gcs_sink\030\016"
+ " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\002\022[\n"
- + "\033import_result_bigquery_sink\030\017 \001(\01324.google.clo"
- + "ud.aiplatform.v1beta1.BigQueryDestinationH\002\022\\\n"
- + "\030rag_file_chunking_config\030\004 \001(\01326."
- + "google.cloud.aiplatform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n"
- + "\036rag_file_transformation_config\030\020 \001(\0132<.google.cloud.aiplatf"
- + "orm.v1beta1.RagFileTransformationConfig\022[\n"
- + "\027rag_file_parsing_config\030\010 \001(\01325.googl"
- + "e.cloud.aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\022X\n"
+ + "\033import_result_bigquery_sink\030\017 \001(\01324.google."
+ + "cloud.aiplatform.v1beta1.BigQueryDestinationH\002\022\\\n"
+ + "\030rag_file_chunking_config\030\004 \001(\013"
+ + "26.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n"
+ + "\036rag_file_transformation_config\030\020 \001(\0132<.google.cloud.aipl"
+ + "atform.v1beta1.RagFileTransformationConfig\022[\n"
+ + "\027rag_file_parsing_config\030\010 \001(\01325.go"
+ + "ogle.cloud.aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\022X\n"
+ "\030rag_file_metadata_config\030\021"
+ " \001(\01326.google.cloud.aiplatform.v1beta1.RagFileMetadataConfig\022+\n"
+ "\036max_embedding_requests_per_min\030\005 \001(\005B\003\340A\001\0222\n"
@@ -446,14 +455,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024partial_failure_sinkB\024\n"
+ "\022import_result_sink\"\242\003\n"
+ "\022RagManagedDbConfig\022X\n\n"
- + "enterprise\030\001 \001(\0132>.google.cloud.aiplatform.v"
- + "1beta1.RagManagedDbConfig.EnterpriseB\002\030\001H\000\022L\n"
- + "\006scaled\030\004 \001(\0132:.google.cloud.aiplat"
- + "form.v1beta1.RagManagedDbConfig.ScaledH\000\022J\n"
- + "\005basic\030\002"
- + " \001(\01329.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.BasicH\000\022Z\n\r"
- + "unprovisioned\030\003 \001(\0132A.google.cloud.aipla"
- + "tform.v1beta1.RagManagedDbConfig.UnprovisionedH\000\032\020\n\n"
+ + "enterprise\030\001 \001(\0132>.google.cloud.aiplatfor"
+ + "m.v1beta1.RagManagedDbConfig.EnterpriseB\002\030\001H\000\022L\n"
+ + "\006scaled\030\004 \001(\0132:.google.cloud.aip"
+ + "latform.v1beta1.RagManagedDbConfig.ScaledH\000\022J\n"
+ + "\005basic\030\002 \001(\01329.google.cloud.aiplat"
+ + "form.v1beta1.RagManagedDbConfig.BasicH\000\022Z\n\r"
+ + "unprovisioned\030\003 \001(\0132A.google.cloud.ai"
+ + "platform.v1beta1.RagManagedDbConfig.UnprovisionedH\000\032\020\n\n"
+ "Enterprise:\002\030\001\032\010\n"
+ "\006Scaled\032\007\n"
+ "\005Basic\032\017\n\r"
@@ -461,15 +470,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004tier\"\206\002\n"
+ "\017RagEngineConfig\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\010\022R\n"
- + "\025rag_managed_db_config\030\002 \001(\01323.google.cloud.aipl"
- + "atform.v1beta1.RagManagedDbConfig:\213\001\352A\207\001\n"
- + ")aiplatform.googleapis.com/RagEngineConfig\0227projects/{project}/locations/{locat"
- + "ion}/ragEngineConfig*\020ragEngineConfigs2\017ragEngineConfigB\351\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\022VertexRagDataProtoP\001ZCc"
- + "loud.google.com/go/aiplatform/apiv1beta1"
- + "/aiplatformpb;aiplatformpb\252\002\037Google.Clou"
- + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl"
- + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "\025rag_managed_db_config\030\002 \001(\01323.google.cloud.a"
+ + "iplatform.v1beta1.RagManagedDbConfig:\213\001\352A\207\001\n"
+ + ")aiplatform.googleapis.com/RagEngineConfig\0227projects/{project}/locations/{lo"
+ + "cation}/ragEngineConfig*\020ragEngineConfigs2\017ragEngineConfigB\351\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\022VertexRagDataProtoP\001"
+ + "ZCcloud.google.com/go/aiplatform/apiv1be"
+ + "ta1/aiplatformpb;aiplatformpb\252\002\037Google.C"
+ + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A"
+ + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -541,6 +550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Pinecone",
"VertexFeatureStore",
"VertexVectorSearch",
+ "RagManagedVertexVectorSearch",
"ApiAuth",
"RagEmbeddingModelConfig",
"VectorDb",
@@ -613,6 +623,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"IndexEndpoint", "Index",
});
+ internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_descriptor
+ .getNestedTypes()
+ .get(5);
+ internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor,
+ new java.lang.String[] {
+ "CollectionName",
+ });
internal_static_google_cloud_aiplatform_v1beta1_FileStatus_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_google_cloud_aiplatform_v1beta1_FileStatus_fieldAccessorTable =
@@ -656,6 +676,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"RagFilesCount",
"EncryptionSpec",
"CorpusTypeConfig",
+ "SatisfiesPzs",
+ "SatisfiesPzi",
"BackendConfig",
});
internal_static_google_cloud_aiplatform_v1beta1_RagCorpus_CorpusTypeConfig_descriptor =
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java
index fbdfd60b1774..1fd64ac8365d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java
@@ -23,7 +23,7 @@
*
*
*
- * The configuration for the voice to use.
+ * Configuration for a voice.
*
*
* Protobuf type {@code google.cloud.aiplatform.v1beta1.VoiceConfig}
@@ -72,6 +72,7 @@ public enum VoiceConfigCase
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PREBUILT_VOICE_CONFIG(1),
+ REPLICATED_VOICE_CONFIG(3),
VOICECONFIG_NOT_SET(0);
private final int value;
@@ -93,6 +94,8 @@ public static VoiceConfigCase forNumber(int value) {
switch (value) {
case 1:
return PREBUILT_VOICE_CONFIG;
+ case 3:
+ return REPLICATED_VOICE_CONFIG;
case 0:
return VOICECONFIG_NOT_SET;
default:
@@ -115,7 +118,7 @@ public VoiceConfigCase getVoiceConfigCase() {
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -131,7 +134,7 @@ public boolean hasPrebuiltVoiceConfig() {
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -150,7 +153,7 @@ public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceC
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -164,6 +167,70 @@ public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceC
return com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance();
}
+ public static final int REPLICATED_VOICE_CONFIG_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the replicatedVoiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasReplicatedVoiceConfig() {
+ return voiceConfigCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The replicatedVoiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getReplicatedVoiceConfig() {
+ if (voiceConfigCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder
+ getReplicatedVoiceConfigOrBuilder() {
+ if (voiceConfigCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -182,6 +249,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
1, (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_);
}
+ if (voiceConfigCase_ == 3) {
+ output.writeMessage(
+ 3, (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_);
+ }
getUnknownFields().writeTo(output);
}
@@ -196,6 +267,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
1, (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_);
}
+ if (voiceConfigCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -217,6 +293,9 @@ public boolean equals(final java.lang.Object obj) {
case 1:
if (!getPrebuiltVoiceConfig().equals(other.getPrebuiltVoiceConfig())) return false;
break;
+ case 3:
+ if (!getReplicatedVoiceConfig().equals(other.getReplicatedVoiceConfig())) return false;
+ break;
case 0:
default:
}
@@ -236,6 +315,10 @@ public int hashCode() {
hash = (37 * hash) + PREBUILT_VOICE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getPrebuiltVoiceConfig().hashCode();
break;
+ case 3:
+ hash = (37 * hash) + REPLICATED_VOICE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getReplicatedVoiceConfig().hashCode();
+ break;
case 0:
default:
}
@@ -344,7 +427,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The configuration for the voice to use.
+ * Configuration for a voice.
*
*
* Protobuf type {@code google.cloud.aiplatform.v1beta1.VoiceConfig}
@@ -382,6 +465,9 @@ public Builder clear() {
if (prebuiltVoiceConfigBuilder_ != null) {
prebuiltVoiceConfigBuilder_.clear();
}
+ if (replicatedVoiceConfigBuilder_ != null) {
+ replicatedVoiceConfigBuilder_.clear();
+ }
voiceConfigCase_ = 0;
voiceConfig_ = null;
return this;
@@ -429,6 +515,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.VoiceConfig
if (voiceConfigCase_ == 1 && prebuiltVoiceConfigBuilder_ != null) {
result.voiceConfig_ = prebuiltVoiceConfigBuilder_.build();
}
+ if (voiceConfigCase_ == 3 && replicatedVoiceConfigBuilder_ != null) {
+ result.voiceConfig_ = replicatedVoiceConfigBuilder_.build();
+ }
}
@java.lang.Override
@@ -483,6 +572,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VoiceConfig other)
mergePrebuiltVoiceConfig(other.getPrebuiltVoiceConfig());
break;
}
+ case REPLICATED_VOICE_CONFIG:
+ {
+ mergeReplicatedVoiceConfig(other.getReplicatedVoiceConfig());
+ break;
+ }
case VOICECONFIG_NOT_SET:
{
break;
@@ -521,6 +615,13 @@ public Builder mergeFrom(
voiceConfigCase_ = 1;
break;
} // case 10
+ case 26:
+ {
+ input.readMessage(
+ getReplicatedVoiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ voiceConfigCase_ = 3;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -564,7 +665,7 @@ public Builder clearVoiceConfig() {
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -580,7 +681,7 @@ public boolean hasPrebuiltVoiceConfig() {
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -606,7 +707,7 @@ public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceC
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -630,7 +731,7 @@ public Builder setPrebuiltVoiceConfig(
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -651,7 +752,7 @@ public Builder setPrebuiltVoiceConfig(
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -686,7 +787,7 @@ public Builder mergePrebuiltVoiceConfig(
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -712,7 +813,7 @@ public Builder clearPrebuiltVoiceConfig() {
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -726,7 +827,7 @@ public Builder clearPrebuiltVoiceConfig() {
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -748,7 +849,7 @@ public Builder clearPrebuiltVoiceConfig() {
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -778,6 +879,257 @@ public Builder clearPrebuiltVoiceConfig() {
return prebuiltVoiceConfigBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder>
+ replicatedVoiceConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the replicatedVoiceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasReplicatedVoiceConfig() {
+ return voiceConfigCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The replicatedVoiceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getReplicatedVoiceConfig() {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance();
+ } else {
+ if (voiceConfigCase_ == 3) {
+ return replicatedVoiceConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setReplicatedVoiceConfig(
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig value) {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ voiceConfig_ = value;
+ onChanged();
+ } else {
+ replicatedVoiceConfigBuilder_.setMessage(value);
+ }
+ voiceConfigCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setReplicatedVoiceConfig(
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder builderForValue) {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ voiceConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ replicatedVoiceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ voiceConfigCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeReplicatedVoiceConfig(
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig value) {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 3
+ && voiceConfig_
+ != com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance()) {
+ voiceConfig_ =
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ voiceConfig_ = value;
+ }
+ onChanged();
+ } else {
+ if (voiceConfigCase_ == 3) {
+ replicatedVoiceConfigBuilder_.mergeFrom(value);
+ } else {
+ replicatedVoiceConfigBuilder_.setMessage(value);
+ }
+ }
+ voiceConfigCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearReplicatedVoiceConfig() {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (voiceConfigCase_ == 3) {
+ voiceConfigCase_ = 0;
+ voiceConfig_ = null;
+ onChanged();
+ }
+ } else {
+ if (voiceConfigCase_ == 3) {
+ voiceConfigCase_ = 0;
+ voiceConfig_ = null;
+ }
+ replicatedVoiceConfigBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder
+ getReplicatedVoiceConfigBuilder() {
+ return getReplicatedVoiceConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder
+ getReplicatedVoiceConfigOrBuilder() {
+ if ((voiceConfigCase_ == 3) && (replicatedVoiceConfigBuilder_ != null)) {
+ return replicatedVoiceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (voiceConfigCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder>
+ getReplicatedVoiceConfigFieldBuilder() {
+ if (replicatedVoiceConfigBuilder_ == null) {
+ if (!(voiceConfigCase_ == 3)) {
+ voiceConfig_ =
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance();
+ }
+ replicatedVoiceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig,
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_,
+ getParentForChildren(),
+ isClean());
+ voiceConfig_ = null;
+ }
+ voiceConfigCase_ = 3;
+ onChanged();
+ return replicatedVoiceConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java
index bccab5f42282..9a1fd49363c2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java
@@ -28,7 +28,7 @@ public interface VoiceConfigOrBuilder
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -41,7 +41,7 @@ public interface VoiceConfigOrBuilder
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -54,7 +54,7 @@ public interface VoiceConfigOrBuilder
*
*
*
- * The configuration for the prebuilt voice to use.
+ * The configuration for a prebuilt voice.
*
*
* .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1;
@@ -62,5 +62,52 @@ public interface VoiceConfigOrBuilder
com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder
getPrebuiltVoiceConfigOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the replicatedVoiceConfig field is set.
+ */
+ boolean hasReplicatedVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The replicatedVoiceConfig.
+ */
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getReplicatedVoiceConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. The configuration for a replicated voice. This enables users to
+ * replicate a voice from an audio sample.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder
+ getReplicatedVoiceConfigOrBuilder();
+
com.google.cloud.aiplatform.v1beta1.VoiceConfig.VoiceConfigCase getVoiceConfigCase();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
index afca4d1ad7d8..a7cfac932f90 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
@@ -190,19 +190,62 @@ message PrebuiltVoiceConfig {
optional string voice_name = 1;
}
-// The configuration for the voice to use.
+// The configuration for the replicated voice to use.
+message ReplicatedVoiceConfig {
+ // Optional. The mimetype of the voice sample. The only currently supported
+ // value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+ // with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+ // set.
+ string mime_type = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The sample of the custom voice.
+ bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Configuration for a voice.
message VoiceConfig {
// The configuration for the speaker to use.
oneof voice_config {
- // The configuration for the prebuilt voice to use.
+ // The configuration for a prebuilt voice.
PrebuiltVoiceConfig prebuilt_voice_config = 1;
+
+ // Optional. The configuration for a replicated voice. This enables users to
+ // replicate a voice from an audio sample.
+ ReplicatedVoiceConfig replicated_voice_config = 3
+ [(google.api.field_behavior) = OPTIONAL];
}
}
-// The speech generation config.
+// Configuration for a single speaker in a multi-speaker setup.
+message SpeakerVoiceConfig {
+ // Required. The name of the speaker. This should be the same as the speaker
+ // name used in the prompt.
+ string speaker = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The configuration for the voice of this speaker.
+ VoiceConfig voice_config = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Configuration for a multi-speaker text-to-speech request.
+message MultiSpeakerVoiceConfig {
+ // Required. A list of configurations for the voices of the speakers. Exactly
+ // two speaker voice configurations must be provided.
+ repeated SpeakerVoiceConfig speaker_voice_configs = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+
+// Configuration for speech generation.
message SpeechConfig {
- // The configuration for the speaker to use.
+ // The configuration for the voice to use.
VoiceConfig voice_config = 1;
+
+ // Optional. The language code (ISO 639-1) for the speech synthesis.
+ string language_code = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // The configuration for a multi-speaker text-to-speech request.
+ // This field is mutually exclusive with `voice_config`.
+ MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
}
// Config for image generation features.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto
index 4ed88fd31d98..42fbeae165ea 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto
@@ -225,6 +225,10 @@ message DeployedModel {
string shared_resources = 17 [(google.api.resource_reference) = {
type: "aiplatform.googleapis.com/DeploymentResourcePool"
}];
+
+ // Optional. Resources for a full fine tuned model.
+ FullFineTunedResources full_fine_tuned_resources = 36
+ [(google.api.field_behavior) = OPTIONAL];
}
// Immutable. The ID of the DeployedModel. If not provided upon deployment,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto
index 3b37af423ccd..b422d8ba914b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto
@@ -81,6 +81,11 @@ message FeatureOnlineStore {
// Metadata of the Bigtable instance. Output only.
BigtableMetadata bigtable_metadata = 4
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The zone where the underlying Bigtable cluster for the primary
+ // Bigtable instance will be provisioned. Only the zone must be provided.
+ // For example, only "us-central1-a" should be provided.
+ string zone = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Optimized storage type
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto
index 3b3774b6daf6..afcb059e53e0 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto
@@ -91,6 +91,14 @@ message MachineSpec {
(google.api.field_behavior) = IMMUTABLE,
(google.api.field_behavior) = OPTIONAL
];
+
+ // Optional. Immutable. The minimum GPU driver version that this machine
+ // requires. For example, "535.104.06". If not specified, the default GPU
+ // driver version will be used by the underlying infrastructure.
+ string min_gpu_driver_version = 9 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.field_behavior) = IMMUTABLE
+ ];
}
// A description of resources that are dedicated to a DeployedModel or
@@ -262,6 +270,42 @@ message BatchDedicatedResources {
bool spot = 5 [(google.api.field_behavior) = OPTIONAL];
}
+// Resources for an fft model.
+message FullFineTunedResources {
+ // The type of deployment.
+ enum DeploymentType {
+ // Unspecified deployment type.
+ DEPLOYMENT_TYPE_UNSPECIFIED = 0;
+
+ // Eval deployment type.
+ DEPLOYMENT_TYPE_EVAL = 1;
+
+ // Prod deployment type.
+ DEPLOYMENT_TYPE_PROD = 2;
+ }
+
+ // Required. The kind of deployment.
+ DeploymentType deployment_type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The number of model inference units to use for this deployment.
+ // This can only be specified for DEPLOYMENT_TYPE_PROD.
+ // The following table lists the number of model inference units for different
+ // model types:
+ // * Gemini 2.5 Flash
+ // * Foundation FMIU: 25
+ // * Expansion FMIU: 4
+ // * Gemini 2.5 Pro
+ // * Foundation FMIU: 32
+ // * Expansion FMIU: 16
+ // * Veo 3.0 (undistilled)
+ // * Foundation FMIU: 63
+ // * Expansion FMIU: 7
+ // * Veo 3.0 (distilled)
+ // * Foundation FMIU: 30
+ // * Expansion FMIU: 10
+ int32 model_inference_unit_count = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
// Statistics information about resource consumption.
message ResourcesConsumed {
// Output only. The number of replica hours used. Note that many replicas may
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto
index 6e14c18facd0..85b43672ca7c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto
@@ -32,6 +32,10 @@ option java_outer_classname = "ReasoningEngineProto";
option java_package = "com.google.cloud.aiplatform.v1beta1";
option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
+option (google.api.resource_definition) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}"
+};
// ReasoningEngine configurations
message ReasoningEngineSpec {
@@ -48,8 +52,9 @@ message ReasoningEngineSpec {
// Optional. The Cloud Storage URI of the `requirements.txt` file
string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL];
- // Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
- // If not specified, default value is 3.10.
+ // Optional. The Python version. Supported values
+ // are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+ // is 3.10.
string python_version = 4 [(google.api.field_behavior) = OPTIONAL];
}
@@ -113,6 +118,38 @@ message ReasoningEngineSpec {
];
}
+ // Specifies the configuration for fetching source code from a Git
+ // repository that is managed by Developer Connect. This includes the
+ // repository, revision, and directory to use.
+ message DeveloperConnectConfig {
+ // Required. The Developer Connect Git repository link, formatted as
+ // `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ string git_repository_link = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+
+ // Required. Directory, relative to the source root, in which to run the
+ // build.
+ string dir = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The revision to fetch from the Git repository such as a
+ // branch, a tag, a commit SHA, or any Git ref.
+ string revision = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Specifies source code to be fetched from a Git repository managed through
+ // the Developer Connect service.
+ message DeveloperConnectSource {
+ // Required. The Developer Connect configuration that defines the
+ // specific repository, revision, and directory to use as the source code
+ // root.
+ DeveloperConnectConfig config = 1
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
// Specification for running a Python application from source.
message PythonSpec {
// Optional. The version of Python to use. Support version
@@ -142,6 +179,9 @@ message ReasoningEngineSpec {
oneof source {
// Source code is provided directly in the request.
InlineSource inline_source = 1;
+
+ // Source code is in a Git repository managed by Developer Connect.
+ DeveloperConnectSource developer_connect_source = 3;
}
// Specifies the language-specific configuration for building and running
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto
index 5c5fd3766d7a..d434a57e5823 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto
@@ -201,6 +201,15 @@ message RagVectorDbConfig {
string index = 2;
}
+ // The config for the RAG-managed Vertex Vector Search 2.0.
+ message RagManagedVertexVectorSearch {
+ // Output only. The resource name of the Vector Search 2.0 Collection that
+ // RAG Created for the corpus. Only populated after the corpus is
+ // successfully created. Format:
+ // `projects/{project}/locations/{location}/collections/{collection_id}`
+ string collection_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
// The config for the Vector DB.
oneof vector_db {
// The config for the RAG-managed Vector DB.
@@ -217,6 +226,9 @@ message RagVectorDbConfig {
// The config for the Vertex Vector Search.
VertexVectorSearch vertex_vector_search = 6;
+
+ // The config for the RAG-managed Vertex Vector Search 2.0.
+ RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8;
}
// Authentication config for the chosen Vector DB.
@@ -371,6 +383,9 @@ message RagCorpus {
CorpusStatus corpus_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. Number of RagFiles in the RagCorpus.
+ //
+ // NOTE: This field is not populated in the response of
+ // [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
int32 rag_files_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
// Optional. Immutable. The CMEK key name used to encrypt at-rest data related
@@ -385,6 +400,12 @@ message RagCorpus {
// Optional. The corpus type config of the RagCorpus.
CorpusTypeConfig corpus_type_config = 13
[(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Reserved for future use.
+ bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Reserved for future use.
+ bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// A RagFile contains user data for chunking, embedding and indexing.
@@ -463,7 +484,7 @@ message RagFile {
// Output only. State of the RagFile.
FileStatus file_status = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. The metadata for metadata search. The contents will be
+ // Output only. The metadata for metadata search. The user_metadata Needs to
// be in JSON format.
string user_metadata = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
}
@@ -604,13 +625,13 @@ message RagFileMetadataConfig {
// well as entire Google Cloud Storage directories. Sample formats:
// - `gs://bucket_name/my_directory/object_name/metadata_schema.json`
// - `gs://bucket_name/my_directory`
- // If providing a directory, the metadata schema will be read from
+ // If the user provides a directory, the metadata schema will be read from
// the files that ends with "metadata_schema.json" in the directory.
GcsSource gcs_metadata_schema_source = 1;
// Google Drive location. Supports importing individual files as
// well as Google Drive folders.
- // If providing a folder, the metadata schema will be read from
+ // If the user provides a folder, the metadata schema will be read from
// the files that ends with "metadata_schema.json" in the directory.
GoogleDriveSource google_drive_metadata_schema_source = 2;
@@ -624,13 +645,13 @@ message RagFileMetadataConfig {
// well as entire Google Cloud Storage directories. Sample formats:
// - `gs://bucket_name/my_directory/object_name/metadata.json`
// - `gs://bucket_name/my_directory`
- // If providing a directory, the metadata will be read from
+ // If the user provides a directory, the metadata will be read from
// the files that ends with "metadata.json" in the directory.
GcsSource gcs_metadata_source = 4;
// Google Drive location. Supports importing individual files as
// well as Google Drive folders.
- // If providing a directory, the metadata will be read from
+ // If the user provides a directory, the metadata will be read from
// the files that ends with "metadata.json" in the directory.
GoogleDriveSource google_drive_metadata_source = 5;
@@ -758,7 +779,6 @@ message ImportRagFilesConfig {
// Configuration message for RagManagedDb used by RagEngine.
message RagManagedDbConfig {
- // Deprecated: Please use `Scaled` tier instead.
// Enterprise tier offers production grade performance along with
// autoscaling functionality. It is suitable for customers with large
// amounts of data or performance sensitive workloads.
@@ -791,12 +811,11 @@ message RagManagedDbConfig {
// The tier of the RagManagedDb.
oneof tier {
- // Deprecated: Please use `Scaled` tier instead.
- // Sets the RagManagedDb to the Enterprise tier. This is the default tier
- // if not explicitly chosen.
+ // Sets the RagManagedDb to the Enterprise tier.
Enterprise enterprise = 1 [deprecated = true];
- // Sets the RagManagedDb to the Scaled tier.
+ // Sets the RagManagedDb to the Scaled tier. This is the default tier
+ // if not explicitly chosen.
Scaled scaled = 4;
// Sets the RagManagedDb to the Basic tier.
diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md
index 6ce24f28158b..1233947b86b3 100644
--- a/java-alloydb-connectors/README.md
+++ b/java-alloydb-connectors/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-alloydb-connectors
- 0.56.0
+ 0.58.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.56.0'
+implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.58.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.56.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.58.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.56.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.58.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-alloydb/README.md b/java-alloydb/README.md
index a989795b8e78..62081a6baa45 100644
--- a/java-alloydb/README.md
+++ b/java-alloydb/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-alloydb
- 0.67.0
+ 0.69.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-alloydb:0.67.0'
+implementation 'com.google.cloud:google-cloud-alloydb:0.69.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.67.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.69.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.67.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.69.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md
index 09099ac25c9e..45831e5c49cb 100644
--- a/java-analytics-admin/README.md
+++ b/java-analytics-admin/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.analytics
google-analytics-admin
- 0.88.0
+ 0.90.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.analytics:google-analytics-admin:0.88.0'
+implementation 'com.google.analytics:google-analytics-admin:0.90.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.88.0"
+libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.90.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.88.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.90.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md
index e0c0ad4f73dc..e889ba4df7e3 100644
--- a/java-analytics-data/README.md
+++ b/java-analytics-data/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.analytics
google-analytics-data
- 0.89.0
+ 0.91.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.analytics:google-analytics-data:0.89.0'
+implementation 'com.google.analytics:google-analytics-data:0.91.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.89.0"
+libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.91.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.89.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.91.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md
index 1969433ddd67..f59b67b6498b 100644
--- a/java-analyticshub/README.md
+++ b/java-analyticshub/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-analyticshub
- 0.75.0
+ 0.77.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-analyticshub:0.75.0'
+implementation 'com.google.cloud:google-cloud-analyticshub:0.77.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.75.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.77.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.75.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.77.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md
index 706af3f75a38..030f7adac0c1 100644
--- a/java-api-gateway/README.md
+++ b/java-api-gateway/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-api-gateway
- 2.78.0
+ 2.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-api-gateway:2.78.0'
+implementation 'com.google.cloud:google-cloud-api-gateway:2.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.80.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md
index 7c98cc5dfcce..a2b7c90129b3 100644
--- a/java-apigee-connect/README.md
+++ b/java-apigee-connect/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apigee-connect
- 2.78.0
+ 2.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apigee-connect:2.78.0'
+implementation 'com.google.cloud:google-cloud-apigee-connect:2.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.80.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md
index 19998999e7c7..624e46924766 100644
--- a/java-apigee-registry/README.md
+++ b/java-apigee-registry/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apigee-registry
- 0.78.0
+ 0.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apigee-registry:0.78.0'
+implementation 'com.google.cloud:google-cloud-apigee-registry:0.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.80.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apihub/README.md b/java-apihub/README.md
index b140e53d8088..dfd5f982d851 100644
--- a/java-apihub/README.md
+++ b/java-apihub/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apihub
- 0.31.0
+ 0.33.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apihub:0.31.0'
+implementation 'com.google.cloud:google-cloud-apihub:0.33.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.31.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.33.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.31.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.33.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apikeys/README.md b/java-apikeys/README.md
index 65e7d98ebca7..588502191f68 100644
--- a/java-apikeys/README.md
+++ b/java-apikeys/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apikeys
- 0.76.0
+ 0.78.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apikeys:0.76.0'
+implementation 'com.google.cloud:google-cloud-apikeys:0.78.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.76.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.78.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.76.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.78.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md
index 6b60a959e928..f9cc85174b66 100644
--- a/java-appengine-admin/README.md
+++ b/java-appengine-admin/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-appengine-admin
- 2.78.0
+ 2.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-appengine-admin:2.78.0'
+implementation 'com.google.cloud:google-cloud-appengine-admin:2.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.80.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apphub/README.md b/java-apphub/README.md
index fd1687b2e261..424d4376ec02 100644
--- a/java-apphub/README.md
+++ b/java-apphub/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apphub
- 0.42.0
+ 0.44.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apphub:0.42.0'
+implementation 'com.google.cloud:google-cloud-apphub:0.44.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.42.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.44.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.42.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.44.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md
index 633fc753f297..a8e728c07662 100644
--- a/java-area120-tables/README.md
+++ b/java-area120-tables/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.area120
google-area120-tables
- 0.82.0
+ 0.84.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.area120:google-area120-tables:0.82.0'
+implementation 'com.google.area120:google-area120-tables:0.84.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.82.0"
+libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.84.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.82.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.84.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md
index 8538d3a0c1ef..b4138a223506 100644
--- a/java-artifact-registry/README.md
+++ b/java-artifact-registry/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-artifact-registry
- 1.77.0
+ 1.79.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-artifact-registry:1.77.0'
+implementation 'com.google.cloud:google-cloud-artifact-registry:1.79.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.77.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.79.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.77.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.79.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java
index 9e0f440385f9..8e89e8c211df 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java
@@ -1004,6 +1004,21 @@
*
*
*
+ * ExportArtifact
+ * Exports an artifact.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * exportArtifactAsync(ExportArtifactRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * exportArtifactOperationCallable()
+ *
exportArtifactCallable()
+ *
+ *
+ *
+ *
* ListLocations
* Lists information about the supported locations for this service.
*
@@ -6983,6 +6998,96 @@ public final UnaryCallable deleteAttachmentC
return stub.deleteAttachmentCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports an artifact.
+ *
+ * Sample code:
+ *
+ *
{@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 (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+ * ExportArtifactRequest request =
+ * ExportArtifactRequest.newBuilder()
+ * .setRepository(
+ * RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .build();
+ * ExportArtifactResponse response = artifactRegistryClient.exportArtifactAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture exportArtifactAsync(
+ ExportArtifactRequest request) {
+ return exportArtifactOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports an artifact.
+ *
+ * Sample code:
+ *
+ *
{@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 (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+ * ExportArtifactRequest request =
+ * ExportArtifactRequest.newBuilder()
+ * .setRepository(
+ * RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .build();
+ * OperationFuture future =
+ * artifactRegistryClient.exportArtifactOperationCallable().futureCall(request);
+ * // Do something.
+ * ExportArtifactResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationCallable() {
+ return stub.exportArtifactOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports an artifact.
+ *
+ * Sample code:
+ *
+ *
{@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 (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+ * ExportArtifactRequest request =
+ * ExportArtifactRequest.newBuilder()
+ * .setRepository(
+ * RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .build();
+ * ApiFuture future =
+ * artifactRegistryClient.exportArtifactCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable exportArtifactCallable() {
+ return stub.exportArtifactCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java
index 8c363d34abb3..83b9f42d2e0f 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java
@@ -466,6 +466,18 @@ public UnaryCallSettings deleteAttachmentSet
return ((ArtifactRegistryStubSettings) getStubSettings()).deleteAttachmentOperationSettings();
}
+ /** Returns the object with the settings used for calls to exportArtifact. */
+ public UnaryCallSettings exportArtifactSettings() {
+ return ((ArtifactRegistryStubSettings) getStubSettings()).exportArtifactSettings();
+ }
+
+ /** Returns the object with the settings used for calls to exportArtifact. */
+ public OperationCallSettings<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationSettings() {
+ return ((ArtifactRegistryStubSettings) getStubSettings()).exportArtifactOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -930,6 +942,18 @@ public UnaryCallSettings.Builder getAttachment
return getStubSettingsBuilder().deleteAttachmentOperationSettings();
}
+ /** Returns the builder for the settings used for calls to exportArtifact. */
+ public UnaryCallSettings.Builder exportArtifactSettings() {
+ return getStubSettingsBuilder().exportArtifactSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to exportArtifact. */
+ public OperationCallSettings.Builder<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationSettings() {
+ return getStubSettingsBuilder().exportArtifactOperationSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json
index 8fa82a3cfce5..c166d531bab3 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json
@@ -46,6 +46,9 @@
"DeleteVersion": {
"methods": ["deleteVersionAsync", "deleteVersionAsync", "deleteVersionOperationCallable", "deleteVersionCallable"]
},
+ "ExportArtifact": {
+ "methods": ["exportArtifactAsync", "exportArtifactOperationCallable", "exportArtifactCallable"]
+ },
"GetAttachment": {
"methods": ["getAttachment", "getAttachment", "getAttachment", "getAttachmentCallable"]
},
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java
index ef5b390ecfbd..5c7616cd9e65 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java
@@ -51,6 +51,9 @@
import com.google.devtools.artifactregistry.v1.DeleteTagRequest;
import com.google.devtools.artifactregistry.v1.DeleteVersionRequest;
import com.google.devtools.artifactregistry.v1.DockerImage;
+import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata;
+import com.google.devtools.artifactregistry.v1.ExportArtifactRequest;
+import com.google.devtools.artifactregistry.v1.ExportArtifactResponse;
import com.google.devtools.artifactregistry.v1.File;
import com.google.devtools.artifactregistry.v1.GetAttachmentRequest;
import com.google.devtools.artifactregistry.v1.GetDockerImageRequest;
@@ -446,6 +449,15 @@ public UnaryCallable deleteAttachmentCallabl
throw new UnsupportedOperationException("Not implemented: deleteAttachmentCallable()");
}
+ public OperationCallable
+ exportArtifactOperationCallable() {
+ throw new UnsupportedOperationException("Not implemented: exportArtifactOperationCallable()");
+ }
+
+ public UnaryCallable exportArtifactCallable() {
+ throw new UnsupportedOperationException("Not implemented: exportArtifactCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java
index 1f4819fc006e..b8da51785cc5 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java
@@ -82,6 +82,9 @@
import com.google.devtools.artifactregistry.v1.DeleteTagRequest;
import com.google.devtools.artifactregistry.v1.DeleteVersionRequest;
import com.google.devtools.artifactregistry.v1.DockerImage;
+import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata;
+import com.google.devtools.artifactregistry.v1.ExportArtifactRequest;
+import com.google.devtools.artifactregistry.v1.ExportArtifactResponse;
import com.google.devtools.artifactregistry.v1.File;
import com.google.devtools.artifactregistry.v1.GetAttachmentRequest;
import com.google.devtools.artifactregistry.v1.GetDockerImageRequest;
@@ -336,6 +339,10 @@ public class ArtifactRegistryStubSettings extends StubSettings deleteAttachmentSettings;
private final OperationCallSettings
deleteAttachmentOperationSettings;
+ private final UnaryCallSettings exportArtifactSettings;
+ private final OperationCallSettings<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -1312,6 +1319,18 @@ public UnaryCallSettings deleteAttachmentSet
return deleteAttachmentOperationSettings;
}
+ /** Returns the object with the settings used for calls to exportArtifact. */
+ public UnaryCallSettings exportArtifactSettings() {
+ return exportArtifactSettings;
+ }
+
+ /** Returns the object with the settings used for calls to exportArtifact. */
+ public OperationCallSettings<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationSettings() {
+ return exportArtifactOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -1496,6 +1515,8 @@ protected ArtifactRegistryStubSettings(Builder settingsBuilder) throws IOExcepti
createAttachmentOperationSettings = settingsBuilder.createAttachmentOperationSettings().build();
deleteAttachmentSettings = settingsBuilder.deleteAttachmentSettings().build();
deleteAttachmentOperationSettings = settingsBuilder.deleteAttachmentOperationSettings().build();
+ exportArtifactSettings = settingsBuilder.exportArtifactSettings().build();
+ exportArtifactOperationSettings = settingsBuilder.exportArtifactOperationSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
}
@@ -1615,6 +1636,11 @@ public static class Builder extends StubSettings.Builder
deleteAttachmentOperationSettings;
+ private final UnaryCallSettings.Builder
+ exportArtifactSettings;
+ private final OperationCallSettings.Builder<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -1712,6 +1738,8 @@ protected Builder(ClientContext clientContext) {
createAttachmentOperationSettings = OperationCallSettings.newBuilder();
deleteAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteAttachmentOperationSettings = OperationCallSettings.newBuilder();
+ exportArtifactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ exportArtifactOperationSettings = OperationCallSettings.newBuilder();
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -1766,6 +1794,7 @@ protected Builder(ClientContext clientContext) {
getAttachmentSettings,
createAttachmentSettings,
deleteAttachmentSettings,
+ exportArtifactSettings,
listLocationsSettings,
getLocationSettings);
initDefaults(this);
@@ -1836,6 +1865,8 @@ protected Builder(ArtifactRegistryStubSettings settings) {
createAttachmentOperationSettings = settings.createAttachmentOperationSettings.toBuilder();
deleteAttachmentSettings = settings.deleteAttachmentSettings.toBuilder();
deleteAttachmentOperationSettings = settings.deleteAttachmentOperationSettings.toBuilder();
+ exportArtifactSettings = settings.exportArtifactSettings.toBuilder();
+ exportArtifactOperationSettings = settings.exportArtifactOperationSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
@@ -1890,6 +1921,7 @@ protected Builder(ArtifactRegistryStubSettings settings) {
getAttachmentSettings,
createAttachmentSettings,
deleteAttachmentSettings,
+ exportArtifactSettings,
listLocationsSettings,
getLocationSettings);
}
@@ -2164,6 +2196,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+ builder
+ .exportArtifactSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+
builder
.listLocationsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
@@ -2418,6 +2455,30 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeoutDuration(Duration.ofMillis(300000L))
.build()));
+ builder
+ .exportArtifactOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(ExportArtifactResponse.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(ExportArtifactMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
+ .setInitialRpcTimeoutDuration(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeoutDuration(Duration.ZERO)
+ .setTotalTimeoutDuration(Duration.ofMillis(300000L))
+ .build()));
+
return builder;
}
@@ -2777,6 +2838,18 @@ public UnaryCallSettings.Builder getAttachment
return deleteAttachmentOperationSettings;
}
+ /** Returns the builder for the settings used for calls to exportArtifact. */
+ public UnaryCallSettings.Builder exportArtifactSettings() {
+ return exportArtifactSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to exportArtifact. */
+ public OperationCallSettings.Builder<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationSettings() {
+ return exportArtifactOperationSettings;
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java
index 80cddd9b2269..0876fdd7bf41 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java
@@ -56,6 +56,9 @@
import com.google.devtools.artifactregistry.v1.DeleteTagRequest;
import com.google.devtools.artifactregistry.v1.DeleteVersionRequest;
import com.google.devtools.artifactregistry.v1.DockerImage;
+import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata;
+import com.google.devtools.artifactregistry.v1.ExportArtifactRequest;
+import com.google.devtools.artifactregistry.v1.ExportArtifactResponse;
import com.google.devtools.artifactregistry.v1.File;
import com.google.devtools.artifactregistry.v1.GetAttachmentRequest;
import com.google.devtools.artifactregistry.v1.GetDockerImageRequest;
@@ -683,6 +686,18 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub {
.setSampledToLocalTracing(true)
.build();
+ private static final MethodDescriptor
+ exportArtifactMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.devtools.artifactregistry.v1.ArtifactRegistry/ExportArtifact")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ExportArtifactRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -803,6 +818,10 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub {
private final UnaryCallable deleteAttachmentCallable;
private final OperationCallable
deleteAttachmentOperationCallable;
+ private final UnaryCallable exportArtifactCallable;
+ private final OperationCallable<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -1354,6 +1373,16 @@ protected GrpcArtifactRegistryStub(
return builder.build();
})
.build();
+ GrpcCallSettings exportArtifactTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(exportArtifactMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("repository", String.valueOf(request.getRepository()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -1637,6 +1666,15 @@ protected GrpcArtifactRegistryStub(
settings.deleteAttachmentOperationSettings(),
clientContext,
operationsStub);
+ this.exportArtifactCallable =
+ callableFactory.createUnaryCallable(
+ exportArtifactTransportSettings, settings.exportArtifactSettings(), clientContext);
+ this.exportArtifactOperationCallable =
+ callableFactory.createOperationCallable(
+ exportArtifactTransportSettings,
+ settings.exportArtifactOperationSettings(),
+ clientContext,
+ operationsStub);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -2029,6 +2067,17 @@ public UnaryCallable deleteAttachmentCallabl
return deleteAttachmentOperationCallable;
}
+ @Override
+ public UnaryCallable exportArtifactCallable() {
+ return exportArtifactCallable;
+ }
+
+ @Override
+ public OperationCallable
+ exportArtifactOperationCallable() {
+ return exportArtifactOperationCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java
index 0677da759fb8..553fff1a7d1a 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java
@@ -65,6 +65,9 @@
import com.google.devtools.artifactregistry.v1.DeleteTagRequest;
import com.google.devtools.artifactregistry.v1.DeleteVersionRequest;
import com.google.devtools.artifactregistry.v1.DockerImage;
+import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata;
+import com.google.devtools.artifactregistry.v1.ExportArtifactRequest;
+import com.google.devtools.artifactregistry.v1.ExportArtifactResponse;
import com.google.devtools.artifactregistry.v1.File;
import com.google.devtools.artifactregistry.v1.GetAttachmentRequest;
import com.google.devtools.artifactregistry.v1.GetDockerImageRequest;
@@ -154,12 +157,14 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
TypeRegistry.newBuilder()
.add(BatchDeleteVersionsMetadata.getDescriptor())
.add(Attachment.getDescriptor())
+ .add(ExportArtifactResponse.getDescriptor())
.add(Empty.getDescriptor())
.add(ImportYumArtifactsResponse.getDescriptor())
.add(ImportAptArtifactsResponse.getDescriptor())
.add(ImportYumArtifactsMetadata.getDescriptor())
.add(ImportAptArtifactsMetadata.getDescriptor())
.add(Repository.getDescriptor())
+ .add(ExportArtifactMetadata.getDescriptor())
.add(OperationMetadata.getDescriptor())
.build();
@@ -1982,6 +1987,47 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
HttpJsonOperationSnapshot.create(response))
.build();
+ private static final ApiMethodDescriptor
+ exportArtifactMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.devtools.artifactregistry.v1.ArtifactRegistry/ExportArtifact")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{repository=projects/*/locations/*/repositories/*}:exportArtifact",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "repository", request.getRepository());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearRepository().build(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (ExportArtifactRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
private static final ApiMethodDescriptor
listLocationsMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -2149,6 +2195,10 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
private final UnaryCallable deleteAttachmentCallable;
private final OperationCallable
deleteAttachmentOperationCallable;
+ private final UnaryCallable exportArtifactCallable;
+ private final OperationCallable<
+ ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata>
+ exportArtifactOperationCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -2761,6 +2811,17 @@ protected HttpJsonArtifactRegistryStub(
return builder.build();
})
.build();
+ HttpJsonCallSettings exportArtifactTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(exportArtifactMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("repository", String.valueOf(request.getRepository()));
+ return builder.build();
+ })
+ .build();
HttpJsonCallSettings
listLocationsTransportSettings =
HttpJsonCallSettings.newBuilder()
@@ -3047,6 +3108,15 @@ protected HttpJsonArtifactRegistryStub(
settings.deleteAttachmentOperationSettings(),
clientContext,
httpJsonOperationsStub);
+ this.exportArtifactCallable =
+ callableFactory.createUnaryCallable(
+ exportArtifactTransportSettings, settings.exportArtifactSettings(), clientContext);
+ this.exportArtifactOperationCallable =
+ callableFactory.createOperationCallable(
+ exportArtifactTransportSettings,
+ settings.exportArtifactOperationSettings(),
+ clientContext,
+ httpJsonOperationsStub);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -3113,6 +3183,7 @@ public static List getMethodDescriptors() {
methodDescriptors.add(getAttachmentMethodDescriptor);
methodDescriptors.add(createAttachmentMethodDescriptor);
methodDescriptors.add(deleteAttachmentMethodDescriptor);
+ methodDescriptors.add(exportArtifactMethodDescriptor);
methodDescriptors.add(listLocationsMethodDescriptor);
methodDescriptors.add(getLocationMethodDescriptor);
return methodDescriptors;
@@ -3496,6 +3567,17 @@ public UnaryCallable deleteAttachmentCallabl
return deleteAttachmentOperationCallable;
}
+ @Override
+ public UnaryCallable exportArtifactCallable() {
+ return exportArtifactCallable;
+ }
+
+ @Override
+ public OperationCallable
+ exportArtifactOperationCallable() {
+ return exportArtifactOperationCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json b/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json
index b454f9ed8499..cc4a674fa6d2 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json
@@ -854,6 +854,78 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ExportArtifactMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ExportArtifactMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ExportArtifactMetadata$ExportedFile",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ExportArtifactMetadata$ExportedFile$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ExportArtifactRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ExportArtifactRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ExportArtifactResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ExportArtifactResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.devtools.artifactregistry.v1.File",
"queryAllDeclaredConstructors": true,
@@ -1169,6 +1241,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ImageManifest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.devtools.artifactregistry.v1.ImageManifest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo",
"queryAllDeclaredConstructors": true,
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java
index b4ffd55bc3e2..fa3f18e4bb3b 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java
@@ -173,6 +173,8 @@ public void getDockerImageTest() throws Exception {
.setMediaType("mediaType2140463422")
.setBuildTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setArtifactType("artifactType-672214996")
+ .addAllImageManifests(new ArrayList())
.build();
mockService.addResponse(expectedResponse);
@@ -228,6 +230,8 @@ public void getDockerImageTest2() throws Exception {
.setMediaType("mediaType2140463422")
.setBuildTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setArtifactType("artifactType-672214996")
+ .addAllImageManifests(new ArrayList())
.build();
mockService.addResponse(expectedResponse);
@@ -2583,7 +2587,12 @@ public void listTagsExceptionTest() throws Exception {
@Test
public void getTagTest() throws Exception {
Tag expectedResponse =
- Tag.newBuilder().setName("name3373707").setVersion("version351608024").build();
+ Tag.newBuilder()
+ .setName(
+ TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]")
+ .toString())
+ .setVersion("version351608024")
+ .build();
mockService.addResponse(expectedResponse);
String name =
@@ -2627,7 +2636,12 @@ public void getTagExceptionTest() throws Exception {
@Test
public void createTagTest() throws Exception {
Tag expectedResponse =
- Tag.newBuilder().setName("name3373707").setVersion("version351608024").build();
+ Tag.newBuilder()
+ .setName(
+ TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]")
+ .toString())
+ .setVersion("version351608024")
+ .build();
mockService.addResponse(expectedResponse);
String parent =
@@ -2675,13 +2689,19 @@ public void createTagExceptionTest() throws Exception {
@Test
public void updateTagTest() throws Exception {
Tag expectedResponse =
- Tag.newBuilder().setName("name3373707").setVersion("version351608024").build();
+ Tag.newBuilder()
+ .setName(
+ TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]")
+ .toString())
+ .setVersion("version351608024")
+ .build();
mockService.addResponse(expectedResponse);
Tag tag =
Tag.newBuilder()
.setName(
- "projects/project-5748/locations/location-5748/repositories/repositorie-5748/packages/package-5748/tags/tag-5748")
+ TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]")
+ .toString())
.setVersion("version351608024")
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2715,7 +2735,8 @@ public void updateTagExceptionTest() throws Exception {
Tag tag =
Tag.newBuilder()
.setName(
- "projects/project-5748/locations/location-5748/repositories/repositorie-5748/packages/package-5748/tags/tag-5748")
+ TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]")
+ .toString())
.setVersion("version351608024")
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
@@ -4150,6 +4171,62 @@ public void deleteAttachmentExceptionTest2() throws Exception {
}
}
+ @Test
+ public void exportArtifactTest() throws Exception {
+ ExportArtifactResponse expectedResponse =
+ ExportArtifactResponse.newBuilder()
+ .setExportedVersion(Version.newBuilder().build())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("exportArtifactTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ ExportArtifactRequest request =
+ ExportArtifactRequest.newBuilder()
+ .setRepository(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ .build();
+
+ ExportArtifactResponse actualResponse = client.exportArtifactAsync(request).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void exportArtifactExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ ExportArtifactRequest request =
+ ExportArtifactRequest.newBuilder()
+ .setRepository(
+ RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ .build();
+ client.exportArtifactAsync(request).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+
@Test
public void listLocationsTest() throws Exception {
Location responsesElement = Location.newBuilder().build();
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java
index 96f80af4081e..80a2c83ad2f1 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java
@@ -174,6 +174,8 @@ public void getDockerImageTest() throws Exception {
.setMediaType("mediaType2140463422")
.setBuildTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setArtifactType("artifactType-672214996")
+ .addAllImageManifests(new ArrayList())
.build();
mockArtifactRegistry.addResponse(expectedResponse);
@@ -223,6 +225,8 @@ public void getDockerImageTest2() throws Exception {
.setMediaType("mediaType2140463422")
.setBuildTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setArtifactType("artifactType-672214996")
+ .addAllImageManifests(new ArrayList())
.build();
mockArtifactRegistry.addResponse(expectedResponse);
@@ -2249,7 +2253,12 @@ public void listTagsExceptionTest() throws Exception {
@Test
public void getTagTest() throws Exception {
Tag expectedResponse =
- Tag.newBuilder().setName("name3373707").setVersion("version351608024").build();
+ Tag.newBuilder()
+ .setName(
+ TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]")
+ .toString())
+ .setVersion("version351608024")
+ .build();
mockArtifactRegistry.addResponse(expectedResponse);
String name = "name3373707";
@@ -2285,7 +2294,12 @@ public void getTagExceptionTest() throws Exception {
@Test
public void createTagTest() throws Exception {
Tag expectedResponse =
- Tag.newBuilder().setName("name3373707").setVersion("version351608024").build();
+ Tag.newBuilder()
+ .setName(
+ TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]")
+ .toString())
+ .setVersion("version351608024")
+ .build();
mockArtifactRegistry.addResponse(expectedResponse);
String parent = "parent-995424086";
@@ -2327,7 +2341,12 @@ public void createTagExceptionTest() throws Exception {
@Test
public void updateTagTest() throws Exception {
Tag expectedResponse =
- Tag.newBuilder().setName("name3373707").setVersion("version351608024").build();
+ Tag.newBuilder()
+ .setName(
+ TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]")
+ .toString())
+ .setVersion("version351608024")
+ .build();
mockArtifactRegistry.addResponse(expectedResponse);
Tag tag = Tag.newBuilder().build();
@@ -3598,6 +3617,62 @@ public void deleteAttachmentExceptionTest2() throws Exception {
}
}
+ @Test
+ public void exportArtifactTest() throws Exception {
+ ExportArtifactResponse expectedResponse =
+ ExportArtifactResponse.newBuilder()
+ .setExportedVersion(Version.newBuilder().build())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("exportArtifactTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockArtifactRegistry.addResponse(resultOperation);
+
+ ExportArtifactRequest request =
+ ExportArtifactRequest.newBuilder()
+ .setRepository(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ .build();
+
+ ExportArtifactResponse actualResponse = client.exportArtifactAsync(request).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockArtifactRegistry.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ExportArtifactRequest actualRequest = ((ExportArtifactRequest) actualRequests.get(0));
+
+ Assert.assertEquals(request.getSourceVersion(), actualRequest.getSourceVersion());
+ Assert.assertEquals(request.getSourceTag(), actualRequest.getSourceTag());
+ Assert.assertEquals(request.getGcsPath(), actualRequest.getGcsPath());
+ Assert.assertEquals(request.getRepository(), actualRequest.getRepository());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void exportArtifactExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockArtifactRegistry.addException(exception);
+
+ try {
+ ExportArtifactRequest request =
+ ExportArtifactRequest.newBuilder()
+ .setRepository(
+ RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ .build();
+ client.exportArtifactAsync(request).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+ InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+ Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+ }
+ }
+
@Test
public void listLocationsTest() throws Exception {
Location responsesElement = Location.newBuilder().build();
diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java
index 66306ccd48f6..76cd7a1905e4 100644
--- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java
+++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java
@@ -1081,4 +1081,25 @@ public void deleteAttachment(
Exception.class.getName())));
}
}
+
+ @Override
+ public void exportArtifact(
+ ExportArtifactRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof Operation) {
+ requests.add(request);
+ responseObserver.onNext(((Operation) response));
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError(((Exception) response));
+ } else {
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method ExportArtifact, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
+ }
+ }
}
diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java
index cc2e67b68404..8602a9185fe0 100644
--- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java
+++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java
@@ -2304,6 +2304,52 @@ private ArtifactRegistryGrpc() {}
return getDeleteAttachmentMethod;
}
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest,
+ com.google.longrunning.Operation>
+ getExportArtifactMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ExportArtifact",
+ requestType = com.google.devtools.artifactregistry.v1.ExportArtifactRequest.class,
+ responseType = com.google.longrunning.Operation.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest,
+ com.google.longrunning.Operation>
+ getExportArtifactMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest,
+ com.google.longrunning.Operation>
+ getExportArtifactMethod;
+ if ((getExportArtifactMethod = ArtifactRegistryGrpc.getExportArtifactMethod) == null) {
+ synchronized (ArtifactRegistryGrpc.class) {
+ if ((getExportArtifactMethod = ArtifactRegistryGrpc.getExportArtifactMethod) == null) {
+ ArtifactRegistryGrpc.getExportArtifactMethod =
+ getExportArtifactMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportArtifact"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.longrunning.Operation.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ArtifactRegistryMethodDescriptorSupplier("ExportArtifact"))
+ .build();
+ }
+ }
+ }
+ return getExportArtifactMethod;
+ }
+
/** Creates a new async stub that supports all call types for the service */
public static ArtifactRegistryStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
@@ -3098,6 +3144,20 @@ default void deleteAttachment(
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteAttachmentMethod(), responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * Exports an artifact.
+ *
+ */
+ default void exportArtifact(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getExportArtifactMethod(), responseObserver);
+ }
}
/**
@@ -3956,6 +4016,22 @@ public void deleteAttachment(
request,
responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * Exports an artifact.
+ *
+ */
+ public void exportArtifact(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getExportArtifactMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
}
/**
@@ -4686,6 +4762,20 @@ public com.google.longrunning.Operation deleteAttachment(
return io.grpc.stub.ClientCalls.blockingV2UnaryCall(
getChannel(), getDeleteAttachmentMethod(), getCallOptions(), request);
}
+
+ /**
+ *
+ *
+ *
+ * Exports an artifact.
+ *
+ */
+ public com.google.longrunning.Operation exportArtifact(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest request)
+ throws io.grpc.StatusException {
+ return io.grpc.stub.ClientCalls.blockingV2UnaryCall(
+ getChannel(), getExportArtifactMethod(), getCallOptions(), request);
+ }
}
/**
@@ -5367,6 +5457,19 @@ public com.google.longrunning.Operation deleteAttachment(
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteAttachmentMethod(), getCallOptions(), request);
}
+
+ /**
+ *
+ *
+ *
+ * Exports an artifact.
+ *
+ */
+ public com.google.longrunning.Operation exportArtifact(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getExportArtifactMethod(), getCallOptions(), request);
+ }
}
/**
@@ -6093,6 +6196,19 @@ public com.google.common.util.concurrent.ListenableFuture
+ * Exports an artifact.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ exportArtifact(com.google.devtools.artifactregistry.v1.ExportArtifactRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getExportArtifactMethod(), getCallOptions()), request);
+ }
}
private static final int METHODID_LIST_DOCKER_IMAGES = 0;
@@ -6144,6 +6260,7 @@ public com.google.common.util.concurrent.ListenableFuture
implements io.grpc.stub.ServerCalls.UnaryMethod,
@@ -6453,6 +6570,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
(com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
+ case METHODID_EXPORT_ARTIFACT:
+ serviceImpl.exportArtifact(
+ (com.google.devtools.artifactregistry.v1.ExportArtifactRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
default:
throw new AssertionError();
}
@@ -6790,6 +6912,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
new MethodHandlers<
com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest,
com.google.longrunning.Operation>(service, METHODID_DELETE_ATTACHMENT)))
+ .addMethod(
+ getExportArtifactMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest,
+ com.google.longrunning.Operation>(service, METHODID_EXPORT_ARTIFACT)))
.build();
}
@@ -6890,6 +7018,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getGetAttachmentMethod())
.addMethod(getCreateAttachmentMethod())
.addMethod(getDeleteAttachmentMethod())
+ .addMethod(getExportArtifactMethod())
.build();
}
}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactProto.java
index 716e601d6a89..aff030fc7d82 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactProto.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactProto.java
@@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_devtools_artifactregistry_v1_DockerImage_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_devtools_artifactregistry_v1_DockerImage_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_ImageManifest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -104,7 +108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n"
+ "2google/devtools/artifactregistry/v1/artifact.proto\022#google.devtools.artifactre"
+ "gistry.v1\032\037google/api/field_behavior.pro"
- + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\230\003\n"
+ + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\201\004\n"
+ "\013DockerImage\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\022\020\n"
+ "\003uri\030\002 \001(\tB\003\340A\002\022\014\n"
@@ -114,22 +118,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "media_type\030\006 \001(\t\022.\n\n"
+ "build_time\030\007 \001(\0132\032.google.protobuf.Timestamp\0224\n"
+ "\013update_time\030\010"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\220\001\352A\214\001\n"
- + "+artifactregistry.googleapis.com/DockerImage\022]projects/{project}/l"
- + "ocations/{location}/repositories/{repository}/dockerImages/{docker_image}\"g\n"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r"
+ + "artifact_type\030\t \001(\t\022P\n"
+ + "\017image_manifests\030\013"
+ + " \003(\01322.google.devtools.artifactregistry.v1.ImageManifestB\003\340A\001:\220\001\352A\214\001\n"
+ + "+artifactregistry.googleapis.com/DockerImage\022]projects/{project}/locations/{locat"
+ + "ion}/repositories/{repository}/dockerImages/{docker_image}\"\262\001\n\r"
+ + "ImageManifest\022\031\n"
+ + "\014architecture\030\001 \001(\tB\003\340A\001\022\017\n"
+ + "\002os\030\002 \001(\tB\003\340A\001\022\023\n"
+ + "\006digest\030\003 \001(\tB\003\340A\001\022\027\n\n"
+ + "media_type\030\004 \001(\tB\003\340A\001\022\027\n\n"
+ + "os_version\030\005 \001(\tB\003\340A\001\022\030\n"
+ + "\013os_features\030\006 \003(\tB\003\340A\001\022\024\n"
+ + "\007variant\030\007 \001(\tB\003\340A\001\"g\n"
+ "\027ListDockerImagesRequest\022\023\n"
+ "\006parent\030\001 \001(\tB\003\340A\002\022\021\n"
+ "\tpage_size\030\002 \001(\005\022\022\n\n"
+ "page_token\030\003 \001(\t\022\020\n"
+ "\010order_by\030\004 \001(\t\"|\n"
+ "\030ListDockerImagesResponse\022G\n\r"
- + "docker_images\030\001 \003(\01320.google.d"
- + "evtools.artifactregistry.v1.DockerImage\022\027\n"
+ + "docker_images\030\001 \003(\01320.go"
+ + "ogle.devtools.artifactregistry.v1.DockerImage\022\027\n"
+ "\017next_page_token\030\002 \001(\t\"Z\n"
+ "\025GetDockerImageRequest\022A\n"
+ "\004name\030\001 \001(\tB3\340A\002\372A-\n"
- + "+artifactregistry.googleapis.com/DockerImage\"\365\002\n"
- + "\r"
+ + "+artifactregistry.googleapis.com/DockerImage\"\365\002\n\r"
+ "MavenArtifact\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\022\024\n"
+ "\007pom_uri\030\002 \001(\tB\003\340A\002\022\020\n"
@@ -139,12 +153,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ "\013update_time\030\007"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\226\001\352A\222\001\n"
- + "-artifactregistry.googleapis.com/MavenArtifact\022aproje"
- + "cts/{project}/locations/{location}/repos"
- + "itories/{repository}/mavenArtifacts/{maven_artifact}\"\211\001\n"
+ + "-artifactregistry.googleapis.com/MavenArtifact\022"
+ + "aprojects/{project}/locations/{location}"
+ + "/repositories/{repository}/mavenArtifacts/{maven_artifact}\"\211\001\n"
+ "\031ListMavenArtifactsRequest\022E\n"
- + "\006parent\030\001 \001("
- + "\tB5\340A\002\372A/\022-artifactregistry.googleapis.com/MavenArtifact\022\021\n"
+ + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-artifa"
+ + "ctregistry.googleapis.com/MavenArtifact\022\021\n"
+ "\tpage_size\030\002 \001(\005\022\022\n\n"
+ "page_token\030\003 \001(\t\"\202\001\n"
+ "\032ListMavenArtifactsResponse\022K\n"
@@ -162,17 +176,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ "\013update_time\030\007"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\215\001\352A\211\001\n"
- + "*artifactregistry.googleapis.com/NpmPackage\022[projects/{p"
- + "roject}/locations/{location}/repositorie"
- + "s/{repository}/npmPackages/{npm_package}\"\203\001\n"
+ + "*artifactregistry.googleapis.com/NpmPackage\022[proje"
+ + "cts/{project}/locations/{location}/repos"
+ + "itories/{repository}/npmPackages/{npm_package}\"\203\001\n"
+ "\026ListNpmPackagesRequest\022B\n"
+ "\006parent\030\001 \001("
+ "\tB2\340A\002\372A,\022*artifactregistry.googleapis.com/NpmPackage\022\021\n"
+ "\tpage_size\030\002 \001(\005\022\022\n\n"
+ "page_token\030\003 \001(\t\"y\n"
+ "\027ListNpmPackagesResponse\022E\n"
- + "\014npm_packages\030\001"
- + " \003(\0132/.google.devtools.artifactregistry.v1.NpmPackage\022\027\n"
+ + "\014npm_packages\030\001 \003(\0132/.google.d"
+ + "evtools.artifactregistry.v1.NpmPackage\022\027\n"
+ "\017next_page_token\030\002 \001(\t\"X\n"
+ "\024GetNpmPackageRequest\022@\n"
+ "\004name\030\001 \001(\tB2\340A\002\372A,\n"
@@ -183,13 +197,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014package_name\030\003 \001(\t\022\017\n"
+ "\007version\030\004 \001(\t\0224\n"
+ "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
- + "\013update_time\030\007"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\226\001\352A\222\001\n"
- + "-artifactregistry.googleapis.com/PythonPackage\022aprojects/{project}/locations/{locat"
- + "ion}/repositories/{repository}/pythonPackages/{python_package}\"\211\001\n"
+ + "\013update_time\030\007 \001"
+ + "(\0132\032.google.protobuf.TimestampB\003\340A\003:\226\001\352A\222\001\n"
+ + "-artifactregistry.googleapis.com/PythonPackage\022aprojects/{project}/locations/"
+ + "{location}/repositories/{repository}/pythonPackages/{python_package}\"\211\001\n"
+ "\031ListPythonPackagesRequest\022E\n"
- + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-ar"
- + "tifactregistry.googleapis.com/PythonPackage\022\021\n"
+ + "\006parent\030\001 \001(\tB5\340A\002\372"
+ + "A/\022-artifactregistry.googleapis.com/PythonPackage\022\021\n"
+ "\tpage_size\030\002 \001(\005\022\022\n\n"
+ "page_token\030\003 \001(\t\"\202\001\n"
+ "\032ListPythonPackagesResponse\022K\n"
@@ -200,10 +214,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB5\340A\002\372A/\n"
+ "-artifactregistry.googleapis.com/PythonPackageB\370\001\n"
+ "\'com.google.devtools.artifactregistry.v1B\r"
- + "ArtifactProtoP\001ZPcloud.google.com/go/artifa"
- + "ctregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002"
- + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactRegistr"
- + "y\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3"
+ + "ArtifactProtoP\001ZPcloud.google.com/go/"
+ + "artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002"
+ + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactR"
+ + "egistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -227,9 +241,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MediaType",
"BuildTime",
"UpdateTime",
+ "ArtifactType",
+ "ImageManifests",
});
- internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor =
+ internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor =
getDescriptor().getMessageTypes().get(1);
+ internal_static_google_devtools_artifactregistry_v1_ImageManifest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor,
+ new java.lang.String[] {
+ "Architecture", "Os", "Digest", "MediaType", "OsVersion", "OsFeatures", "Variant",
+ });
+ internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor,
@@ -237,7 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageSize", "PageToken", "OrderBy",
});
internal_static_google_devtools_artifactregistry_v1_ListDockerImagesResponse_descriptor =
- getDescriptor().getMessageTypes().get(2);
+ getDescriptor().getMessageTypes().get(3);
internal_static_google_devtools_artifactregistry_v1_ListDockerImagesResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_ListDockerImagesResponse_descriptor,
@@ -245,7 +269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"DockerImages", "NextPageToken",
});
internal_static_google_devtools_artifactregistry_v1_GetDockerImageRequest_descriptor =
- getDescriptor().getMessageTypes().get(3);
+ getDescriptor().getMessageTypes().get(4);
internal_static_google_devtools_artifactregistry_v1_GetDockerImageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_GetDockerImageRequest_descriptor,
@@ -253,7 +277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_devtools_artifactregistry_v1_MavenArtifact_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(5);
internal_static_google_devtools_artifactregistry_v1_MavenArtifact_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_MavenArtifact_descriptor,
@@ -261,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "PomUri", "GroupId", "ArtifactId", "Version", "CreateTime", "UpdateTime",
});
internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsRequest_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(6);
internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsRequest_descriptor,
@@ -269,7 +293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageSize", "PageToken",
});
internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsResponse_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsResponse_descriptor,
@@ -277,7 +301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MavenArtifacts", "NextPageToken",
});
internal_static_google_devtools_artifactregistry_v1_GetMavenArtifactRequest_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_devtools_artifactregistry_v1_GetMavenArtifactRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_GetMavenArtifactRequest_descriptor,
@@ -285,7 +309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_devtools_artifactregistry_v1_NpmPackage_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(9);
internal_static_google_devtools_artifactregistry_v1_NpmPackage_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_NpmPackage_descriptor,
@@ -293,7 +317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "PackageName", "Version", "Tags", "CreateTime", "UpdateTime",
});
internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesRequest_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(10);
internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesRequest_descriptor,
@@ -301,7 +325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageSize", "PageToken",
});
internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesResponse_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(11);
internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesResponse_descriptor,
@@ -309,7 +333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"NpmPackages", "NextPageToken",
});
internal_static_google_devtools_artifactregistry_v1_GetNpmPackageRequest_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(12);
internal_static_google_devtools_artifactregistry_v1_GetNpmPackageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_GetNpmPackageRequest_descriptor,
@@ -317,7 +341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_devtools_artifactregistry_v1_PythonPackage_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(13);
internal_static_google_devtools_artifactregistry_v1_PythonPackage_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_PythonPackage_descriptor,
@@ -325,7 +349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "Uri", "PackageName", "Version", "CreateTime", "UpdateTime",
});
internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesRequest_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesRequest_descriptor,
@@ -333,7 +357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageSize", "PageToken",
});
internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesResponse_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesResponse_descriptor,
@@ -341,7 +365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PythonPackages", "NextPageToken",
});
internal_static_google_devtools_artifactregistry_v1_GetPythonPackageRequest_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_devtools_artifactregistry_v1_GetPythonPackageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_artifactregistry_v1_GetPythonPackageRequest_descriptor,
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImage.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImage.java
index 2393e100d56b..8421e05251d8 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImage.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImage.java
@@ -49,6 +49,8 @@ private DockerImage() {
uri_ = "";
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
mediaType_ = "";
+ artifactType_ = "";
+ imageManifests_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -84,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -117,7 +119,7 @@ public java.lang.String getName() {
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -511,6 +513,158 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
+ public static final int ARTIFACT_TYPE_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object artifactType_ = "";
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @return The artifactType.
+ */
+ @java.lang.Override
+ public java.lang.String getArtifactType() {
+ java.lang.Object ref = artifactType_;
+ 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();
+ artifactType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @return The bytes for artifactType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getArtifactTypeBytes() {
+ java.lang.Object ref = artifactType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ artifactType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IMAGE_MANIFESTS_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
+ private java.util.List imageManifests_;
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getImageManifestsList() {
+ return imageManifests_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder>
+ getImageManifestsOrBuilderList() {
+ return imageManifests_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getImageManifestsCount() {
+ return imageManifests_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ImageManifest getImageManifests(int index) {
+ return imageManifests_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder getImageManifestsOrBuilder(
+ int index) {
+ return imageManifests_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -549,6 +703,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(8, getUpdateTime());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, artifactType_);
+ }
+ for (int i = 0; i < imageManifests_.size(); i++) {
+ output.writeMessage(11, imageManifests_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -587,6 +747,12 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, artifactType_);
+ }
+ for (int i = 0; i < imageManifests_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, imageManifests_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -620,6 +786,8 @@ public boolean equals(final java.lang.Object obj) {
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
+ if (!getArtifactType().equals(other.getArtifactType())) return false;
+ if (!getImageManifestsList().equals(other.getImageManifestsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -655,6 +823,12 @@ public int hashCode() {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
+ hash = (37 * hash) + ARTIFACT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getArtifactType().hashCode();
+ if (getImageManifestsCount() > 0) {
+ hash = (37 * hash) + IMAGE_MANIFESTS_FIELD_NUMBER;
+ hash = (53 * hash) + getImageManifestsList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -804,6 +978,7 @@ private void maybeForceBuilderInitialization() {
getUploadTimeFieldBuilder();
getBuildTimeFieldBuilder();
getUpdateTimeFieldBuilder();
+ getImageManifestsFieldBuilder();
}
}
@@ -831,6 +1006,14 @@ public Builder clear() {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
+ artifactType_ = "";
+ if (imageManifestsBuilder_ == null) {
+ imageManifests_ = java.util.Collections.emptyList();
+ } else {
+ imageManifests_ = null;
+ imageManifestsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
@@ -858,6 +1041,7 @@ public com.google.devtools.artifactregistry.v1.DockerImage build() {
public com.google.devtools.artifactregistry.v1.DockerImage buildPartial() {
com.google.devtools.artifactregistry.v1.DockerImage result =
new com.google.devtools.artifactregistry.v1.DockerImage(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -865,6 +1049,19 @@ public com.google.devtools.artifactregistry.v1.DockerImage buildPartial() {
return result;
}
+ private void buildPartialRepeatedFields(
+ com.google.devtools.artifactregistry.v1.DockerImage result) {
+ if (imageManifestsBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)) {
+ imageManifests_ = java.util.Collections.unmodifiableList(imageManifests_);
+ bitField0_ = (bitField0_ & ~0x00000200);
+ }
+ result.imageManifests_ = imageManifests_;
+ } else {
+ result.imageManifests_ = imageManifestsBuilder_.build();
+ }
+ }
+
private void buildPartial0(com.google.devtools.artifactregistry.v1.DockerImage result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -896,6 +1093,9 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.DockerImage r
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.artifactType_ = artifactType_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -982,6 +1182,38 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.DockerImage oth
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
+ if (!other.getArtifactType().isEmpty()) {
+ artifactType_ = other.artifactType_;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ if (imageManifestsBuilder_ == null) {
+ if (!other.imageManifests_.isEmpty()) {
+ if (imageManifests_.isEmpty()) {
+ imageManifests_ = other.imageManifests_;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ } else {
+ ensureImageManifestsIsMutable();
+ imageManifests_.addAll(other.imageManifests_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.imageManifests_.isEmpty()) {
+ if (imageManifestsBuilder_.isEmpty()) {
+ imageManifestsBuilder_.dispose();
+ imageManifestsBuilder_ = null;
+ imageManifests_ = other.imageManifests_;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ imageManifestsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getImageManifestsFieldBuilder()
+ : null;
+ } else {
+ imageManifestsBuilder_.addAllMessages(other.imageManifests_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1057,6 +1289,26 @@ public Builder mergeFrom(
bitField0_ |= 0x00000080;
break;
} // case 66
+ case 74:
+ {
+ artifactType_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 90:
+ {
+ com.google.devtools.artifactregistry.v1.ImageManifest m =
+ input.readMessage(
+ com.google.devtools.artifactregistry.v1.ImageManifest.parser(),
+ extensionRegistry);
+ if (imageManifestsBuilder_ == null) {
+ ensureImageManifestsIsMutable();
+ imageManifests_.add(m);
+ } else {
+ imageManifestsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 90
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1084,7 +1336,7 @@ public Builder mergeFrom(
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -1116,7 +1368,7 @@ public java.lang.String getName() {
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -1148,7 +1400,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -1179,7 +1431,7 @@ public Builder setName(java.lang.String value) {
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -1206,7 +1458,7 @@ public Builder clearName() {
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -2356,6 +2608,567 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTimeBuilder_;
}
+ private java.lang.Object artifactType_ = "";
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @return The artifactType.
+ */
+ public java.lang.String getArtifactType() {
+ java.lang.Object ref = artifactType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ artifactType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @return The bytes for artifactType.
+ */
+ public com.google.protobuf.ByteString getArtifactTypeBytes() {
+ java.lang.Object ref = artifactType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ artifactType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @param value The artifactType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArtifactType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ artifactType_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearArtifactType() {
+ artifactType_ = getDefaultInstance().getArtifactType();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @param value The bytes for artifactType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArtifactTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ artifactType_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List imageManifests_ =
+ java.util.Collections.emptyList();
+
+ private void ensureImageManifestsIsMutable() {
+ if (!((bitField0_ & 0x00000200) != 0)) {
+ imageManifests_ =
+ new java.util.ArrayList(
+ imageManifests_);
+ bitField0_ |= 0x00000200;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.ImageManifest,
+ com.google.devtools.artifactregistry.v1.ImageManifest.Builder,
+ com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder>
+ imageManifestsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ getImageManifestsList() {
+ if (imageManifestsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(imageManifests_);
+ } else {
+ return imageManifestsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getImageManifestsCount() {
+ if (imageManifestsBuilder_ == null) {
+ return imageManifests_.size();
+ } else {
+ return imageManifestsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ImageManifest getImageManifests(int index) {
+ if (imageManifestsBuilder_ == null) {
+ return imageManifests_.get(index);
+ } else {
+ return imageManifestsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImageManifests(
+ int index, com.google.devtools.artifactregistry.v1.ImageManifest value) {
+ if (imageManifestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureImageManifestsIsMutable();
+ imageManifests_.set(index, value);
+ onChanged();
+ } else {
+ imageManifestsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImageManifests(
+ int index, com.google.devtools.artifactregistry.v1.ImageManifest.Builder builderForValue) {
+ if (imageManifestsBuilder_ == null) {
+ ensureImageManifestsIsMutable();
+ imageManifests_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ imageManifestsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addImageManifests(com.google.devtools.artifactregistry.v1.ImageManifest value) {
+ if (imageManifestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureImageManifestsIsMutable();
+ imageManifests_.add(value);
+ onChanged();
+ } else {
+ imageManifestsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addImageManifests(
+ int index, com.google.devtools.artifactregistry.v1.ImageManifest value) {
+ if (imageManifestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureImageManifestsIsMutable();
+ imageManifests_.add(index, value);
+ onChanged();
+ } else {
+ imageManifestsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addImageManifests(
+ com.google.devtools.artifactregistry.v1.ImageManifest.Builder builderForValue) {
+ if (imageManifestsBuilder_ == null) {
+ ensureImageManifestsIsMutable();
+ imageManifests_.add(builderForValue.build());
+ onChanged();
+ } else {
+ imageManifestsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addImageManifests(
+ int index, com.google.devtools.artifactregistry.v1.ImageManifest.Builder builderForValue) {
+ if (imageManifestsBuilder_ == null) {
+ ensureImageManifestsIsMutable();
+ imageManifests_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ imageManifestsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllImageManifests(
+ java.lang.Iterable extends com.google.devtools.artifactregistry.v1.ImageManifest>
+ values) {
+ if (imageManifestsBuilder_ == null) {
+ ensureImageManifestsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, imageManifests_);
+ onChanged();
+ } else {
+ imageManifestsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearImageManifests() {
+ if (imageManifestsBuilder_ == null) {
+ imageManifests_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ } else {
+ imageManifestsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeImageManifests(int index) {
+ if (imageManifestsBuilder_ == null) {
+ ensureImageManifestsIsMutable();
+ imageManifests_.remove(index);
+ onChanged();
+ } else {
+ imageManifestsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ImageManifest.Builder getImageManifestsBuilder(
+ int index) {
+ return getImageManifestsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder
+ getImageManifestsOrBuilder(int index) {
+ if (imageManifestsBuilder_ == null) {
+ return imageManifests_.get(index);
+ } else {
+ return imageManifestsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder>
+ getImageManifestsOrBuilderList() {
+ if (imageManifestsBuilder_ != null) {
+ return imageManifestsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(imageManifests_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ImageManifest.Builder
+ addImageManifestsBuilder() {
+ return getImageManifestsFieldBuilder()
+ .addBuilder(com.google.devtools.artifactregistry.v1.ImageManifest.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ImageManifest.Builder addImageManifestsBuilder(
+ int index) {
+ return getImageManifestsFieldBuilder()
+ .addBuilder(
+ index, com.google.devtools.artifactregistry.v1.ImageManifest.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ getImageManifestsBuilderList() {
+ return getImageManifestsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.ImageManifest,
+ com.google.devtools.artifactregistry.v1.ImageManifest.Builder,
+ com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder>
+ getImageManifestsFieldBuilder() {
+ if (imageManifestsBuilder_ == null) {
+ imageManifestsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.ImageManifest,
+ com.google.devtools.artifactregistry.v1.ImageManifest.Builder,
+ com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder>(
+ imageManifests_,
+ ((bitField0_ & 0x00000200) != 0),
+ getParentForChildren(),
+ isClean());
+ imageManifests_ = null;
+ }
+ return imageManifestsBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageOrBuilder.java
index 7b3bdfafbd8b..181e87ad88e7 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageOrBuilder.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageOrBuilder.java
@@ -30,7 +30,7 @@ public interface DockerImageOrBuilder
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -52,7 +52,7 @@ public interface DockerImageOrBuilder
*
* Required. registry_location, project_id, repository_name and image id forms
* a unique image
- * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+ * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
* For example,
* "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
* nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -324,4 +324,108 @@ public interface DockerImageOrBuilder
*
*/
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @return The artifactType.
+ */
+ java.lang.String getArtifactType();
+
+ /**
+ *
+ *
+ *
+ * ArtifactType of this image, e.g. "application/vnd.example+type".
+ * If the `subject_digest` is set and no `artifact_type` is given, the
+ * `media_type` will be considered as the `artifact_type`. This field is
+ * returned as the `metadata.artifactType` field in the Version resource.
+ *
+ *
+ * string artifact_type = 9;
+ *
+ * @return The bytes for artifactType.
+ */
+ com.google.protobuf.ByteString getArtifactTypeBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List getImageManifestsList();
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.devtools.artifactregistry.v1.ImageManifest getImageManifests(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getImageManifestsCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder>
+ getImageManifestsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Optional. For multi-arch images (manifest lists), this field contains the
+ * list of image manifests.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder getImageManifestsOrBuilder(
+ int index);
}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadata.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadata.java
new file mode 100644
index 000000000000..cbe5aa9c999c
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadata.java
@@ -0,0 +1,2696 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/export.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ *
+ * The LRO metadata for exporting an artifact.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactMetadata}
+ */
+public final class ExportArtifactMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ExportArtifactMetadata)
+ ExportArtifactMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ExportArtifactMetadata.newBuilder() to construct.
+ private ExportArtifactMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportArtifactMetadata() {
+ exportedFiles_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportArtifactMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.class,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.Builder.class);
+ }
+
+ public interface ExportedFileOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return Whether the gcsObjectPath field is set.
+ */
+ boolean hasGcsObjectPath();
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return The gcsObjectPath.
+ */
+ java.lang.String getGcsObjectPath();
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return The bytes for gcsObjectPath.
+ */
+ com.google.protobuf.ByteString getGcsObjectPathBytes();
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ java.util.List getHashesList();
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ com.google.devtools.artifactregistry.v1.Hash getHashes(int index);
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ int getHashesCount();
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ java.util.List extends com.google.devtools.artifactregistry.v1.HashOrBuilder>
+ getHashesOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ com.google.devtools.artifactregistry.v1.HashOrBuilder getHashesOrBuilder(int index);
+
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.DestinationCase
+ getDestinationCase();
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact file.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile}
+ */
+ public static final class ExportedFile extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile)
+ ExportedFileOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ExportedFile.newBuilder() to construct.
+ private ExportedFile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportedFile() {
+ name_ = "";
+ hashes_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportedFile();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.class,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
+ .class);
+ }
+
+ private int destinationCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object destination_;
+
+ public enum DestinationCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GCS_OBJECT_PATH(2),
+ DESTINATION_NOT_SET(0);
+ private final int value;
+
+ private DestinationCase(int value) {
+ this.value = value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DestinationCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DestinationCase forNumber(int value) {
+ switch (value) {
+ case 2:
+ return GCS_OBJECT_PATH;
+ case 0:
+ return DESTINATION_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public static final int GCS_OBJECT_PATH_FIELD_NUMBER = 2;
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return Whether the gcsObjectPath field is set.
+ */
+ public boolean hasGcsObjectPath() {
+ return destinationCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return The gcsObjectPath.
+ */
+ public java.lang.String getGcsObjectPath() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 2) {
+ ref = destination_;
+ }
+ 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();
+ if (destinationCase_ == 2) {
+ destination_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return The bytes for gcsObjectPath.
+ */
+ public com.google.protobuf.ByteString getGcsObjectPathBytes() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 2) {
+ ref = destination_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (destinationCase_ == 2) {
+ destination_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HASHES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List hashes_;
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ @java.lang.Override
+ public java.util.List getHashesList() {
+ return hashes_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.devtools.artifactregistry.v1.HashOrBuilder>
+ getHashesOrBuilderList() {
+ return hashes_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ @java.lang.Override
+ public int getHashesCount() {
+ return hashes_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.Hash getHashes(int index) {
+ return hashes_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.HashOrBuilder getHashesOrBuilder(int index) {
+ return hashes_.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.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (destinationCase_ == 2) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destination_);
+ }
+ for (int i = 0; i < hashes_.size(); i++) {
+ output.writeMessage(3, hashes_.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.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (destinationCase_ == 2) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_);
+ }
+ for (int i = 0; i < hashes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, hashes_.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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile other =
+ (com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getHashesList().equals(other.getHashesList())) return false;
+ if (!getDestinationCase().equals(other.getDestinationCase())) return false;
+ switch (destinationCase_) {
+ case 2:
+ if (!getGcsObjectPath().equals(other.getGcsObjectPath())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (getHashesCount() > 0) {
+ hash = (37 * hash) + HASHES_FIELD_NUMBER;
+ hash = (53 * hash) + getHashesList().hashCode();
+ }
+ switch (destinationCase_) {
+ case 2:
+ hash = (37 * hash) + GCS_OBJECT_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsObjectPath().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ 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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact file.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile)
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.class,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
+ .class);
+ }
+
+ // Construct using
+ // com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ if (hashesBuilder_ == null) {
+ hashes_ = java.util.Collections.emptyList();
+ } else {
+ hashes_ = null;
+ hashesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ destinationCase_ = 0;
+ destination_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ getDefaultInstanceForType() {
+ return com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile build() {
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ buildPartial() {
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result =
+ new com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result) {
+ if (hashesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ hashes_ = java.util.Collections.unmodifiableList(hashes_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.hashes_ = hashes_;
+ } else {
+ result.hashes_ = hashesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ }
+
+ private void buildPartialOneofs(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result) {
+ result.destinationCase_ = destinationCase_;
+ result.destination_ = this.destination_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) {
+ return mergeFrom(
+ (com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile other) {
+ if (other
+ == com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ .getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (hashesBuilder_ == null) {
+ if (!other.hashes_.isEmpty()) {
+ if (hashes_.isEmpty()) {
+ hashes_ = other.hashes_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureHashesIsMutable();
+ hashes_.addAll(other.hashes_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.hashes_.isEmpty()) {
+ if (hashesBuilder_.isEmpty()) {
+ hashesBuilder_.dispose();
+ hashesBuilder_ = null;
+ hashes_ = other.hashes_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ hashesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getHashesFieldBuilder()
+ : null;
+ } else {
+ hashesBuilder_.addAllMessages(other.hashes_);
+ }
+ }
+ }
+ switch (other.getDestinationCase()) {
+ case GCS_OBJECT_PATH:
+ {
+ destinationCase_ = 2;
+ destination_ = other.destination_;
+ onChanged();
+ break;
+ }
+ case DESTINATION_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 10
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ destinationCase_ = 2;
+ destination_ = s;
+ break;
+ } // case 18
+ case 26:
+ {
+ com.google.devtools.artifactregistry.v1.Hash m =
+ input.readMessage(
+ com.google.devtools.artifactregistry.v1.Hash.parser(), extensionRegistry);
+ if (hashesBuilder_ == null) {
+ ensureHashesIsMutable();
+ hashes_.add(m);
+ } else {
+ hashesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int destinationCase_ = 0;
+ private java.lang.Object destination_;
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public Builder clearDestination() {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return Whether the gcsObjectPath field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsObjectPath() {
+ return destinationCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return The gcsObjectPath.
+ */
+ @java.lang.Override
+ public java.lang.String getGcsObjectPath() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 2) {
+ ref = destination_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (destinationCase_ == 2) {
+ destination_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return The bytes for gcsObjectPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGcsObjectPathBytes() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 2) {
+ ref = destination_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (destinationCase_ == 2) {
+ destination_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @param value The gcsObjectPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsObjectPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destinationCase_ = 2;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGcsObjectPath() {
+ if (destinationCase_ == 2) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Cloud Storage Object path of the exported file. Examples:
+ * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ *
+ *
+ * string gcs_object_path = 2;
+ *
+ * @param value The bytes for gcsObjectPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsObjectPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ destinationCase_ = 2;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Name of the exported artifact file.
+ * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ *
+ *
+ * string name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List hashes_ =
+ java.util.Collections.emptyList();
+
+ private void ensureHashesIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ hashes_ = new java.util.ArrayList(hashes_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.Hash,
+ com.google.devtools.artifactregistry.v1.Hash.Builder,
+ com.google.devtools.artifactregistry.v1.HashOrBuilder>
+ hashesBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public java.util.List getHashesList() {
+ if (hashesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(hashes_);
+ } else {
+ return hashesBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public int getHashesCount() {
+ if (hashesBuilder_ == null) {
+ return hashes_.size();
+ } else {
+ return hashesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public com.google.devtools.artifactregistry.v1.Hash getHashes(int index) {
+ if (hashesBuilder_ == null) {
+ return hashes_.get(index);
+ } else {
+ return hashesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder setHashes(int index, com.google.devtools.artifactregistry.v1.Hash value) {
+ if (hashesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHashesIsMutable();
+ hashes_.set(index, value);
+ onChanged();
+ } else {
+ hashesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder setHashes(
+ int index, com.google.devtools.artifactregistry.v1.Hash.Builder builderForValue) {
+ if (hashesBuilder_ == null) {
+ ensureHashesIsMutable();
+ hashes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ hashesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder addHashes(com.google.devtools.artifactregistry.v1.Hash value) {
+ if (hashesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHashesIsMutable();
+ hashes_.add(value);
+ onChanged();
+ } else {
+ hashesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder addHashes(int index, com.google.devtools.artifactregistry.v1.Hash value) {
+ if (hashesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHashesIsMutable();
+ hashes_.add(index, value);
+ onChanged();
+ } else {
+ hashesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder addHashes(
+ com.google.devtools.artifactregistry.v1.Hash.Builder builderForValue) {
+ if (hashesBuilder_ == null) {
+ ensureHashesIsMutable();
+ hashes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ hashesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder addHashes(
+ int index, com.google.devtools.artifactregistry.v1.Hash.Builder builderForValue) {
+ if (hashesBuilder_ == null) {
+ ensureHashesIsMutable();
+ hashes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ hashesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder addAllHashes(
+ java.lang.Iterable extends com.google.devtools.artifactregistry.v1.Hash> values) {
+ if (hashesBuilder_ == null) {
+ ensureHashesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hashes_);
+ onChanged();
+ } else {
+ hashesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder clearHashes() {
+ if (hashesBuilder_ == null) {
+ hashes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ hashesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public Builder removeHashes(int index) {
+ if (hashesBuilder_ == null) {
+ ensureHashesIsMutable();
+ hashes_.remove(index);
+ onChanged();
+ } else {
+ hashesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public com.google.devtools.artifactregistry.v1.Hash.Builder getHashesBuilder(int index) {
+ return getHashesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public com.google.devtools.artifactregistry.v1.HashOrBuilder getHashesOrBuilder(int index) {
+ if (hashesBuilder_ == null) {
+ return hashes_.get(index);
+ } else {
+ return hashesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public java.util.List extends com.google.devtools.artifactregistry.v1.HashOrBuilder>
+ getHashesOrBuilderList() {
+ if (hashesBuilder_ != null) {
+ return hashesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(hashes_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public com.google.devtools.artifactregistry.v1.Hash.Builder addHashesBuilder() {
+ return getHashesFieldBuilder()
+ .addBuilder(com.google.devtools.artifactregistry.v1.Hash.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public com.google.devtools.artifactregistry.v1.Hash.Builder addHashesBuilder(int index) {
+ return getHashesFieldBuilder()
+ .addBuilder(index, com.google.devtools.artifactregistry.v1.Hash.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * The hashes of the file content.
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
+ */
+ public java.util.List
+ getHashesBuilderList() {
+ return getHashesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.Hash,
+ com.google.devtools.artifactregistry.v1.Hash.Builder,
+ com.google.devtools.artifactregistry.v1.HashOrBuilder>
+ getHashesFieldBuilder() {
+ if (hashesBuilder_ == null) {
+ hashesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.Hash,
+ com.google.devtools.artifactregistry.v1.Hash.Builder,
+ com.google.devtools.artifactregistry.v1.HashOrBuilder>(
+ hashes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ hashes_ = null;
+ }
+ return hashesBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile)
+ private static final com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportedFile parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public static final int EXPORTED_FILES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List<
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile>
+ exportedFiles_;
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getExportedFilesList() {
+ return exportedFiles_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder>
+ getExportedFilesOrBuilderList() {
+ return exportedFiles_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ @java.lang.Override
+ public int getExportedFilesCount() {
+ return exportedFiles_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ getExportedFiles(int index) {
+ return exportedFiles_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder
+ getExportedFilesOrBuilder(int index) {
+ return exportedFiles_.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 {
+ for (int i = 0; i < exportedFiles_.size(); i++) {
+ output.writeMessage(1, exportedFiles_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < exportedFiles_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, exportedFiles_.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.devtools.artifactregistry.v1.ExportArtifactMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata other =
+ (com.google.devtools.artifactregistry.v1.ExportArtifactMetadata) obj;
+
+ if (!getExportedFilesList().equals(other.getExportedFilesList())) 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();
+ if (getExportedFilesCount() > 0) {
+ hash = (37 * hash) + EXPORTED_FILES_FIELD_NUMBER;
+ hash = (53 * hash) + getExportedFilesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata 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.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ExportArtifactMetadata 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The LRO metadata for exporting an artifact.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactMetadata}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ExportArtifactMetadata)
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.class,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.Builder.class);
+ }
+
+ // Construct using com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (exportedFilesBuilder_ == null) {
+ exportedFiles_ = java.util.Collections.emptyList();
+ } else {
+ exportedFiles_ = null;
+ exportedFilesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata
+ getDefaultInstanceForType() {
+ return com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata build() {
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata buildPartial() {
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata result =
+ new com.google.devtools.artifactregistry.v1.ExportArtifactMetadata(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata result) {
+ if (exportedFilesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ exportedFiles_ = java.util.Collections.unmodifiableList(exportedFiles_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.exportedFiles_ = exportedFiles_;
+ } else {
+ result.exportedFiles_ = exportedFilesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.devtools.artifactregistry.v1.ExportArtifactMetadata) {
+ return mergeFrom((com.google.devtools.artifactregistry.v1.ExportArtifactMetadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ExportArtifactMetadata other) {
+ if (other
+ == com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.getDefaultInstance())
+ return this;
+ if (exportedFilesBuilder_ == null) {
+ if (!other.exportedFiles_.isEmpty()) {
+ if (exportedFiles_.isEmpty()) {
+ exportedFiles_ = other.exportedFiles_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureExportedFilesIsMutable();
+ exportedFiles_.addAll(other.exportedFiles_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.exportedFiles_.isEmpty()) {
+ if (exportedFilesBuilder_.isEmpty()) {
+ exportedFilesBuilder_.dispose();
+ exportedFilesBuilder_ = null;
+ exportedFiles_ = other.exportedFiles_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ exportedFilesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getExportedFilesFieldBuilder()
+ : null;
+ } else {
+ exportedFilesBuilder_.addAllMessages(other.exportedFiles_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile m =
+ input.readMessage(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ .parser(),
+ extensionRegistry);
+ if (exportedFilesBuilder_ == null) {
+ ensureExportedFilesIsMutable();
+ exportedFiles_.add(m);
+ } else {
+ exportedFilesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List<
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile>
+ exportedFiles_ = java.util.Collections.emptyList();
+
+ private void ensureExportedFilesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ exportedFiles_ =
+ new java.util.ArrayList<
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile>(
+ exportedFiles_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder>
+ exportedFilesBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public java.util.List<
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile>
+ getExportedFilesList() {
+ if (exportedFilesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(exportedFiles_);
+ } else {
+ return exportedFilesBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public int getExportedFilesCount() {
+ if (exportedFilesBuilder_ == null) {
+ return exportedFiles_.size();
+ } else {
+ return exportedFilesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ getExportedFiles(int index) {
+ if (exportedFilesBuilder_ == null) {
+ return exportedFiles_.get(index);
+ } else {
+ return exportedFilesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder setExportedFiles(
+ int index,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile value) {
+ if (exportedFilesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExportedFilesIsMutable();
+ exportedFiles_.set(index, value);
+ onChanged();
+ } else {
+ exportedFilesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder setExportedFiles(
+ int index,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
+ builderForValue) {
+ if (exportedFilesBuilder_ == null) {
+ ensureExportedFilesIsMutable();
+ exportedFiles_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ exportedFilesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder addExportedFiles(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile value) {
+ if (exportedFilesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExportedFilesIsMutable();
+ exportedFiles_.add(value);
+ onChanged();
+ } else {
+ exportedFilesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder addExportedFiles(
+ int index,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile value) {
+ if (exportedFilesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExportedFilesIsMutable();
+ exportedFiles_.add(index, value);
+ onChanged();
+ } else {
+ exportedFilesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder addExportedFiles(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
+ builderForValue) {
+ if (exportedFilesBuilder_ == null) {
+ ensureExportedFilesIsMutable();
+ exportedFiles_.add(builderForValue.build());
+ onChanged();
+ } else {
+ exportedFilesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder addExportedFiles(
+ int index,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
+ builderForValue) {
+ if (exportedFilesBuilder_ == null) {
+ ensureExportedFilesIsMutable();
+ exportedFiles_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ exportedFilesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder addAllExportedFiles(
+ java.lang.Iterable<
+ ? extends
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile>
+ values) {
+ if (exportedFilesBuilder_ == null) {
+ ensureExportedFilesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exportedFiles_);
+ onChanged();
+ } else {
+ exportedFilesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder clearExportedFiles() {
+ if (exportedFilesBuilder_ == null) {
+ exportedFiles_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ exportedFilesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public Builder removeExportedFiles(int index) {
+ if (exportedFilesBuilder_ == null) {
+ ensureExportedFilesIsMutable();
+ exportedFiles_.remove(index);
+ onChanged();
+ } else {
+ exportedFilesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
+ getExportedFilesBuilder(int index) {
+ return getExportedFilesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder
+ getExportedFilesOrBuilder(int index) {
+ if (exportedFilesBuilder_ == null) {
+ return exportedFiles_.get(index);
+ } else {
+ return exportedFilesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata
+ .ExportedFileOrBuilder>
+ getExportedFilesOrBuilderList() {
+ if (exportedFilesBuilder_ != null) {
+ return exportedFilesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(exportedFiles_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
+ addExportedFilesBuilder() {
+ return getExportedFilesFieldBuilder()
+ .addBuilder(
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
+ addExportedFilesBuilder(int index) {
+ return getExportedFilesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ public java.util.List<
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder>
+ getExportedFilesBuilderList() {
+ return getExportedFilesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder>
+ getExportedFilesFieldBuilder() {
+ if (exportedFilesBuilder_ == null) {
+ exportedFilesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder,
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata
+ .ExportedFileOrBuilder>(
+ exportedFiles_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ exportedFiles_ = null;
+ }
+ return exportedFilesBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ExportArtifactMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ExportArtifactMetadata)
+ private static final com.google.devtools.artifactregistry.v1.ExportArtifactMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ExportArtifactMetadata();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportArtifactMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadataOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadataOrBuilder.java
new file mode 100644
index 000000000000..18f7a555ee14
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadataOrBuilder.java
@@ -0,0 +1,97 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/export.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+public interface ExportArtifactMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ExportArtifactMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ java.util.List
+ getExportedFilesList();
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile getExportedFiles(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ int getExportedFilesCount();
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder>
+ getExportedFilesOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * The exported artifact files.
+ *
+ *
+ *
+ * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1;
+ *
+ */
+ com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder
+ getExportedFilesOrBuilder(int index);
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequest.java
new file mode 100644
index 000000000000..b8e773194134
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequest.java
@@ -0,0 +1,1599 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/export.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ *
+ * The request for exporting an artifact to a destination.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactRequest}
+ */
+public final class ExportArtifactRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ExportArtifactRequest)
+ ExportArtifactRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ExportArtifactRequest.newBuilder() to construct.
+ private ExportArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportArtifactRequest() {
+ repository_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportArtifactRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest.class,
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest.Builder.class);
+ }
+
+ private int sourceArtifactCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object sourceArtifact_;
+
+ public enum SourceArtifactCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ SOURCE_VERSION(2),
+ SOURCE_TAG(4),
+ SOURCEARTIFACT_NOT_SET(0);
+ private final int value;
+
+ private SourceArtifactCase(int value) {
+ this.value = value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static SourceArtifactCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SourceArtifactCase forNumber(int value) {
+ switch (value) {
+ case 2:
+ return SOURCE_VERSION;
+ case 4:
+ return SOURCE_TAG;
+ case 0:
+ return SOURCEARTIFACT_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public SourceArtifactCase getSourceArtifactCase() {
+ return SourceArtifactCase.forNumber(sourceArtifactCase_);
+ }
+
+ private int destinationCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object destination_;
+
+ public enum DestinationCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GCS_PATH(3),
+ DESTINATION_NOT_SET(0);
+ private final int value;
+
+ private DestinationCase(int value) {
+ this.value = value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DestinationCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DestinationCase forNumber(int value) {
+ switch (value) {
+ case 3:
+ return GCS_PATH;
+ case 0:
+ return DESTINATION_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public static final int SOURCE_VERSION_FIELD_NUMBER = 2;
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return Whether the sourceVersion field is set.
+ */
+ public boolean hasSourceVersion() {
+ return sourceArtifactCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The sourceVersion.
+ */
+ public java.lang.String getSourceVersion() {
+ java.lang.Object ref = "";
+ if (sourceArtifactCase_ == 2) {
+ ref = sourceArtifact_;
+ }
+ 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();
+ if (sourceArtifactCase_ == 2) {
+ sourceArtifact_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for sourceVersion.
+ */
+ public com.google.protobuf.ByteString getSourceVersionBytes() {
+ java.lang.Object ref = "";
+ if (sourceArtifactCase_ == 2) {
+ ref = sourceArtifact_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (sourceArtifactCase_ == 2) {
+ sourceArtifact_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCE_TAG_FIELD_NUMBER = 4;
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return Whether the sourceTag field is set.
+ */
+ public boolean hasSourceTag() {
+ return sourceArtifactCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The sourceTag.
+ */
+ public java.lang.String getSourceTag() {
+ java.lang.Object ref = "";
+ if (sourceArtifactCase_ == 4) {
+ ref = sourceArtifact_;
+ }
+ 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();
+ if (sourceArtifactCase_ == 4) {
+ sourceArtifact_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for sourceTag.
+ */
+ public com.google.protobuf.ByteString getSourceTagBytes() {
+ java.lang.Object ref = "";
+ if (sourceArtifactCase_ == 4) {
+ ref = sourceArtifact_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (sourceArtifactCase_ == 4) {
+ sourceArtifact_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GCS_PATH_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return Whether the gcsPath field is set.
+ */
+ public boolean hasGcsPath() {
+ return destinationCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return The gcsPath.
+ */
+ public java.lang.String getGcsPath() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 3) {
+ ref = destination_;
+ }
+ 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();
+ if (destinationCase_ == 3) {
+ destination_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return The bytes for gcsPath.
+ */
+ public com.google.protobuf.ByteString getGcsPathBytes() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 3) {
+ ref = destination_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (destinationCase_ == 3) {
+ destination_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REPOSITORY_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object repository_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The repository.
+ */
+ @java.lang.Override
+ public java.lang.String getRepository() {
+ java.lang.Object ref = repository_;
+ 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();
+ repository_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for repository.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRepositoryBytes() {
+ java.lang.Object ref = repository_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ repository_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_);
+ }
+ if (sourceArtifactCase_ == 2) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceArtifact_);
+ }
+ if (destinationCase_ == 3) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destination_);
+ }
+ if (sourceArtifactCase_ == 4) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceArtifact_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_);
+ }
+ if (sourceArtifactCase_ == 2) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceArtifact_);
+ }
+ if (destinationCase_ == 3) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destination_);
+ }
+ if (sourceArtifactCase_ == 4) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceArtifact_);
+ }
+ 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.devtools.artifactregistry.v1.ExportArtifactRequest)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest other =
+ (com.google.devtools.artifactregistry.v1.ExportArtifactRequest) obj;
+
+ if (!getRepository().equals(other.getRepository())) return false;
+ if (!getSourceArtifactCase().equals(other.getSourceArtifactCase())) return false;
+ switch (sourceArtifactCase_) {
+ case 2:
+ if (!getSourceVersion().equals(other.getSourceVersion())) return false;
+ break;
+ case 4:
+ if (!getSourceTag().equals(other.getSourceTag())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getDestinationCase().equals(other.getDestinationCase())) return false;
+ switch (destinationCase_) {
+ case 3:
+ if (!getGcsPath().equals(other.getGcsPath())) 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) + REPOSITORY_FIELD_NUMBER;
+ hash = (53 * hash) + getRepository().hashCode();
+ switch (sourceArtifactCase_) {
+ case 2:
+ hash = (37 * hash) + SOURCE_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceVersion().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + SOURCE_TAG_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceTag().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (destinationCase_) {
+ case 3:
+ hash = (37 * hash) + GCS_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsPath().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest 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.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ExportArtifactRequest 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The request for exporting an artifact to a destination.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ExportArtifactRequest)
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest.class,
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest.Builder.class);
+ }
+
+ // Construct using com.google.devtools.artifactregistry.v1.ExportArtifactRequest.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ repository_ = "";
+ sourceArtifactCase_ = 0;
+ sourceArtifact_ = null;
+ destinationCase_ = 0;
+ destination_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactRequest
+ getDefaultInstanceForType() {
+ return com.google.devtools.artifactregistry.v1.ExportArtifactRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactRequest build() {
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactRequest buildPartial() {
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest result =
+ new com.google.devtools.artifactregistry.v1.ExportArtifactRequest(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.repository_ = repository_;
+ }
+ }
+
+ private void buildPartialOneofs(
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest result) {
+ result.sourceArtifactCase_ = sourceArtifactCase_;
+ result.sourceArtifact_ = this.sourceArtifact_;
+ result.destinationCase_ = destinationCase_;
+ result.destination_ = this.destination_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.devtools.artifactregistry.v1.ExportArtifactRequest) {
+ return mergeFrom((com.google.devtools.artifactregistry.v1.ExportArtifactRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ExportArtifactRequest other) {
+ if (other
+ == com.google.devtools.artifactregistry.v1.ExportArtifactRequest.getDefaultInstance())
+ return this;
+ if (!other.getRepository().isEmpty()) {
+ repository_ = other.repository_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ switch (other.getSourceArtifactCase()) {
+ case SOURCE_VERSION:
+ {
+ sourceArtifactCase_ = 2;
+ sourceArtifact_ = other.sourceArtifact_;
+ onChanged();
+ break;
+ }
+ case SOURCE_TAG:
+ {
+ sourceArtifactCase_ = 4;
+ sourceArtifact_ = other.sourceArtifact_;
+ onChanged();
+ break;
+ }
+ case SOURCEARTIFACT_NOT_SET:
+ {
+ break;
+ }
+ }
+ switch (other.getDestinationCase()) {
+ case GCS_PATH:
+ {
+ destinationCase_ = 3;
+ destination_ = other.destination_;
+ onChanged();
+ break;
+ }
+ case DESTINATION_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ repository_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 10
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ sourceArtifactCase_ = 2;
+ sourceArtifact_ = s;
+ break;
+ } // case 18
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ destinationCase_ = 3;
+ destination_ = s;
+ break;
+ } // case 26
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ sourceArtifactCase_ = 4;
+ sourceArtifact_ = s;
+ break;
+ } // case 34
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int sourceArtifactCase_ = 0;
+ private java.lang.Object sourceArtifact_;
+
+ public SourceArtifactCase getSourceArtifactCase() {
+ return SourceArtifactCase.forNumber(sourceArtifactCase_);
+ }
+
+ public Builder clearSourceArtifact() {
+ sourceArtifactCase_ = 0;
+ sourceArtifact_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int destinationCase_ = 0;
+ private java.lang.Object destination_;
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public Builder clearDestination() {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return Whether the sourceVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasSourceVersion() {
+ return sourceArtifactCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The sourceVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceVersion() {
+ java.lang.Object ref = "";
+ if (sourceArtifactCase_ == 2) {
+ ref = sourceArtifact_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (sourceArtifactCase_ == 2) {
+ sourceArtifact_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for sourceVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceVersionBytes() {
+ java.lang.Object ref = "";
+ if (sourceArtifactCase_ == 2) {
+ ref = sourceArtifact_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (sourceArtifactCase_ == 2) {
+ sourceArtifact_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The sourceVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceArtifactCase_ = 2;
+ sourceArtifact_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceVersion() {
+ if (sourceArtifactCase_ == 2) {
+ sourceArtifactCase_ = 0;
+ sourceArtifact_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for sourceVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceArtifactCase_ = 2;
+ sourceArtifact_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return Whether the sourceTag field is set.
+ */
+ @java.lang.Override
+ public boolean hasSourceTag() {
+ return sourceArtifactCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The sourceTag.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceTag() {
+ java.lang.Object ref = "";
+ if (sourceArtifactCase_ == 4) {
+ ref = sourceArtifact_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (sourceArtifactCase_ == 4) {
+ sourceArtifact_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for sourceTag.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceTagBytes() {
+ java.lang.Object ref = "";
+ if (sourceArtifactCase_ == 4) {
+ ref = sourceArtifact_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (sourceArtifactCase_ == 4) {
+ sourceArtifact_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The sourceTag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceTag(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceArtifactCase_ = 4;
+ sourceArtifact_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceTag() {
+ if (sourceArtifactCase_ == 4) {
+ sourceArtifactCase_ = 0;
+ sourceArtifact_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for sourceTag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceTagBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceArtifactCase_ = 4;
+ sourceArtifact_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return Whether the gcsPath field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsPath() {
+ return destinationCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return The gcsPath.
+ */
+ @java.lang.Override
+ public java.lang.String getGcsPath() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 3) {
+ ref = destination_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (destinationCase_ == 3) {
+ destination_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return The bytes for gcsPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGcsPathBytes() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 3) {
+ ref = destination_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (destinationCase_ == 3) {
+ destination_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @param value The gcsPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destinationCase_ = 3;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGcsPath() {
+ if (destinationCase_ == 3) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @param value The bytes for gcsPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ destinationCase_ = 3;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object repository_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The repository.
+ */
+ public java.lang.String getRepository() {
+ java.lang.Object ref = repository_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ repository_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for repository.
+ */
+ public com.google.protobuf.ByteString getRepositoryBytes() {
+ java.lang.Object ref = repository_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ repository_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The repository to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRepository(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ repository_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRepository() {
+ repository_ = getDefaultInstance().getRepository();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for repository to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRepositoryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ repository_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ExportArtifactRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ExportArtifactRequest)
+ private static final com.google.devtools.artifactregistry.v1.ExportArtifactRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ExportArtifactRequest();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportArtifactRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequestOrBuilder.java
new file mode 100644
index 000000000000..f3c1e0f8777e
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequestOrBuilder.java
@@ -0,0 +1,199 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/export.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+public interface ExportArtifactRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ExportArtifactRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return Whether the sourceVersion field is set.
+ */
+ boolean hasSourceVersion();
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The sourceVersion.
+ */
+ java.lang.String getSourceVersion();
+
+ /**
+ *
+ *
+ *
+ * The artifact version to export.
+ * Format:
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ *
+ *
+ * string source_version = 2 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for sourceVersion.
+ */
+ com.google.protobuf.ByteString getSourceVersionBytes();
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return Whether the sourceTag field is set.
+ */
+ boolean hasSourceTag();
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The sourceTag.
+ */
+ java.lang.String getSourceTag();
+
+ /**
+ *
+ *
+ *
+ * The artifact tag to export.
+ * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ *
+ *
+ * string source_tag = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for sourceTag.
+ */
+ com.google.protobuf.ByteString getSourceTagBytes();
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return Whether the gcsPath field is set.
+ */
+ boolean hasGcsPath();
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return The gcsPath.
+ */
+ java.lang.String getGcsPath();
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage path to export the artifact to. Should start with the
+ * bucket name, and optionally have a directory path. Examples:
+ * `dst_bucket`, `dst_bucket/sub_dir`.
+ * Existing objects with the same path will be overwritten.
+ *
+ *
+ * string gcs_path = 3;
+ *
+ * @return The bytes for gcsPath.
+ */
+ com.google.protobuf.ByteString getGcsPathBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The repository.
+ */
+ java.lang.String getRepository();
+
+ /**
+ *
+ *
+ *
+ * Required. The repository of the artifact to export.
+ * Format: projects/{project}/locations/{location}/repositories/{repository}
+ *
+ *
+ *
+ * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for repository.
+ */
+ com.google.protobuf.ByteString getRepositoryBytes();
+
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest.SourceArtifactCase
+ getSourceArtifactCase();
+
+ com.google.devtools.artifactregistry.v1.ExportArtifactRequest.DestinationCase
+ getDestinationCase();
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponse.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponse.java
new file mode 100644
index 000000000000..e2af5e1c8e4e
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponse.java
@@ -0,0 +1,757 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/export.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ *
+ * The response for exporting an artifact to a destination.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactResponse}
+ */
+public final class ExportArtifactResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ExportArtifactResponse)
+ ExportArtifactResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ExportArtifactResponse.newBuilder() to construct.
+ private ExportArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportArtifactResponse() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportArtifactResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponse.class,
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int EXPORTED_VERSION_FIELD_NUMBER = 1;
+ private com.google.devtools.artifactregistry.v1.Version exportedVersion_;
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ *
+ * @return Whether the exportedVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasExportedVersion() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ *
+ * @return The exportedVersion.
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.Version getExportedVersion() {
+ return exportedVersion_ == null
+ ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance()
+ : exportedVersion_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.VersionOrBuilder getExportedVersionOrBuilder() {
+ return exportedVersion_ == null
+ ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance()
+ : exportedVersion_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getExportedVersion());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExportedVersion());
+ }
+ 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.devtools.artifactregistry.v1.ExportArtifactResponse)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponse other =
+ (com.google.devtools.artifactregistry.v1.ExportArtifactResponse) obj;
+
+ if (hasExportedVersion() != other.hasExportedVersion()) return false;
+ if (hasExportedVersion()) {
+ if (!getExportedVersion().equals(other.getExportedVersion())) 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();
+ if (hasExportedVersion()) {
+ hash = (37 * hash) + EXPORTED_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getExportedVersion().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse 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.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ExportArtifactResponse 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The response for exporting an artifact to a destination.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ExportArtifactResponse)
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponse.class,
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponse.Builder.class);
+ }
+
+ // Construct using com.google.devtools.artifactregistry.v1.ExportArtifactResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getExportedVersionFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ exportedVersion_ = null;
+ if (exportedVersionBuilder_ != null) {
+ exportedVersionBuilder_.dispose();
+ exportedVersionBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.devtools.artifactregistry.v1.ExportProto
+ .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactResponse
+ getDefaultInstanceForType() {
+ return com.google.devtools.artifactregistry.v1.ExportArtifactResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactResponse build() {
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactResponse buildPartial() {
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponse result =
+ new com.google.devtools.artifactregistry.v1.ExportArtifactResponse(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.devtools.artifactregistry.v1.ExportArtifactResponse result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.exportedVersion_ =
+ exportedVersionBuilder_ == null ? exportedVersion_ : exportedVersionBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.devtools.artifactregistry.v1.ExportArtifactResponse) {
+ return mergeFrom((com.google.devtools.artifactregistry.v1.ExportArtifactResponse) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ExportArtifactResponse other) {
+ if (other
+ == com.google.devtools.artifactregistry.v1.ExportArtifactResponse.getDefaultInstance())
+ return this;
+ if (other.hasExportedVersion()) {
+ mergeExportedVersion(other.getExportedVersion());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getExportedVersionFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.devtools.artifactregistry.v1.Version exportedVersion_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.Version,
+ com.google.devtools.artifactregistry.v1.Version.Builder,
+ com.google.devtools.artifactregistry.v1.VersionOrBuilder>
+ exportedVersionBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ *
+ * @return Whether the exportedVersion field is set.
+ */
+ public boolean hasExportedVersion() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ *
+ * @return The exportedVersion.
+ */
+ public com.google.devtools.artifactregistry.v1.Version getExportedVersion() {
+ if (exportedVersionBuilder_ == null) {
+ return exportedVersion_ == null
+ ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance()
+ : exportedVersion_;
+ } else {
+ return exportedVersionBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ public Builder setExportedVersion(com.google.devtools.artifactregistry.v1.Version value) {
+ if (exportedVersionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ exportedVersion_ = value;
+ } else {
+ exportedVersionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ public Builder setExportedVersion(
+ com.google.devtools.artifactregistry.v1.Version.Builder builderForValue) {
+ if (exportedVersionBuilder_ == null) {
+ exportedVersion_ = builderForValue.build();
+ } else {
+ exportedVersionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ public Builder mergeExportedVersion(com.google.devtools.artifactregistry.v1.Version value) {
+ if (exportedVersionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && exportedVersion_ != null
+ && exportedVersion_
+ != com.google.devtools.artifactregistry.v1.Version.getDefaultInstance()) {
+ getExportedVersionBuilder().mergeFrom(value);
+ } else {
+ exportedVersion_ = value;
+ }
+ } else {
+ exportedVersionBuilder_.mergeFrom(value);
+ }
+ if (exportedVersion_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ public Builder clearExportedVersion() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ exportedVersion_ = null;
+ if (exportedVersionBuilder_ != null) {
+ exportedVersionBuilder_.dispose();
+ exportedVersionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.Version.Builder getExportedVersionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getExportedVersionFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.VersionOrBuilder getExportedVersionOrBuilder() {
+ if (exportedVersionBuilder_ != null) {
+ return exportedVersionBuilder_.getMessageOrBuilder();
+ } else {
+ return exportedVersion_ == null
+ ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance()
+ : exportedVersion_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.Version,
+ com.google.devtools.artifactregistry.v1.Version.Builder,
+ com.google.devtools.artifactregistry.v1.VersionOrBuilder>
+ getExportedVersionFieldBuilder() {
+ if (exportedVersionBuilder_ == null) {
+ exportedVersionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.devtools.artifactregistry.v1.Version,
+ com.google.devtools.artifactregistry.v1.Version.Builder,
+ com.google.devtools.artifactregistry.v1.VersionOrBuilder>(
+ getExportedVersion(), getParentForChildren(), isClean());
+ exportedVersion_ = null;
+ }
+ return exportedVersionBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ExportArtifactResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ExportArtifactResponse)
+ private static final com.google.devtools.artifactregistry.v1.ExportArtifactResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ExportArtifactResponse();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportArtifactResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ExportArtifactResponse
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponseOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponseOrBuilder.java
new file mode 100644
index 000000000000..cd48c5785646
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponseOrBuilder.java
@@ -0,0 +1,66 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/export.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+public interface ExportArtifactResponseOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ExportArtifactResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ *
+ * @return Whether the exportedVersion field is set.
+ */
+ boolean hasExportedVersion();
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ *
+ * @return The exportedVersion.
+ */
+ com.google.devtools.artifactregistry.v1.Version getExportedVersion();
+
+ /**
+ *
+ *
+ *
+ * The exported version. Should be the same as the request version with
+ * fingerprint resource name.
+ *
+ *
+ * .google.devtools.artifactregistry.v1.Version exported_version = 1;
+ */
+ com.google.devtools.artifactregistry.v1.VersionOrBuilder getExportedVersionOrBuilder();
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportProto.java
new file mode 100644
index 000000000000..17b69e99c35e
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportProto.java
@@ -0,0 +1,148 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/export.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+public final class ExportProto {
+ private ExportProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n0google/devtools/artifactregistry/v1/ex"
+ + "port.proto\022#google.devtools.artifactregi"
+ + "stry.v1\032\037google/api/field_behavior.proto"
+ + "\032\031google/api/resource.proto\032.google/devt"
+ + "ools/artifactregistry/v1/file.proto\0321goo"
+ + "gle/devtools/artifactregistry/v1/version"
+ + ".proto\"\235\002\n\025ExportArtifactRequest\022F\n\016sour"
+ + "ce_version\030\002 \001(\tB,\372A)\n\'artifactregistry."
+ + "googleapis.com/VersionH\000\022>\n\nsource_tag\030\004"
+ + " \001(\tB(\372A%\n#artifactregistry.googleapis.c"
+ + "om/TagH\000\022\022\n\010gcs_path\030\003 \001(\tH\001\022F\n\nreposito"
+ + "ry\030\001 \001(\tB2\340A\002\372A,\n*artifactregistry.googl"
+ + "eapis.com/RepositoryB\021\n\017source_artifactB"
+ + "\r\n\013destination\"`\n\026ExportArtifactResponse"
+ + "\022F\n\020exported_version\030\001 \001(\0132,.google.devt"
+ + "ools.artifactregistry.v1.Version\"\251\002\n\026Exp"
+ + "ortArtifactMetadata\022`\n\016exported_files\030\001 "
+ + "\003(\0132H.google.devtools.artifactregistry.v"
+ + "1.ExportArtifactMetadata.ExportedFile\032\254\001"
+ + "\n\014ExportedFile\022\031\n\017gcs_object_path\030\002 \001(\tH"
+ + "\000\0227\n\004name\030\001 \001(\tB)\372A&\n$artifactregistry.g"
+ + "oogleapis.com/File\0229\n\006hashes\030\003 \003(\0132).goo"
+ + "gle.devtools.artifactregistry.v1.HashB\r\n"
+ + "\013destinationB\366\001\n\'com.google.devtools.art"
+ + "ifactregistry.v1B\013ExportProtoP\001ZPcloud.g"
+ + "oogle.com/go/artifactregistry/apiv1/arti"
+ + "factregistrypb;artifactregistrypb\252\002 Goog"
+ + "le.Cloud.ArtifactRegistry.V1\312\002 Google\\Cl"
+ + "oud\\ArtifactRegistry\\V1\352\002#Google::Cloud:"
+ + ":ArtifactRegistry::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.devtools.artifactregistry.v1.FileProto.getDescriptor(),
+ com.google.devtools.artifactregistry.v1.VersionProto.getDescriptor(),
+ });
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor,
+ new java.lang.String[] {
+ "SourceVersion",
+ "SourceTag",
+ "GcsPath",
+ "Repository",
+ "SourceArtifact",
+ "Destination",
+ });
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor,
+ new java.lang.String[] {
+ "ExportedVersion",
+ });
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor,
+ new java.lang.String[] {
+ "ExportedFiles",
+ });
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor =
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor,
+ new java.lang.String[] {
+ "GcsObjectPath", "Name", "Hashes", "Destination",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resourceReference);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.devtools.artifactregistry.v1.FileProto.getDescriptor();
+ com.google.devtools.artifactregistry.v1.VersionProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifest.java
new file mode 100644
index 000000000000..7ca5ff1425b1
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifest.java
@@ -0,0 +1,1939 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/artifact.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ *
+ * Details of a single image manifest within a multi-arch image.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ImageManifest}
+ */
+public final class ImageManifest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ImageManifest)
+ ImageManifestOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ImageManifest.newBuilder() to construct.
+ private ImageManifest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ImageManifest() {
+ architecture_ = "";
+ os_ = "";
+ digest_ = "";
+ mediaType_ = "";
+ osVersion_ = "";
+ osFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ variant_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ImageManifest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ArtifactProto
+ .internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ArtifactProto
+ .internal_static_google_devtools_artifactregistry_v1_ImageManifest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ImageManifest.class,
+ com.google.devtools.artifactregistry.v1.ImageManifest.Builder.class);
+ }
+
+ public static final int ARCHITECTURE_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object architecture_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The architecture.
+ */
+ @java.lang.Override
+ public java.lang.String getArchitecture() {
+ java.lang.Object ref = architecture_;
+ 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();
+ architecture_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for architecture.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getArchitectureBytes() {
+ java.lang.Object ref = architecture_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ architecture_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object os_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The os.
+ */
+ @java.lang.Override
+ public java.lang.String getOs() {
+ java.lang.Object ref = os_;
+ 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();
+ os_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for os.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOsBytes() {
+ java.lang.Object ref = os_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ os_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DIGEST_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object digest_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The digest.
+ */
+ @java.lang.Override
+ public java.lang.String getDigest() {
+ java.lang.Object ref = digest_;
+ 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();
+ digest_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for digest.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDigestBytes() {
+ java.lang.Object ref = digest_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ digest_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MEDIA_TYPE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object mediaType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaType.
+ */
+ @java.lang.Override
+ public java.lang.String getMediaType() {
+ java.lang.Object ref = mediaType_;
+ 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();
+ mediaType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mediaType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMediaTypeBytes() {
+ java.lang.Object ref = mediaType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mediaType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OS_VERSION_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object osVersion_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The osVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getOsVersion() {
+ java.lang.Object ref = osVersion_;
+ 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();
+ osVersion_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for osVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOsVersionBytes() {
+ java.lang.Object ref = osVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OS_FEATURES_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList osFeatures_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the osFeatures.
+ */
+ public com.google.protobuf.ProtocolStringList getOsFeaturesList() {
+ return osFeatures_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of osFeatures.
+ */
+ public int getOsFeaturesCount() {
+ return osFeatures_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The osFeatures at the given index.
+ */
+ public java.lang.String getOsFeatures(int index) {
+ return osFeatures_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the osFeatures at the given index.
+ */
+ public com.google.protobuf.ByteString getOsFeaturesBytes(int index) {
+ return osFeatures_.getByteString(index);
+ }
+
+ public static final int VARIANT_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object variant_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The variant.
+ */
+ @java.lang.Override
+ public java.lang.String getVariant() {
+ java.lang.Object ref = variant_;
+ 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();
+ variant_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for variant.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVariantBytes() {
+ java.lang.Object ref = variant_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ variant_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(architecture_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, architecture_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(os_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, os_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, digest_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mediaType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mediaType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, osVersion_);
+ }
+ for (int i = 0; i < osFeatures_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, osFeatures_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variant_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, variant_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(architecture_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, architecture_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(os_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, os_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, digest_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mediaType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mediaType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, osVersion_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < osFeatures_.size(); i++) {
+ dataSize += computeStringSizeNoTag(osFeatures_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getOsFeaturesList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variant_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, variant_);
+ }
+ 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.devtools.artifactregistry.v1.ImageManifest)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ImageManifest other =
+ (com.google.devtools.artifactregistry.v1.ImageManifest) obj;
+
+ if (!getArchitecture().equals(other.getArchitecture())) return false;
+ if (!getOs().equals(other.getOs())) return false;
+ if (!getDigest().equals(other.getDigest())) return false;
+ if (!getMediaType().equals(other.getMediaType())) return false;
+ if (!getOsVersion().equals(other.getOsVersion())) return false;
+ if (!getOsFeaturesList().equals(other.getOsFeaturesList())) return false;
+ if (!getVariant().equals(other.getVariant())) 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) + ARCHITECTURE_FIELD_NUMBER;
+ hash = (53 * hash) + getArchitecture().hashCode();
+ hash = (37 * hash) + OS_FIELD_NUMBER;
+ hash = (53 * hash) + getOs().hashCode();
+ hash = (37 * hash) + DIGEST_FIELD_NUMBER;
+ hash = (53 * hash) + getDigest().hashCode();
+ hash = (37 * hash) + MEDIA_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMediaType().hashCode();
+ hash = (37 * hash) + OS_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getOsVersion().hashCode();
+ if (getOsFeaturesCount() > 0) {
+ hash = (37 * hash) + OS_FEATURES_FIELD_NUMBER;
+ hash = (53 * hash) + getOsFeaturesList().hashCode();
+ }
+ hash = (37 * hash) + VARIANT_FIELD_NUMBER;
+ hash = (53 * hash) + getVariant().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest 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.devtools.artifactregistry.v1.ImageManifest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ImageManifest 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Details of a single image manifest within a multi-arch image.
+ *
+ *
+ * Protobuf type {@code google.devtools.artifactregistry.v1.ImageManifest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ImageManifest)
+ com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.devtools.artifactregistry.v1.ArtifactProto
+ .internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.devtools.artifactregistry.v1.ArtifactProto
+ .internal_static_google_devtools_artifactregistry_v1_ImageManifest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.devtools.artifactregistry.v1.ImageManifest.class,
+ com.google.devtools.artifactregistry.v1.ImageManifest.Builder.class);
+ }
+
+ // Construct using com.google.devtools.artifactregistry.v1.ImageManifest.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ architecture_ = "";
+ os_ = "";
+ digest_ = "";
+ mediaType_ = "";
+ osVersion_ = "";
+ osFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ variant_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.devtools.artifactregistry.v1.ArtifactProto
+ .internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ImageManifest getDefaultInstanceForType() {
+ return com.google.devtools.artifactregistry.v1.ImageManifest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ImageManifest build() {
+ com.google.devtools.artifactregistry.v1.ImageManifest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ImageManifest buildPartial() {
+ com.google.devtools.artifactregistry.v1.ImageManifest result =
+ new com.google.devtools.artifactregistry.v1.ImageManifest(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.devtools.artifactregistry.v1.ImageManifest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.architecture_ = architecture_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.os_ = os_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.digest_ = digest_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.mediaType_ = mediaType_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.osVersion_ = osVersion_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ osFeatures_.makeImmutable();
+ result.osFeatures_ = osFeatures_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.variant_ = variant_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.devtools.artifactregistry.v1.ImageManifest) {
+ return mergeFrom((com.google.devtools.artifactregistry.v1.ImageManifest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ImageManifest other) {
+ if (other == com.google.devtools.artifactregistry.v1.ImageManifest.getDefaultInstance())
+ return this;
+ if (!other.getArchitecture().isEmpty()) {
+ architecture_ = other.architecture_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getOs().isEmpty()) {
+ os_ = other.os_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getDigest().isEmpty()) {
+ digest_ = other.digest_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getMediaType().isEmpty()) {
+ mediaType_ = other.mediaType_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getOsVersion().isEmpty()) {
+ osVersion_ = other.osVersion_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (!other.osFeatures_.isEmpty()) {
+ if (osFeatures_.isEmpty()) {
+ osFeatures_ = other.osFeatures_;
+ bitField0_ |= 0x00000020;
+ } else {
+ ensureOsFeaturesIsMutable();
+ osFeatures_.addAll(other.osFeatures_);
+ }
+ onChanged();
+ }
+ if (!other.getVariant().isEmpty()) {
+ variant_ = other.variant_;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ architecture_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ os_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ digest_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34:
+ {
+ mediaType_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42:
+ {
+ osVersion_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureOsFeaturesIsMutable();
+ osFeatures_.add(s);
+ break;
+ } // case 50
+ case 58:
+ {
+ variant_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object architecture_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The architecture.
+ */
+ public java.lang.String getArchitecture() {
+ java.lang.Object ref = architecture_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ architecture_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for architecture.
+ */
+ public com.google.protobuf.ByteString getArchitectureBytes() {
+ java.lang.Object ref = architecture_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ architecture_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The architecture to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArchitecture(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ architecture_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearArchitecture() {
+ architecture_ = getDefaultInstance().getArchitecture();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for architecture to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArchitectureBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ architecture_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object os_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The os.
+ */
+ public java.lang.String getOs() {
+ java.lang.Object ref = os_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ os_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for os.
+ */
+ public com.google.protobuf.ByteString getOsBytes() {
+ java.lang.Object ref = os_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ os_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The os to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOs(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ os_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOs() {
+ os_ = getDefaultInstance().getOs();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for os to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ os_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object digest_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The digest.
+ */
+ public java.lang.String getDigest() {
+ java.lang.Object ref = digest_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ digest_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for digest.
+ */
+ public com.google.protobuf.ByteString getDigestBytes() {
+ java.lang.Object ref = digest_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ digest_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The digest to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDigest(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ digest_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDigest() {
+ digest_ = getDefaultInstance().getDigest();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for digest to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDigestBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ digest_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object mediaType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaType.
+ */
+ public java.lang.String getMediaType() {
+ java.lang.Object ref = mediaType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mediaType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mediaType.
+ */
+ public com.google.protobuf.ByteString getMediaTypeBytes() {
+ java.lang.Object ref = mediaType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mediaType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The mediaType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mediaType_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMediaType() {
+ mediaType_ = getDefaultInstance().getMediaType();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for mediaType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ mediaType_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object osVersion_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The osVersion.
+ */
+ public java.lang.String getOsVersion() {
+ java.lang.Object ref = osVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ osVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for osVersion.
+ */
+ public com.google.protobuf.ByteString getOsVersionBytes() {
+ java.lang.Object ref = osVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The osVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ osVersion_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOsVersion() {
+ osVersion_ = getDefaultInstance().getOsVersion();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for osVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ osVersion_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList osFeatures_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureOsFeaturesIsMutable() {
+ if (!osFeatures_.isModifiable()) {
+ osFeatures_ = new com.google.protobuf.LazyStringArrayList(osFeatures_);
+ }
+ bitField0_ |= 0x00000020;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the osFeatures.
+ */
+ public com.google.protobuf.ProtocolStringList getOsFeaturesList() {
+ osFeatures_.makeImmutable();
+ return osFeatures_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of osFeatures.
+ */
+ public int getOsFeaturesCount() {
+ return osFeatures_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The osFeatures at the given index.
+ */
+ public java.lang.String getOsFeatures(int index) {
+ return osFeatures_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the osFeatures at the given index.
+ */
+ public com.google.protobuf.ByteString getOsFeaturesBytes(int index) {
+ return osFeatures_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index to set the value at.
+ * @param value The osFeatures to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsFeatures(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOsFeaturesIsMutable();
+ osFeatures_.set(index, value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The osFeatures to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOsFeatures(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOsFeaturesIsMutable();
+ osFeatures_.add(value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param values The osFeatures to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOsFeatures(java.lang.Iterable values) {
+ ensureOsFeaturesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, osFeatures_);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOsFeatures() {
+ osFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes of the osFeatures to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOsFeaturesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureOsFeaturesIsMutable();
+ osFeatures_.add(value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object variant_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The variant.
+ */
+ public java.lang.String getVariant() {
+ java.lang.Object ref = variant_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ variant_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for variant.
+ */
+ public com.google.protobuf.ByteString getVariantBytes() {
+ java.lang.Object ref = variant_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ variant_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The variant to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVariant(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ variant_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVariant() {
+ variant_ = getDefaultInstance().getVariant();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for variant to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVariantBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ variant_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ImageManifest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ImageManifest)
+ private static final com.google.devtools.artifactregistry.v1.ImageManifest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ImageManifest();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ImageManifest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ImageManifest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.ImageManifest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifestOrBuilder.java
new file mode 100644
index 000000000000..8b14e3eca779
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifestOrBuilder.java
@@ -0,0 +1,256 @@
+/*
+ * Copyright 2025 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!
+// source: google/devtools/artifactregistry/v1/artifact.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.devtools.artifactregistry.v1;
+
+public interface ImageManifestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ImageManifest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The architecture.
+ */
+ java.lang.String getArchitecture();
+
+ /**
+ *
+ *
+ *
+ * Optional. The CPU architecture of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ * "riscv64", "mips64le", etc.
+ *
+ *
+ * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for architecture.
+ */
+ com.google.protobuf.ByteString getArchitectureBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The os.
+ */
+ java.lang.String getOs();
+
+ /**
+ *
+ *
+ *
+ * Optional. The operating system of the image.
+ * Values are provided by the Docker client and are not validated by Artifact
+ * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ *
+ *
+ * string os = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for os.
+ */
+ com.google.protobuf.ByteString getOsBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The digest.
+ */
+ java.lang.String getDigest();
+
+ /**
+ *
+ *
+ *
+ * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+ *
+ *
+ * string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for digest.
+ */
+ com.google.protobuf.ByteString getDigestBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaType.
+ */
+ java.lang.String getMediaType();
+
+ /**
+ *
+ *
+ *
+ * Optional. The media type of the manifest, e.g.,
+ * "application/vnd.docker.distribution.manifest.v2+json"
+ *
+ *
+ * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mediaType.
+ */
+ com.google.protobuf.ByteString getMediaTypeBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The osVersion.
+ */
+ java.lang.String getOsVersion();
+
+ /**
+ *
+ *
+ *
+ * Optional. The OS version of the image, for example on Windows
+ * `10.0.14393.1066`.
+ *
+ *
+ * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for osVersion.
+ */
+ com.google.protobuf.ByteString getOsVersionBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the osFeatures.
+ */
+ java.util.List getOsFeaturesList();
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of osFeatures.
+ */
+ int getOsFeaturesCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The osFeatures at the given index.
+ */
+ java.lang.String getOsFeatures(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The required OS features for the image, for example on Windows
+ * `win32k`.
+ *
+ *
+ * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the osFeatures at the given index.
+ */
+ com.google.protobuf.ByteString getOsFeaturesBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The variant.
+ */
+ java.lang.String getVariant();
+
+ /**
+ *
+ *
+ *
+ * Optional. The variant of the CPU in the image, for example `v7` to specify
+ * ARMv7 when architecture is `arm`.
+ *
+ *
+ * string variant = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for variant.
+ */
+ com.google.protobuf.ByteString getVariantBytes();
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java
index 1aa845f90155..0d1900de61b2 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java
@@ -193,6 +193,16 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum {
* GENERIC = 11;
*/
GENERIC(11),
+ /**
+ *
+ *
+ *
+ * Ruby package format.
+ *
+ *
+ * RUBY = 12;
+ */
+ RUBY(12),
UNRECOGNIZED(-1),
;
@@ -306,6 +316,17 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int GENERIC_VALUE = 11;
+ /**
+ *
+ *
+ *
+ * Ruby package format.
+ *
+ *
+ * RUBY = 12;
+ */
+ public static final int RUBY_VALUE = 12;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -350,6 +371,8 @@ public static Format forNumber(int value) {
return GO;
case 11:
return GENERIC;
+ case 12:
+ return RUBY;
default:
return null;
}
@@ -2350,7 +2373,8 @@ public enum EnablementConfig implements com.google.protobuf.ProtocolMessageEnum
*
*
*
- * Not set. This will be treated as INHERITED.
+ * Not set. This will be treated as INHERITED for Docker repositories and
+ * DISABLED for non-Docker repositories.
*
*
* ENABLEMENT_CONFIG_UNSPECIFIED = 0;
@@ -2384,7 +2408,8 @@ public enum EnablementConfig implements com.google.protobuf.ProtocolMessageEnum
*
*
*
- * Not set. This will be treated as INHERITED.
+ * Not set. This will be treated as INHERITED for Docker repositories and
+ * DISABLED for non-Docker repositories.
*
*
* ENABLEMENT_CONFIG_UNSPECIFIED = 0;
@@ -5032,7 +5057,7 @@ public long getSizeBytes() {
*
*
*
- * Output only. If set, the repository satisfies physical zone separation.
+ * Output only. Whether or not this repository satisfies PZS.
*
*
* bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -5158,7 +5183,7 @@ public boolean getDisallowUnspecifiedMode() {
*
*
*
- * Output only. If set, the repository satisfies physical zone isolation.
+ * Output only. Whether or not this repository satisfies PZI.
*
*
* bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -8791,7 +8816,7 @@ public Builder clearSizeBytes() {
*
*
*
- * Output only. If set, the repository satisfies physical zone separation.
+ * Output only. Whether or not this repository satisfies PZS.
*
*
* bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -8807,7 +8832,7 @@ public boolean getSatisfiesPzs() {
*
*
*
- * Output only. If set, the repository satisfies physical zone separation.
+ * Output only. Whether or not this repository satisfies PZS.
*
*
* bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -8827,7 +8852,7 @@ public Builder setSatisfiesPzs(boolean value) {
*
*
*
- * Output only. If set, the repository satisfies physical zone separation.
+ * Output only. Whether or not this repository satisfies PZS.
*
*
* bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -9200,7 +9225,7 @@ public Builder clearDisallowUnspecifiedMode() {
*
*
*
- * Output only. If set, the repository satisfies physical zone isolation.
+ * Output only. Whether or not this repository satisfies PZI.
*
*
* bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -9216,7 +9241,7 @@ public boolean getSatisfiesPzi() {
*
*
*
- * Output only. If set, the repository satisfies physical zone isolation.
+ * Output only. Whether or not this repository satisfies PZI.
*
*
* bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -9236,7 +9261,7 @@ public Builder setSatisfiesPzi(boolean value) {
*
*
*
- * Output only. If set, the repository satisfies physical zone isolation.
+ * Output only. Whether or not this repository satisfies PZI.
*
*
* bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java
index 4c164085fb44..24dd720fd021 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java
@@ -624,7 +624,7 @@ com.google.devtools.artifactregistry.v1.CleanupPolicy getCleanupPoliciesOrThrow(
*
*
*
- * Output only. If set, the repository satisfies physical zone separation.
+ * Output only. Whether or not this repository satisfies PZS.
*
*
* bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -713,7 +713,7 @@ com.google.devtools.artifactregistry.v1.CleanupPolicy getCleanupPoliciesOrThrow(
*
*
*
- * Output only. If set, the repository satisfies physical zone isolation.
+ * Output only. Whether or not this repository satisfies PZI.
*
*
* bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java
index d4e9aa5af70d..66479c072a12 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java
@@ -339,7 +339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010upstream\032*\n"
+ "\026CommonRemoteRepository\022\020\n"
+ "\003uri\030\001 \001(\tB\003\340A\002B\017\n\r"
- + "remote_source\"\264\024\n\n"
+ + "remote_source\"\277\024\n\n"
+ "Repository\022]\n"
+ "\014maven_config\030\t \001(\0132E.google.devtools.artifa"
+ "ctregistry.v1.Repository.MavenRepositoryConfigH\000\022_\n\r"
@@ -406,7 +406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024CleanupPoliciesEntry\022\013\n"
+ "\003key\030\001 \001(\t\022A\n"
+ "\005value\030\002 \001("
- + "\01322.google.devtools.artifactregistry.v1.CleanupPolicy:\0028\001\"|\n"
+ + "\01322.google.devtools.artifactregistry.v1.CleanupPolicy:\0028\001\"\206\001\n"
+ "\006Format\022\026\n"
+ "\022FORMAT_UNSPECIFIED\020\000\022\n\n"
+ "\006DOCKER\020\001\022\t\n"
@@ -418,33 +418,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003KFP\020\t\022\006\n"
+ "\002GO\020\n"
+ "\022\013\n"
- + "\007GENERIC\020\013\"d\n"
+ + "\007GENERIC\020\013\022\010\n"
+ + "\004RUBY\020\014\"d\n"
+ "\004Mode\022\024\n"
+ "\020MODE_UNSPECIFIED\020\000\022\027\n"
+ "\023STANDARD_REPOSITORY\020\001\022\026\n"
+ "\022VIRTUAL_REPOSITORY\020\002\022\025\n"
+ "\021REMOTE_REPOSITORY\020\003:r\352Ao\n"
- + "*artifactregistry.googleapis.com/Repository\022Aprojects/{project}/locat"
- + "ions/{location}/repositories/{repository}B\017\n\r"
+ + "*artifactregistry.googleapis.com/Repository\022Aprojects/{pro"
+ + "ject}/locations/{location}/repositories/{repository}B\017\n\r"
+ "format_configB\r\n"
+ "\013mode_config\"\260\001\n"
+ "\027ListRepositoriesRequest\022B\n"
- + "\006parent\030\001 \001(\tB2\340"
- + "A\002\372A,\022*artifactregistry.googleapis.com/Repository\022\021\n"
+ + "\006parent\030\001 \001("
+ + "\tB2\340A\002\372A,\022*artifactregistry.googleapis.com/Repository\022\021\n"
+ "\tpage_size\030\002 \001(\005\022\022\n\n"
+ "page_token\030\003 \001(\t\022\023\n"
+ "\006filter\030\004 \001(\tB\003\340A\001\022\025\n"
+ "\010order_by\030\005 \001(\tB\003\340A\001\"z\n"
+ "\030ListRepositoriesResponse\022E\n"
- + "\014repositories\030\001"
- + " \003(\0132/.google.devtools.artifactregistry.v1.Repository\022\027\n"
+ + "\014repositories\030\001 \003(\0132/.goog"
+ + "le.devtools.artifactregistry.v1.Repository\022\027\n"
+ "\017next_page_token\030\002 \001(\t\"X\n"
+ "\024GetRepositoryRequest\022@\n"
+ "\004name\030\001 \001(\tB2\340A\002\372A,\n"
+ "*artifactregistry.googleapis.com/Repository\"\303\001\n"
+ "\027CreateRepositoryRequest\022B\n"
- + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*"
- + "artifactregistry.googleapis.com/Repository\022\032\n\r"
+ + "\006parent\030\001 \001("
+ + "\tB2\340A\002\372A,\022*artifactregistry.googleapis.com/Repository\022\032\n\r"
+ "repository_id\030\002 \001(\tB\003\340A\002\022H\n\n"
+ "repository\030\003"
+ " \001(\0132/.google.devtools.artifactregistry.v1.RepositoryB\003\340A\002\"\217\001\n"
@@ -454,15 +455,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027DeleteRepositoryRequest\022@\n"
+ "\004name\030\001 \001(\tB2\340A\002\372A,\n"
+ "*artifactregistry.googleapis.com/RepositoryB\347\003\n"
- + "\'com.google.devtools.artifactregistry.v1B\017RepositoryP"
- + "rotoP\001ZPcloud.google.com/go/artifactregi"
- + "stry/apiv1/artifactregistrypb;artifactregistrypb\252\002"
- + " Google.Cloud.ArtifactRegistry.V1\312\002"
- + " Google\\Cloud\\ArtifactRegistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1\352Ak\n"
- + "*secretmanager.googleapis.com/SecretVers"
- + "ion\022=projects/{project}/secrets/{secret}/versions/{secret_version}\352A|\n"
- + "\'servicedirectory.googleapis.com/Service\022Qprojects"
- + "/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3"
+ + "\'com.google.devtools.artifactregistry.v1B\017"
+ + "RepositoryProtoP\001ZPcloud.google.com/go/a"
+ + "rtifactregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002"
+ + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactRe"
+ + "gistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1\352Ak\n"
+ + "*secretmanager.googleapis.com/SecretVersion\022=projects/{project}/secre"
+ + "ts/{secret}/versions/{secret_version}\352A|\n"
+ + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locations/{locatio"
+ + "n}/namespaces/{namespace}/services/{service}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java
index 20d6d262ef99..0dba24bd534e 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java
@@ -48,310 +48,319 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/artifactregistry/v1/apt_artifact.proto\032"
+ "2google/devtools/artifactregistry/v1/art"
+ "ifact.proto\0324google/devtools/artifactreg"
- + "istry/v1/attachment.proto\032.google/devtoo"
- + "ls/artifactregistry/v1/file.proto\0321googl"
- + "e/devtools/artifactregistry/v1/package.p"
- + "roto\0324google/devtools/artifactregistry/v"
- + "1/repository.proto\032.google/devtools/arti"
- + "factregistry/v1/rule.proto\0322google/devto"
- + "ols/artifactregistry/v1/settings.proto\032-"
- + "google/devtools/artifactregistry/v1/tag."
- + "proto\0321google/devtools/artifactregistry/"
- + "v1/version.proto\0326google/devtools/artifa"
- + "ctregistry/v1/vpcsc_config.proto\0326google"
- + "/devtools/artifactregistry/v1/yum_artifa"
- + "ct.proto\032\036google/iam/v1/iam_policy.proto"
- + "\032\032google/iam/v1/policy.proto\032#google/lon"
- + "grunning/operations.proto\032\033google/protob"
- + "uf/empty.proto\"\023\n\021OperationMetadata2\352W\n\020"
- + "ArtifactRegistry\022\341\001\n\020ListDockerImages\022<."
+ + "istry/v1/attachment.proto\0320google/devtoo"
+ + "ls/artifactregistry/v1/export.proto\032.goo"
+ + "gle/devtools/artifactregistry/v1/file.pr"
+ + "oto\0321google/devtools/artifactregistry/v1"
+ + "/package.proto\0324google/devtools/artifact"
+ + "registry/v1/repository.proto\032.google/dev"
+ + "tools/artifactregistry/v1/rule.proto\0322go"
+ + "ogle/devtools/artifactregistry/v1/settin"
+ + "gs.proto\032-google/devtools/artifactregist"
+ + "ry/v1/tag.proto\0321google/devtools/artifac"
+ + "tregistry/v1/version.proto\0326google/devto"
+ + "ols/artifactregistry/v1/vpcsc_config.pro"
+ + "to\0326google/devtools/artifactregistry/v1/"
+ + "yum_artifact.proto\032\036google/iam/v1/iam_po"
+ + "licy.proto\032\032google/iam/v1/policy.proto\032#"
+ + "google/longrunning/operations.proto\032\033goo"
+ + "gle/protobuf/empty.proto\"\023\n\021OperationMet"
+ + "adata2\246Z\n\020ArtifactRegistry\022\341\001\n\020ListDocke"
+ + "rImages\022<.google.devtools.artifactregist"
+ + "ry.v1.ListDockerImagesRequest\032=.google.d"
+ + "evtools.artifactregistry.v1.ListDockerIm"
+ + "agesResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/{pare"
+ + "nt=projects/*/locations/*/repositories/*"
+ + "}/dockerImages\022\316\001\n\016GetDockerImage\022:.goog"
+ + "le.devtools.artifactregistry.v1.GetDocke"
+ + "rImageRequest\0320.google.devtools.artifact"
+ + "registry.v1.DockerImage\"N\332A\004name\202\323\344\223\002A\022?"
+ + "/v1/{name=projects/*/locations/*/reposit"
+ + "ories/*/dockerImages/*}\022\351\001\n\022ListMavenArt"
+ + "ifacts\022>.google.devtools.artifactregistr"
+ + "y.v1.ListMavenArtifactsRequest\032?.google."
+ + "devtools.artifactregistry.v1.ListMavenAr"
+ + "tifactsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{p"
+ + "arent=projects/*/locations/*/repositorie"
+ + "s/*}/mavenArtifacts\022\326\001\n\020GetMavenArtifact"
+ + "\022<.google.devtools.artifactregistry.v1.G"
+ + "etMavenArtifactRequest\0322.google.devtools"
+ + ".artifactregistry.v1.MavenArtifact\"P\332A\004n"
+ + "ame\202\323\344\223\002C\022A/v1/{name=projects/*/location"
+ + "s/*/repositories/*/mavenArtifacts/*}\022\335\001\n"
+ + "\017ListNpmPackages\022;.google.devtools.artif"
+ + "actregistry.v1.ListNpmPackagesRequest\032<."
+ "google.devtools.artifactregistry.v1.List"
- + "DockerImagesRequest\032=.google.devtools.ar"
- + "tifactregistry.v1.ListDockerImagesRespon"
- + "se\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=project"
- + "s/*/locations/*/repositories/*}/dockerIm"
- + "ages\022\316\001\n\016GetDockerImage\022:.google.devtool"
- + "s.artifactregistry.v1.GetDockerImageRequ"
- + "est\0320.google.devtools.artifactregistry.v"
- + "1.DockerImage\"N\332A\004name\202\323\344\223\002A\022?/v1/{name="
- + "projects/*/locations/*/repositories/*/do"
- + "ckerImages/*}\022\351\001\n\022ListMavenArtifacts\022>.g"
- + "oogle.devtools.artifactregistry.v1.ListM"
- + "avenArtifactsRequest\032?.google.devtools.a"
- + "rtifactregistry.v1.ListMavenArtifactsRes"
- + "ponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=proj"
- + "ects/*/locations/*/repositories/*}/maven"
- + "Artifacts\022\326\001\n\020GetMavenArtifact\022<.google."
- + "devtools.artifactregistry.v1.GetMavenArt"
- + "ifactRequest\0322.google.devtools.artifactr"
- + "egistry.v1.MavenArtifact\"P\332A\004name\202\323\344\223\002C\022"
- + "A/v1/{name=projects/*/locations/*/reposi"
- + "tories/*/mavenArtifacts/*}\022\335\001\n\017ListNpmPa"
- + "ckages\022;.google.devtools.artifactregistr"
- + "y.v1.ListNpmPackagesRequest\032<.google.dev"
- + "tools.artifactregistry.v1.ListNpmPackage"
- + "sResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent="
- + "projects/*/locations/*/repositories/*}/n"
- + "pmPackages\022\312\001\n\rGetNpmPackage\0229.google.de"
- + "vtools.artifactregistry.v1.GetNpmPackage"
- + "Request\032/.google.devtools.artifactregist"
- + "ry.v1.NpmPackage\"M\332A\004name\202\323\344\223\002@\022>/v1/{na"
- + "me=projects/*/locations/*/repositories/*"
- + "/npmPackages/*}\022\351\001\n\022ListPythonPackages\022>"
- + ".google.devtools.artifactregistry.v1.Lis"
- + "tPythonPackagesRequest\032?.google.devtools"
- + ".artifactregistry.v1.ListPythonPackagesR"
- + "esponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=pr"
- + "ojects/*/locations/*/repositories/*}/pyt"
- + "honPackages\022\326\001\n\020GetPythonPackage\022<.googl"
- + "e.devtools.artifactregistry.v1.GetPython"
- + "PackageRequest\0322.google.devtools.artifac"
- + "tregistry.v1.PythonPackage\"P\332A\004name\202\323\344\223\002"
- + "C\022A/v1/{name=projects/*/locations/*/repo"
- + "sitories/*/pythonPackages/*}\022\313\002\n\022ImportA"
- + "ptArtifacts\022>.google.devtools.artifactre"
- + "gistry.v1.ImportAptArtifactsRequest\032\035.go"
- + "ogle.longrunning.Operation\"\325\001\312A\200\001\n>googl"
- + "e.devtools.artifactregistry.v1.ImportApt"
- + "ArtifactsResponse\022>google.devtools.artif"
- + "actregistry.v1.ImportAptArtifactsMetadat"
- + "a\202\323\344\223\002K\"F/v1/{parent=projects/*/location"
- + "s/*/repositories/*}/aptArtifacts:import:"
- + "\001*\022\313\002\n\022ImportYumArtifacts\022>.google.devto"
- + "ols.artifactregistry.v1.ImportYumArtifac"
- + "tsRequest\032\035.google.longrunning.Operation"
- + "\"\325\001\312A\200\001\n>google.devtools.artifactregistr"
- + "y.v1.ImportYumArtifactsResponse\022>google."
- + "devtools.artifactregistry.v1.ImportYumAr"
- + "tifactsMetadata\202\323\344\223\002K\"F/v1/{parent=proje"
- + "cts/*/locations/*/repositories/*}/yumArt"
- + "ifacts:import:\001*\022\322\001\n\020ListRepositories\022<."
- + "google.devtools.artifactregistry.v1.List"
- + "RepositoriesRequest\032=.google.devtools.ar"
- + "tifactregistry.v1.ListRepositoriesRespon"
- + "se\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=project"
- + "s/*/locations/*}/repositories\022\274\001\n\rGetRep"
- + "ository\0229.google.devtools.artifactregist"
- + "ry.v1.GetRepositoryRequest\032/.google.devt"
- + "ools.artifactregistry.v1.Repository\"?\332A\004"
- + "name\202\323\344\223\0022\0220/v1/{name=projects/*/locatio"
- + "ns/*/repositories/*}\022\302\002\n\020CreateRepositor"
- + "y\022<.google.devtools.artifactregistry.v1."
- + "CreateRepositoryRequest\032\035.google.longrun"
- + "ning.Operation\"\320\001\312Ag\n.google.devtools.ar"
- + "tifactregistry.v1.Repository\0225google.dev"
- + "tools.artifactregistry.v1.OperationMetad"
- + "ata\332A\037parent,repository,repository_id\202\323\344"
- + "\223\002>\"0/v1/{parent=projects/*/locations/*}"
- + "/repositories:\nrepository\022\353\001\n\020UpdateRepo"
- + "sitory\022<.google.devtools.artifactregistr"
- + "y.v1.UpdateRepositoryRequest\032/.google.de"
- + "vtools.artifactregistry.v1.Repository\"h\332"
- + "A\026repository,update_mask\202\323\344\223\002I2;/v1/{rep"
- + "ository.name=projects/*/locations/*/repo"
- + "sitories/*}:\nrepository\022\202\002\n\020DeleteReposi"
- + "tory\022<.google.devtools.artifactregistry."
- + "v1.DeleteRepositoryRequest\032\035.google.long"
- + "running.Operation\"\220\001\312AN\n\025google.protobuf"
- + ".Empty\0225google.devtools.artifactregistry"
- + ".v1.OperationMetadata\332A\004name\202\323\344\223\0022*0/v1/"
- + "{name=projects/*/locations/*/repositorie"
- + "s/*}\022\321\001\n\014ListPackages\0228.google.devtools."
- + "artifactregistry.v1.ListPackagesRequest\032"
- + "9.google.devtools.artifactregistry.v1.Li"
- + "stPackagesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1"
- + "/{parent=projects/*/locations/*/reposito"
- + "ries/*}/packages\022\276\001\n\nGetPackage\0226.google"
- + ".devtools.artifactregistry.v1.GetPackage"
- + "Request\032,.google.devtools.artifactregist"
- + "ry.v1.Package\"J\332A\004name\202\323\344\223\002=\022;/v1/{name="
- + "projects/*/locations/*/repositories/*/pa"
- + "ckages/*}\022\207\002\n\rDeletePackage\0229.google.dev"
- + "tools.artifactregistry.v1.DeletePackageR"
- + "equest\032\035.google.longrunning.Operation\"\233\001"
+ + "NpmPackagesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v"
+ + "1/{parent=projects/*/locations/*/reposit"
+ + "ories/*}/npmPackages\022\312\001\n\rGetNpmPackage\0229"
+ + ".google.devtools.artifactregistry.v1.Get"
+ + "NpmPackageRequest\032/.google.devtools.arti"
+ + "factregistry.v1.NpmPackage\"M\332A\004name\202\323\344\223\002"
+ + "@\022>/v1/{name=projects/*/locations/*/repo"
+ + "sitories/*/npmPackages/*}\022\351\001\n\022ListPython"
+ + "Packages\022>.google.devtools.artifactregis"
+ + "try.v1.ListPythonPackagesRequest\032?.googl"
+ + "e.devtools.artifactregistry.v1.ListPytho"
+ + "nPackagesResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/"
+ + "{parent=projects/*/locations/*/repositor"
+ + "ies/*}/pythonPackages\022\326\001\n\020GetPythonPacka"
+ + "ge\022<.google.devtools.artifactregistry.v1"
+ + ".GetPythonPackageRequest\0322.google.devtoo"
+ + "ls.artifactregistry.v1.PythonPackage\"P\332A"
+ + "\004name\202\323\344\223\002C\022A/v1/{name=projects/*/locati"
+ + "ons/*/repositories/*/pythonPackages/*}\022\313"
+ + "\002\n\022ImportAptArtifacts\022>.google.devtools."
+ + "artifactregistry.v1.ImportAptArtifactsRe"
+ + "quest\032\035.google.longrunning.Operation\"\325\001\312"
+ + "A\200\001\n>google.devtools.artifactregistry.v1"
+ + ".ImportAptArtifactsResponse\022>google.devt"
+ + "ools.artifactregistry.v1.ImportAptArtifa"
+ + "ctsMetadata\202\323\344\223\002K\"F/v1/{parent=projects/"
+ + "*/locations/*/repositories/*}/aptArtifac"
+ + "ts:import:\001*\022\313\002\n\022ImportYumArtifacts\022>.go"
+ + "ogle.devtools.artifactregistry.v1.Import"
+ + "YumArtifactsRequest\032\035.google.longrunning"
+ + ".Operation\"\325\001\312A\200\001\n>google.devtools.artif"
+ + "actregistry.v1.ImportYumArtifactsRespons"
+ + "e\022>google.devtools.artifactregistry.v1.I"
+ + "mportYumArtifactsMetadata\202\323\344\223\002K\"F/v1/{pa"
+ + "rent=projects/*/locations/*/repositories"
+ + "/*}/yumArtifacts:import:\001*\022\322\001\n\020ListRepos"
+ + "itories\022<.google.devtools.artifactregist"
+ + "ry.v1.ListRepositoriesRequest\032=.google.d"
+ + "evtools.artifactregistry.v1.ListReposito"
+ + "riesResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{pare"
+ + "nt=projects/*/locations/*}/repositories\022"
+ + "\274\001\n\rGetRepository\0229.google.devtools.arti"
+ + "factregistry.v1.GetRepositoryRequest\032/.g"
+ + "oogle.devtools.artifactregistry.v1.Repos"
+ + "itory\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects"
+ + "/*/locations/*/repositories/*}\022\302\002\n\020Creat"
+ + "eRepository\022<.google.devtools.artifactre"
+ + "gistry.v1.CreateRepositoryRequest\032\035.goog"
+ + "le.longrunning.Operation\"\320\001\312Ag\n.google.d"
+ + "evtools.artifactregistry.v1.Repository\0225"
+ + "google.devtools.artifactregistry.v1.Oper"
+ + "ationMetadata\332A\037parent,repository,reposi"
+ + "tory_id\202\323\344\223\002>\"0/v1/{parent=projects/*/lo"
+ + "cations/*}/repositories:\nrepository\022\353\001\n\020"
+ + "UpdateRepository\022<.google.devtools.artif"
+ + "actregistry.v1.UpdateRepositoryRequest\032/"
+ + ".google.devtools.artifactregistry.v1.Rep"
+ + "ository\"h\332A\026repository,update_mask\202\323\344\223\002I"
+ + "2;/v1/{repository.name=projects/*/locati"
+ + "ons/*/repositories/*}:\nrepository\022\202\002\n\020De"
+ + "leteRepository\022<.google.devtools.artifac"
+ + "tregistry.v1.DeleteRepositoryRequest\032\035.g"
+ + "oogle.longrunning.Operation\"\220\001\312AN\n\025googl"
+ + "e.protobuf.Empty\0225google.devtools.artifa"
+ + "ctregistry.v1.OperationMetadata\332A\004name\202\323"
+ + "\344\223\0022*0/v1/{name=projects/*/locations/*/r"
+ + "epositories/*}\022\321\001\n\014ListPackages\0228.google"
+ + ".devtools.artifactregistry.v1.ListPackag"
+ + "esRequest\0329.google.devtools.artifactregi"
+ + "stry.v1.ListPackagesResponse\"L\332A\006parent\202"
+ + "\323\344\223\002=\022;/v1/{parent=projects/*/locations/"
+ + "*/repositories/*}/packages\022\276\001\n\nGetPackag"
+ + "e\0226.google.devtools.artifactregistry.v1."
+ + "GetPackageRequest\032,.google.devtools.arti"
+ + "factregistry.v1.Package\"J\332A\004name\202\323\344\223\002=\022;"
+ + "/v1/{name=projects/*/locations/*/reposit"
+ + "ories/*/packages/*}\022\207\002\n\rDeletePackage\0229."
+ + "google.devtools.artifactregistry.v1.Dele"
+ + "tePackageRequest\032\035.google.longrunning.Op"
+ + "eration\"\233\001\312AN\n\025google.protobuf.Empty\0225go"
+ + "ogle.devtools.artifactregistry.v1.Operat"
+ + "ionMetadata\332A\004name\202\323\344\223\002=*;/v1/{name=proj"
+ + "ects/*/locations/*/repositories/*/packag"
+ + "es/*}\022\334\001\n\014ListVersions\0228.google.devtools"
+ + ".artifactregistry.v1.ListVersionsRequest"
+ + "\0329.google.devtools.artifactregistry.v1.L"
+ + "istVersionsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v"
+ + "1/{parent=projects/*/locations/*/reposit"
+ + "ories/*/packages/*}/versions\022\311\001\n\nGetVers"
+ + "ion\0226.google.devtools.artifactregistry.v"
+ + "1.GetVersionRequest\032,.google.devtools.ar"
+ + "tifactregistry.v1.Version\"U\332A\004name\202\323\344\223\002H"
+ + "\022F/v1/{name=projects/*/locations/*/repos"
+ + "itories/*/packages/*/versions/*}\022\222\002\n\rDel"
+ + "eteVersion\0229.google.devtools.artifactreg"
+ + "istry.v1.DeleteVersionRequest\032\035.google.l"
+ + "ongrunning.Operation\"\246\001\312AN\n\025google.proto"
+ + "buf.Empty\0225google.devtools.artifactregis"
+ + "try.v1.OperationMetadata\332A\004name\202\323\344\223\002H*F/"
+ + "v1/{name=projects/*/locations/*/reposito"
+ + "ries/*/packages/*/versions/*}\022\277\002\n\023BatchD"
+ + "eleteVersions\022?.google.devtools.artifact"
+ + "registry.v1.BatchDeleteVersionsRequest\032\035"
+ + ".google.longrunning.Operation\"\307\001\312AX\n\025goo"
+ + "gle.protobuf.Empty\022?google.devtools.arti"
+ + "factregistry.v1.BatchDeleteVersionsMetad"
+ + "ata\332A\014parent,names\202\323\344\223\002W\"R/v1/{parent=pr"
+ + "ojects/*/locations/*/repositories/*/pack"
+ + "ages/*}/versions:batchDelete:\001*\022\357\001\n\rUpda"
+ + "teVersion\0229.google.devtools.artifactregi"
+ + "stry.v1.UpdateVersionRequest\032,.google.de"
+ + "vtools.artifactregistry.v1.Version\"u\332A\023v"
+ + "ersion,update_mask\202\323\344\223\002Y2N/v1/{version.n"
+ + "ame=projects/*/locations/*/repositories/"
+ + "*/packages/*/versions/*}:\007version\022\305\001\n\tLi"
+ + "stFiles\0225.google.devtools.artifactregist"
+ + "ry.v1.ListFilesRequest\0326.google.devtools"
+ + ".artifactregistry.v1.ListFilesResponse\"I"
+ + "\332A\006parent\202\323\344\223\002:\0228/v1/{parent=projects/*/"
+ + "locations/*/repositories/*}/files\022\263\001\n\007Ge"
+ + "tFile\0223.google.devtools.artifactregistry"
+ + ".v1.GetFileRequest\032).google.devtools.art"
+ + "ifactregistry.v1.File\"H\332A\004name\202\323\344\223\002;\0229/v"
+ + "1/{name=projects/*/locations/*/repositor"
+ + "ies/*/files/**}\022\376\001\n\nDeleteFile\0226.google."
+ + "devtools.artifactregistry.v1.DeleteFileR"
+ + "equest\032\035.google.longrunning.Operation\"\230\001"
+ "\312AN\n\025google.protobuf.Empty\0225google.devto"
+ "ols.artifactregistry.v1.OperationMetadat"
- + "a\332A\004name\202\323\344\223\002=*;/v1/{name=projects/*/loc"
- + "ations/*/repositories/*/packages/*}\022\334\001\n\014"
- + "ListVersions\0228.google.devtools.artifactr"
- + "egistry.v1.ListVersionsRequest\0329.google."
- + "devtools.artifactregistry.v1.ListVersion"
- + "sResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent="
- + "projects/*/locations/*/repositories/*/pa"
- + "ckages/*}/versions\022\311\001\n\nGetVersion\0226.goog"
- + "le.devtools.artifactregistry.v1.GetVersi"
- + "onRequest\032,.google.devtools.artifactregi"
- + "stry.v1.Version\"U\332A\004name\202\323\344\223\002H\022F/v1/{nam"
+ + "a\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*/loc"
+ + "ations/*/repositories/*/files/*}\022\317\001\n\nUpd"
+ + "ateFile\0226.google.devtools.artifactregist"
+ + "ry.v1.UpdateFileRequest\032).google.devtool"
+ + "s.artifactregistry.v1.File\"^\332A\020file,upda"
+ + "te_mask\202\323\344\223\002E2=/v1/{file.name=projects/*"
+ + "/locations/*/repositories/*/files/*}:\004fi"
+ + "le\022\314\001\n\010ListTags\0224.google.devtools.artifa"
+ + "ctregistry.v1.ListTagsRequest\0325.google.d"
+ + "evtools.artifactregistry.v1.ListTagsResp"
+ + "onse\"S\332A\006parent\202\323\344\223\002D\022B/v1/{parent=proje"
+ + "cts/*/locations/*/repositories/*/package"
+ + "s/*}/tags\022\271\001\n\006GetTag\0222.google.devtools.a"
+ + "rtifactregistry.v1.GetTagRequest\032(.googl"
+ + "e.devtools.artifactregistry.v1.Tag\"Q\332A\004n"
+ + "ame\202\323\344\223\002D\022B/v1/{name=projects/*/location"
+ + "s/*/repositories/*/packages/*/tags/*}\022\321\001"
+ + "\n\tCreateTag\0225.google.devtools.artifactre"
+ + "gistry.v1.CreateTagRequest\032(.google.devt"
+ + "ools.artifactregistry.v1.Tag\"c\332A\021parent,"
+ + "tag,tag_id\202\323\344\223\002I\"B/v1/{parent=projects/*"
+ + "/locations/*/repositories/*/packages/*}/"
+ + "tags:\003tag\022\323\001\n\tUpdateTag\0225.google.devtool"
+ + "s.artifactregistry.v1.UpdateTagRequest\032("
+ + ".google.devtools.artifactregistry.v1.Tag"
+ + "\"e\332A\017tag,update_mask\202\323\344\223\002M2F/v1/{tag.nam"
+ "e=projects/*/locations/*/repositories/*/"
- + "packages/*/versions/*}\022\222\002\n\rDeleteVersion"
- + "\0229.google.devtools.artifactregistry.v1.D"
- + "eleteVersionRequest\032\035.google.longrunning"
- + ".Operation\"\246\001\312AN\n\025google.protobuf.Empty\022"
- + "5google.devtools.artifactregistry.v1.Ope"
- + "rationMetadata\332A\004name\202\323\344\223\002H*F/v1/{name=p"
- + "rojects/*/locations/*/repositories/*/pac"
- + "kages/*/versions/*}\022\277\002\n\023BatchDeleteVersi"
- + "ons\022?.google.devtools.artifactregistry.v"
- + "1.BatchDeleteVersionsRequest\032\035.google.lo"
- + "ngrunning.Operation\"\307\001\312AX\n\025google.protob"
- + "uf.Empty\022?google.devtools.artifactregist"
- + "ry.v1.BatchDeleteVersionsMetadata\332A\014pare"
- + "nt,names\202\323\344\223\002W\"R/v1/{parent=projects/*/l"
- + "ocations/*/repositories/*/packages/*}/ve"
- + "rsions:batchDelete:\001*\022\357\001\n\rUpdateVersion\022"
- + "9.google.devtools.artifactregistry.v1.Up"
- + "dateVersionRequest\032,.google.devtools.art"
- + "ifactregistry.v1.Version\"u\332A\023version,upd"
- + "ate_mask\202\323\344\223\002Y2N/v1/{version.name=projec"
- + "ts/*/locations/*/repositories/*/packages"
- + "/*/versions/*}:\007version\022\305\001\n\tListFiles\0225."
- + "google.devtools.artifactregistry.v1.List"
- + "FilesRequest\0326.google.devtools.artifactr"
- + "egistry.v1.ListFilesResponse\"I\332A\006parent\202"
- + "\323\344\223\002:\0228/v1/{parent=projects/*/locations/"
- + "*/repositories/*}/files\022\263\001\n\007GetFile\0223.go"
- + "ogle.devtools.artifactregistry.v1.GetFil"
- + "eRequest\032).google.devtools.artifactregis"
- + "try.v1.File\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=pr"
- + "ojects/*/locations/*/repositories/*/file"
- + "s/**}\022\376\001\n\nDeleteFile\0226.google.devtools.a"
- + "rtifactregistry.v1.DeleteFileRequest\032\035.g"
- + "oogle.longrunning.Operation\"\230\001\312AN\n\025googl"
- + "e.protobuf.Empty\0225google.devtools.artifa"
- + "ctregistry.v1.OperationMetadata\332A\004name\202\323"
- + "\344\223\002:*8/v1/{name=projects/*/locations/*/r"
- + "epositories/*/files/*}\022\317\001\n\nUpdateFile\0226."
- + "google.devtools.artifactregistry.v1.Upda"
- + "teFileRequest\032).google.devtools.artifact"
- + "registry.v1.File\"^\332A\020file,update_mask\202\323\344"
- + "\223\002E2=/v1/{file.name=projects/*/locations"
- + "/*/repositories/*/files/*}:\004file\022\314\001\n\010Lis"
- + "tTags\0224.google.devtools.artifactregistry"
- + ".v1.ListTagsRequest\0325.google.devtools.ar"
- + "tifactregistry.v1.ListTagsResponse\"S\332A\006p"
- + "arent\202\323\344\223\002D\022B/v1/{parent=projects/*/loca"
- + "tions/*/repositories/*/packages/*}/tags\022"
- + "\271\001\n\006GetTag\0222.google.devtools.artifactreg"
- + "istry.v1.GetTagRequest\032(.google.devtools"
- + ".artifactregistry.v1.Tag\"Q\332A\004name\202\323\344\223\002D\022"
- + "B/v1/{name=projects/*/locations/*/reposi"
- + "tories/*/packages/*/tags/*}\022\321\001\n\tCreateTa"
- + "g\0225.google.devtools.artifactregistry.v1."
- + "CreateTagRequest\032(.google.devtools.artif"
- + "actregistry.v1.Tag\"c\332A\021parent,tag,tag_id"
- + "\202\323\344\223\002I\"B/v1/{parent=projects/*/locations"
- + "/*/repositories/*/packages/*}/tags:\003tag\022"
- + "\323\001\n\tUpdateTag\0225.google.devtools.artifact"
- + "registry.v1.UpdateTagRequest\032(.google.de"
- + "vtools.artifactregistry.v1.Tag\"e\332A\017tag,u"
- + "pdate_mask\202\323\344\223\002M2F/v1/{tag.name=projects"
- + "/*/locations/*/repositories/*/packages/*"
- + "/tags/*}:\003tag\022\255\001\n\tDeleteTag\0225.google.dev"
- + "tools.artifactregistry.v1.DeleteTagReque"
- + "st\032\026.google.protobuf.Empty\"Q\332A\004name\202\323\344\223\002"
- + "D*B/v1/{name=projects/*/locations/*/repo"
- + "sitories/*/packages/*/tags/*}\022\315\001\n\nCreate"
- + "Rule\0226.google.devtools.artifactregistry."
- + "v1.CreateRuleRequest\032).google.devtools.a"
- + "rtifactregistry.v1.Rule\"\\\332A\023parent,rule,"
- + "rule_id\202\323\344\223\002@\"8/v1/{parent=projects/*/lo"
- + "cations/*/repositories/*}/rules:\004rule\022\305\001"
- + "\n\tListRules\0225.google.devtools.artifactre"
- + "gistry.v1.ListRulesRequest\0326.google.devt"
- + "ools.artifactregistry.v1.ListRulesRespon"
- + "se\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=project"
- + "s/*/locations/*/repositories/*}/rules\022\262\001"
- + "\n\007GetRule\0223.google.devtools.artifactregi"
- + "stry.v1.GetRuleRequest\032).google.devtools"
- + ".artifactregistry.v1.Rule\"G\332A\004name\202\323\344\223\002:"
- + "\0228/v1/{name=projects/*/locations/*/repos"
- + "itories/*/rules/*}\022\317\001\n\nUpdateRule\0226.goog"
- + "le.devtools.artifactregistry.v1.UpdateRu"
- + "leRequest\032).google.devtools.artifactregi"
- + "stry.v1.Rule\"^\332A\020rule,update_mask\202\323\344\223\002E2"
- + "=/v1/{rule.name=projects/*/locations/*/r"
- + "epositories/*/rules/*}:\004rule\022\245\001\n\nDeleteR"
+ + "packages/*/tags/*}:\003tag\022\255\001\n\tDeleteTag\0225."
+ + "google.devtools.artifactregistry.v1.Dele"
+ + "teTagRequest\032\026.google.protobuf.Empty\"Q\332A"
+ + "\004name\202\323\344\223\002D*B/v1/{name=projects/*/locati"
+ + "ons/*/repositories/*/packages/*/tags/*}\022"
+ + "\315\001\n\nCreateRule\0226.google.devtools.artifac"
+ + "tregistry.v1.CreateRuleRequest\032).google."
+ + "devtools.artifactregistry.v1.Rule\"\\\332A\023pa"
+ + "rent,rule,rule_id\202\323\344\223\002@\"8/v1/{parent=pro"
+ + "jects/*/locations/*/repositories/*}/rule"
+ + "s:\004rule\022\305\001\n\tListRules\0225.google.devtools."
+ + "artifactregistry.v1.ListRulesRequest\0326.g"
+ + "oogle.devtools.artifactregistry.v1.ListR"
+ + "ulesResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{pare"
+ + "nt=projects/*/locations/*/repositories/*"
+ + "}/rules\022\262\001\n\007GetRule\0223.google.devtools.ar"
+ + "tifactregistry.v1.GetRuleRequest\032).googl"
+ + "e.devtools.artifactregistry.v1.Rule\"G\332A\004"
+ + "name\202\323\344\223\002:\0228/v1/{name=projects/*/locatio"
+ + "ns/*/repositories/*/rules/*}\022\317\001\n\nUpdateR"
+ "ule\0226.google.devtools.artifactregistry.v"
- + "1.DeleteRuleRequest\032\026.google.protobuf.Em"
- + "pty\"G\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*"
- + "/locations/*/repositories/*/rules/*}\022\227\001\n"
- + "\014SetIamPolicy\022\".google.iam.v1.SetIamPoli"
- + "cyRequest\032\025.google.iam.v1.Policy\"L\202\323\344\223\002F"
- + "\"A/v1/{resource=projects/*/locations/*/r"
- + "epositories/*}:setIamPolicy:\001*\022\224\001\n\014GetIa"
- + "mPolicy\022\".google.iam.v1.GetIamPolicyRequ"
- + "est\032\025.google.iam.v1.Policy\"I\202\323\344\223\002C\022A/v1/"
- + "{resource=projects/*/locations/*/reposit"
- + "ories/*}:getIamPolicy\022\275\001\n\022TestIamPermiss"
- + "ions\022(.google.iam.v1.TestIamPermissionsR"
- + "equest\032).google.iam.v1.TestIamPermission"
- + "sResponse\"R\202\323\344\223\002L\"G/v1/{resource=project"
- + "s/*/locations/*/repositories/*}:testIamP"
- + "ermissions:\001*\022\300\001\n\022GetProjectSettings\022>.g"
- + "oogle.devtools.artifactregistry.v1.GetPr"
- + "ojectSettingsRequest\0324.google.devtools.a"
- + "rtifactregistry.v1.ProjectSettings\"4\332A\004n"
- + "ame\202\323\344\223\002\'\022%/v1/{name=projects/*/projectS"
- + "ettings}\022\201\002\n\025UpdateProjectSettings\022A.goo"
- + "gle.devtools.artifactregistry.v1.UpdateP"
- + "rojectSettingsRequest\0324.google.devtools."
- + "artifactregistry.v1.ProjectSettings\"o\332A\034"
- + "project_settings,update_mask\202\323\344\223\002J26/v1/"
- + "{project_settings.name=projects/*/projec"
- + "tSettings}:\020project_settings\022\274\001\n\016GetVPCS"
- + "CConfig\022:.google.devtools.artifactregist"
- + "ry.v1.GetVPCSCConfigRequest\0320.google.dev"
- + "tools.artifactregistry.v1.VPCSCConfig\"<\332"
- + "A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locat"
- + "ions/*/vpcscConfig}\022\361\001\n\021UpdateVPCSCConfi"
- + "g\022=.google.devtools.artifactregistry.v1."
- + "UpdateVPCSCConfigRequest\0320.google.devtoo"
- + "ls.artifactregistry.v1.VPCSCConfig\"k\332A\030v"
- + "pcsc_config,update_mask\202\323\344\223\002J2:/v1/{vpcs"
- + "c_config.name=projects/*/locations/*/vpc"
- + "scConfig}:\014vpcsc_config\022\344\001\n\rUpdatePackag"
- + "e\0229.google.devtools.artifactregistry.v1."
- + "UpdatePackageRequest\032,.google.devtools.a"
- + "rtifactregistry.v1.Package\"j\332A\023package,u"
- + "pdate_mask\202\323\344\223\002N2C/v1/{package.name=proj"
- + "ects/*/locations/*/repositories/*/packag"
- + "es/*}:\007package\022\335\001\n\017ListAttachments\022;.goo"
- + "gle.devtools.artifactregistry.v1.ListAtt"
- + "achmentsRequest\032<.google.devtools.artifa"
- + "ctregistry.v1.ListAttachmentsResponse\"O\332"
- + "A\006parent\202\323\344\223\002@\022>/v1/{parent=projects/*/l"
- + "ocations/*/repositories/*}/attachments\022\312"
- + "\001\n\rGetAttachment\0229.google.devtools.artif"
- + "actregistry.v1.GetAttachmentRequest\032/.go"
- + "ogle.devtools.artifactregistry.v1.Attach"
- + "ment\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/"
- + "*/locations/*/repositories/*/attachments"
- + "/*}\022\320\002\n\020CreateAttachment\022<.google.devtoo"
- + "ls.artifactregistry.v1.CreateAttachmentR"
- + "equest\032\035.google.longrunning.Operation\"\336\001"
- + "\312Ag\n.google.devtools.artifactregistry.v1"
- + ".Attachment\0225google.devtools.artifactreg"
- + "istry.v1.OperationMetadata\332A\037parent,atta"
- + "chment,attachment_id\202\323\344\223\002L\">/v1/{parent="
- + "projects/*/locations/*/repositories/*}/a"
- + "ttachments:\nattachment\022\220\002\n\020DeleteAttachm"
- + "ent\022<.google.devtools.artifactregistry.v"
- + "1.DeleteAttachmentRequest\032\035.google.longr"
- + "unning.Operation\"\236\001\312AN\n\025google.protobuf."
- + "Empty\0225google.devtools.artifactregistry."
- + "v1.OperationMetadata\332A\004name\202\323\344\223\002@*>/v1/{"
- + "name=projects/*/locations/*/repositories"
- + "/*/attachments/*}\032\214\001\312A\037artifactregistry."
- + "googleapis.com\322Aghttps://www.googleapis."
- + "com/auth/cloud-platform,https://www.goog"
- + "leapis.com/auth/cloud-platform.read-only"
- + "B\367\001\n\'com.google.devtools.artifactregistr"
- + "y.v1B\014ServiceProtoP\001ZPcloud.google.com/g"
- + "o/artifactregistry/apiv1/artifactregistr"
- + "ypb;artifactregistrypb\252\002 Google.Cloud.Ar"
- + "tifactRegistry.V1\312\002 Google\\Cloud\\Artifac"
- + "tRegistry\\V1\352\002#Google::Cloud::ArtifactRe"
- + "gistry::V1b\006proto3"
+ + "1.UpdateRuleRequest\032).google.devtools.ar"
+ + "tifactregistry.v1.Rule\"^\332A\020rule,update_m"
+ + "ask\202\323\344\223\002E2=/v1/{rule.name=projects/*/loc"
+ + "ations/*/repositories/*/rules/*}:\004rule\022\245"
+ + "\001\n\nDeleteRule\0226.google.devtools.artifact"
+ + "registry.v1.DeleteRuleRequest\032\026.google.p"
+ + "rotobuf.Empty\"G\332A\004name\202\323\344\223\002:*8/v1/{name="
+ + "projects/*/locations/*/repositories/*/ru"
+ + "les/*}\022\227\001\n\014SetIamPolicy\022\".google.iam.v1."
+ + "SetIamPolicyRequest\032\025.google.iam.v1.Poli"
+ + "cy\"L\202\323\344\223\002F\"A/v1/{resource=projects/*/loc"
+ + "ations/*/repositories/*}:setIamPolicy:\001*"
+ + "\022\224\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam"
+ + "PolicyRequest\032\025.google.iam.v1.Policy\"I\202\323"
+ + "\344\223\002C\022A/v1/{resource=projects/*/locations"
+ + "/*/repositories/*}:getIamPolicy\022\275\001\n\022Test"
+ + "IamPermissions\022(.google.iam.v1.TestIamPe"
+ + "rmissionsRequest\032).google.iam.v1.TestIam"
+ + "PermissionsResponse\"R\202\323\344\223\002L\"G/v1/{resour"
+ + "ce=projects/*/locations/*/repositories/*"
+ + "}:testIamPermissions:\001*\022\300\001\n\022GetProjectSe"
+ + "ttings\022>.google.devtools.artifactregistr"
+ + "y.v1.GetProjectSettingsRequest\0324.google."
+ + "devtools.artifactregistry.v1.ProjectSett"
+ + "ings\"4\332A\004name\202\323\344\223\002\'\022%/v1/{name=projects/"
+ + "*/projectSettings}\022\201\002\n\025UpdateProjectSett"
+ + "ings\022A.google.devtools.artifactregistry."
+ + "v1.UpdateProjectSettingsRequest\0324.google"
+ + ".devtools.artifactregistry.v1.ProjectSet"
+ + "tings\"o\332A\034project_settings,update_mask\202\323"
+ + "\344\223\002J26/v1/{project_settings.name=project"
+ + "s/*/projectSettings}:\020project_settings\022\274"
+ + "\001\n\016GetVPCSCConfig\022:.google.devtools.arti"
+ + "factregistry.v1.GetVPCSCConfigRequest\0320."
+ + "google.devtools.artifactregistry.v1.VPCS"
+ + "CConfig\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projec"
+ + "ts/*/locations/*/vpcscConfig}\022\361\001\n\021Update"
+ + "VPCSCConfig\022=.google.devtools.artifactre"
+ + "gistry.v1.UpdateVPCSCConfigRequest\0320.goo"
+ + "gle.devtools.artifactregistry.v1.VPCSCCo"
+ + "nfig\"k\332A\030vpcsc_config,update_mask\202\323\344\223\002J2"
+ + ":/v1/{vpcsc_config.name=projects/*/locat"
+ + "ions/*/vpcscConfig}:\014vpcsc_config\022\344\001\n\rUp"
+ + "datePackage\0229.google.devtools.artifactre"
+ + "gistry.v1.UpdatePackageRequest\032,.google."
+ + "devtools.artifactregistry.v1.Package\"j\332A"
+ + "\023package,update_mask\202\323\344\223\002N2C/v1/{package"
+ + ".name=projects/*/locations/*/repositorie"
+ + "s/*/packages/*}:\007package\022\335\001\n\017ListAttachm"
+ + "ents\022;.google.devtools.artifactregistry."
+ + "v1.ListAttachmentsRequest\032<.google.devto"
+ + "ols.artifactregistry.v1.ListAttachmentsR"
+ + "esponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=pr"
+ + "ojects/*/locations/*/repositories/*}/att"
+ + "achments\022\312\001\n\rGetAttachment\0229.google.devt"
+ + "ools.artifactregistry.v1.GetAttachmentRe"
+ + "quest\032/.google.devtools.artifactregistry"
+ + ".v1.Attachment\"M\332A\004name\202\323\344\223\002@\022>/v1/{name"
+ + "=projects/*/locations/*/repositories/*/a"
+ + "ttachments/*}\022\320\002\n\020CreateAttachment\022<.goo"
+ + "gle.devtools.artifactregistry.v1.CreateA"
+ + "ttachmentRequest\032\035.google.longrunning.Op"
+ + "eration\"\336\001\312Ag\n.google.devtools.artifactr"
+ + "egistry.v1.Attachment\0225google.devtools.a"
+ + "rtifactregistry.v1.OperationMetadata\332A\037p"
+ + "arent,attachment,attachment_id\202\323\344\223\002L\">/v"
+ + "1/{parent=projects/*/locations/*/reposit"
+ + "ories/*}/attachments:\nattachment\022\220\002\n\020Del"
+ + "eteAttachment\022<.google.devtools.artifact"
+ + "registry.v1.DeleteAttachmentRequest\032\035.go"
+ + "ogle.longrunning.Operation\"\236\001\312AN\n\025google"
+ + ".protobuf.Empty\0225google.devtools.artifac"
+ + "tregistry.v1.OperationMetadata\332A\004name\202\323\344"
+ + "\223\002@*>/v1/{name=projects/*/locations/*/re"
+ + "positories/*/attachments/*}\022\271\002\n\016ExportAr"
+ + "tifact\022:.google.devtools.artifactregistr"
+ + "y.v1.ExportArtifactRequest\032\035.google.long"
+ + "running.Operation\"\313\001\312Ax\n:google.devtools"
+ + ".artifactregistry.v1.ExportArtifactRespo"
+ + "nse\022:google.devtools.artifactregistry.v1"
+ + ".ExportArtifactMetadata\202\323\344\223\002J\"E/v1/{repo"
+ + "sitory=projects/*/locations/*/repositori"
+ + "es/*}:exportArtifact:\001*\032\214\001\312A\037artifactreg"
+ + "istry.googleapis.com\322Aghttps://www.googl"
+ + "eapis.com/auth/cloud-platform,https://ww"
+ + "w.googleapis.com/auth/cloud-platform.rea"
+ + "d-onlyB\367\001\n\'com.google.devtools.artifactr"
+ + "egistry.v1B\014ServiceProtoP\001ZPcloud.google"
+ + ".com/go/artifactregistry/apiv1/artifactr"
+ + "egistrypb;artifactregistrypb\252\002 Google.Cl"
+ + "oud.ArtifactRegistry.V1\312\002 Google\\Cloud\\A"
+ + "rtifactRegistry\\V1\352\002#Google::Cloud::Arti"
+ + "factRegistry::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -362,6 +371,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.devtools.artifactregistry.v1.AptArtifactProto.getDescriptor(),
com.google.devtools.artifactregistry.v1.ArtifactProto.getDescriptor(),
com.google.devtools.artifactregistry.v1.AttachmentProto.getDescriptor(),
+ com.google.devtools.artifactregistry.v1.ExportProto.getDescriptor(),
com.google.devtools.artifactregistry.v1.FileProto.getDescriptor(),
com.google.devtools.artifactregistry.v1.PackageProto.getDescriptor(),
com.google.devtools.artifactregistry.v1.RepositoryProto.getDescriptor(),
@@ -396,6 +406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.devtools.artifactregistry.v1.AptArtifactProto.getDescriptor();
com.google.devtools.artifactregistry.v1.ArtifactProto.getDescriptor();
com.google.devtools.artifactregistry.v1.AttachmentProto.getDescriptor();
+ com.google.devtools.artifactregistry.v1.ExportProto.getDescriptor();
com.google.devtools.artifactregistry.v1.FileProto.getDescriptor();
com.google.devtools.artifactregistry.v1.PackageProto.getDescriptor();
com.google.devtools.artifactregistry.v1.RepositoryProto.getDescriptor();
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java
new file mode 100644
index 000000000000..92e208da4d75
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java
@@ -0,0 +1,298 @@
+/*
+ * Copyright 2025 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.
+ */
+
+package com.google.devtools.artifactregistry.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class TagName implements ResourceName {
+ private static final PathTemplate PROJECT_LOCATION_REPOSITORY_PACKAGE_TAG =
+ PathTemplate.createWithoutUrlEncoding(
+ "projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}");
+ private volatile Map fieldValuesMap;
+ private final String project;
+ private final String location;
+ private final String repository;
+ private final String package_;
+ private final String tag;
+
+ @Deprecated
+ protected TagName() {
+ project = null;
+ location = null;
+ repository = null;
+ package_ = null;
+ tag = null;
+ }
+
+ private TagName(Builder builder) {
+ project = Preconditions.checkNotNull(builder.getProject());
+ location = Preconditions.checkNotNull(builder.getLocation());
+ repository = Preconditions.checkNotNull(builder.getRepository());
+ package_ = Preconditions.checkNotNull(builder.getPackage());
+ tag = Preconditions.checkNotNull(builder.getTag());
+ }
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public String getRepository() {
+ return repository;
+ }
+
+ public String getPackage() {
+ return package_;
+ }
+
+ public String getTag() {
+ return tag;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ public static TagName of(
+ String project, String location, String repository, String package_, String tag) {
+ return newBuilder()
+ .setProject(project)
+ .setLocation(location)
+ .setRepository(repository)
+ .setPackage(package_)
+ .setTag(tag)
+ .build();
+ }
+
+ public static String format(
+ String project, String location, String repository, String package_, String tag) {
+ return newBuilder()
+ .setProject(project)
+ .setLocation(location)
+ .setRepository(repository)
+ .setPackage(package_)
+ .setTag(tag)
+ .build()
+ .toString();
+ }
+
+ public static TagName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ PROJECT_LOCATION_REPOSITORY_PACKAGE_TAG.validatedMatch(
+ formattedString, "TagName.parse: formattedString not in valid format");
+ return of(
+ matchMap.get("project"),
+ matchMap.get("location"),
+ matchMap.get("repository"),
+ matchMap.get("package"),
+ matchMap.get("tag"));
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList<>(values.size());
+ for (TagName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return PROJECT_LOCATION_REPOSITORY_PACKAGE_TAG.matches(formattedString);
+ }
+
+ @Override
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ if (project != null) {
+ fieldMapBuilder.put("project", project);
+ }
+ if (location != null) {
+ fieldMapBuilder.put("location", location);
+ }
+ if (repository != null) {
+ fieldMapBuilder.put("repository", repository);
+ }
+ if (package_ != null) {
+ fieldMapBuilder.put("package", package_);
+ }
+ if (tag != null) {
+ fieldMapBuilder.put("tag", tag);
+ }
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return PROJECT_LOCATION_REPOSITORY_PACKAGE_TAG.instantiate(
+ "project",
+ project,
+ "location",
+ location,
+ "repository",
+ repository,
+ "package",
+ package_,
+ "tag",
+ tag);
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o != null && getClass() == o.getClass()) {
+ TagName that = ((TagName) o);
+ return Objects.equals(this.project, that.project)
+ && Objects.equals(this.location, that.location)
+ && Objects.equals(this.repository, that.repository)
+ && Objects.equals(this.package_, that.package_)
+ && Objects.equals(this.tag, that.tag);
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= Objects.hashCode(project);
+ h *= 1000003;
+ h ^= Objects.hashCode(location);
+ h *= 1000003;
+ h ^= Objects.hashCode(repository);
+ h *= 1000003;
+ h ^= Objects.hashCode(package_);
+ h *= 1000003;
+ h ^= Objects.hashCode(tag);
+ return h;
+ }
+
+ /**
+ * Builder for
+ * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}.
+ */
+ public static class Builder {
+ private String project;
+ private String location;
+ private String repository;
+ private String package_;
+ private String tag;
+
+ protected Builder() {}
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public String getRepository() {
+ return repository;
+ }
+
+ public String getPackage() {
+ return package_;
+ }
+
+ public String getTag() {
+ return tag;
+ }
+
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ public Builder setLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ public Builder setRepository(String repository) {
+ this.repository = repository;
+ return this;
+ }
+
+ public Builder setPackage(String package_) {
+ this.package_ = package_;
+ return this;
+ }
+
+ public Builder setTag(String tag) {
+ this.tag = tag;
+ return this;
+ }
+
+ private Builder(TagName tagName) {
+ this.project = tagName.project;
+ this.location = tagName.location;
+ this.repository = tagName.repository;
+ this.package_ = tagName.package_;
+ this.tag = tagName.tag;
+ }
+
+ public TagName build() {
+ return new TagName(this);
+ }
+ }
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
index 347c3ef17cc0..691638efd8d6 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
@@ -42,7 +42,7 @@ message DockerImage {
// Required. registry_location, project_id, repository_name and image id forms
// a unique image
- // name:`projects//locations//repository//dockerImages/`.
+ // name:`projects//locations//repositories//dockerImages/`.
// For example,
// "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
// nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -84,6 +84,50 @@ message DockerImage {
// Output only. The time when the docker image was last updated.
google.protobuf.Timestamp update_time = 8
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // ArtifactType of this image, e.g. "application/vnd.example+type".
+ // If the `subject_digest` is set and no `artifact_type` is given, the
+ // `media_type` will be considered as the `artifact_type`. This field is
+ // returned as the `metadata.artifactType` field in the Version resource.
+ string artifact_type = 9;
+
+ // Optional. For multi-arch images (manifest lists), this field contains the
+ // list of image manifests.
+ repeated ImageManifest image_manifests = 11
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Details of a single image manifest within a multi-arch image.
+message ImageManifest {
+ // Optional. The CPU architecture of the image.
+ // Values are provided by the Docker client and are not validated by Artifact
+ // Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+ // "riscv64", "mips64le", etc.
+ string architecture = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The operating system of the image.
+ // Values are provided by the Docker client and are not validated by Artifact
+ // Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+ string os = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The manifest digest, in the format "sha256:".
+ string digest = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The media type of the manifest, e.g.,
+ // "application/vnd.docker.distribution.manifest.v2+json"
+ string media_type = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The OS version of the image, for example on Windows
+ // `10.0.14393.1066`.
+ string os_version = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The required OS features for the image, for example on Windows
+ // `win32k`.
+ repeated string os_features = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The variant of the CPU in the image, for example `v7` to specify
+ // ARMv7 when architecture is `arm`.
+ string variant = 7 [(google.api.field_behavior) = OPTIONAL];
}
// The request to list docker images.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto
new file mode 100644
index 000000000000..2e89c126a96e
--- /dev/null
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto
@@ -0,0 +1,99 @@
+// Copyright 2025 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
+//
+// http://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.
+
+syntax = "proto3";
+
+package google.devtools.artifactregistry.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/devtools/artifactregistry/v1/file.proto";
+import "google/devtools/artifactregistry/v1/version.proto";
+
+option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
+option go_package = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "ExportProto";
+option java_package = "com.google.devtools.artifactregistry.v1";
+option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1";
+option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
+
+// The request for exporting an artifact to a destination.
+message ExportArtifactRequest {
+ // The artifact to be exported.
+ oneof source_artifact {
+ // The artifact version to export.
+ // Format:
+ // projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+ string source_version = 2 [(google.api.resource_reference) = {
+ type: "artifactregistry.googleapis.com/Version"
+ }];
+
+ // The artifact tag to export.
+ // Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+ string source_tag = 4 [(google.api.resource_reference) = {
+ type: "artifactregistry.googleapis.com/Tag"
+ }];
+ }
+
+ // The destination to export the artifact to.
+ oneof destination {
+ // The Cloud Storage path to export the artifact to. Should start with the
+ // bucket name, and optionally have a directory path. Examples:
+ // `dst_bucket`, `dst_bucket/sub_dir`.
+ // Existing objects with the same path will be overwritten.
+ string gcs_path = 3;
+ }
+
+ // Required. The repository of the artifact to export.
+ // Format: projects/{project}/locations/{location}/repositories/{repository}
+ string repository = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ }
+ ];
+}
+
+// The response for exporting an artifact to a destination.
+message ExportArtifactResponse {
+ // The exported version. Should be the same as the request version with
+ // fingerprint resource name.
+ Version exported_version = 1;
+}
+
+// The LRO metadata for exporting an artifact.
+message ExportArtifactMetadata {
+ // The exported artifact file.
+ message ExportedFile {
+ // The destination the file was exported to.
+ oneof destination {
+ // Cloud Storage Object path of the exported file. Examples:
+ // `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+ string gcs_object_path = 2;
+ }
+
+ // Name of the exported artifact file.
+ // Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+ string name = 1 [(google.api.resource_reference) = {
+ type: "artifactregistry.googleapis.com/File"
+ }];
+
+ // The hashes of the file content.
+ repeated Hash hashes = 3;
+ }
+
+ // The exported artifact files.
+ repeated ExportedFile exported_files = 1;
+}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto
index 4cdc353f6b5b..40fc30a008a7 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto
@@ -470,7 +470,8 @@ message Repository {
message VulnerabilityScanningConfig {
// Config for vulnerability scanning of resources in this repository.
enum EnablementConfig {
- // Not set. This will be treated as INHERITED.
+ // Not set. This will be treated as INHERITED for Docker repositories and
+ // DISABLED for non-Docker repositories.
ENABLEMENT_CONFIG_UNSPECIFIED = 0;
// Scanning is Enabled, but dependent on API enablement.
@@ -547,6 +548,9 @@ message Repository {
// Generic package format.
GENERIC = 11;
+
+ // Ruby package format.
+ RUBY = 12;
}
// The mode configures the repository to serve artifacts from different
@@ -633,7 +637,7 @@ message Repository {
// use this to calculate storage costs.
int64 size_bytes = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. If set, the repository satisfies physical zone separation.
+ // Output only. Whether or not this repository satisfies PZS.
bool satisfies_pzs = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
// Optional. If true, the cleanup pipeline is prevented from deleting versions
@@ -649,7 +653,7 @@ message Repository {
// error rather than defaulting to standard.
bool disallow_unspecified_mode = 21 [(google.api.field_behavior) = OPTIONAL];
- // Output only. If set, the repository satisfies physical zone isolation.
+ // Output only. Whether or not this repository satisfies PZI.
bool satisfies_pzi = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The repository endpoint, for example:
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto
index 76b8ff5c3f5c..7c1720201143 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto
@@ -21,6 +21,7 @@ import "google/api/client.proto";
import "google/devtools/artifactregistry/v1/apt_artifact.proto";
import "google/devtools/artifactregistry/v1/artifact.proto";
import "google/devtools/artifactregistry/v1/attachment.proto";
+import "google/devtools/artifactregistry/v1/export.proto";
import "google/devtools/artifactregistry/v1/file.proto";
import "google/devtools/artifactregistry/v1/package.proto";
import "google/devtools/artifactregistry/v1/repository.proto";
@@ -541,6 +542,19 @@ service ArtifactRegistry {
metadata_type: "google.devtools.artifactregistry.v1.OperationMetadata"
};
}
+
+ // Exports an artifact.
+ rpc ExportArtifact(ExportArtifactRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{repository=projects/*/locations/*/repositories/*}:exportArtifact"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "google.devtools.artifactregistry.v1.ExportArtifactResponse"
+ metadata_type: "google.devtools.artifactregistry.v1.ExportArtifactMetadata"
+ };
+ }
}
// Metadata type for longrunning-operations, currently empty.
diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifact.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifact.java
new file mode 100644
index 000000000000..5c57e79d020e
--- /dev/null
+++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifact.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2025 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.
+ */
+
+package com.google.devtools.artifactregistry.v1.samples;
+
+// [START artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_async]
+import com.google.api.core.ApiFuture;
+import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient;
+import com.google.devtools.artifactregistry.v1.ExportArtifactRequest;
+import com.google.devtools.artifactregistry.v1.RepositoryName;
+import com.google.longrunning.Operation;
+
+public class AsyncExportArtifact {
+
+ public static void main(String[] args) throws Exception {
+ asyncExportArtifact();
+ }
+
+ public static void asyncExportArtifact() throws Exception {
+ // 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 (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+ ExportArtifactRequest request =
+ ExportArtifactRequest.newBuilder()
+ .setRepository(
+ RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ .build();
+ ApiFuture future =
+ artifactRegistryClient.exportArtifactCallable().futureCall(request);
+ // Do something.
+ Operation response = future.get();
+ }
+ }
+}
+// [END artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_async]
diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifactLRO.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifactLRO.java
new file mode 100644
index 000000000000..739277273aa5
--- /dev/null
+++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifactLRO.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2025 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.
+ */
+
+package com.google.devtools.artifactregistry.v1.samples;
+
+// [START artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_LRO_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient;
+import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata;
+import com.google.devtools.artifactregistry.v1.ExportArtifactRequest;
+import com.google.devtools.artifactregistry.v1.ExportArtifactResponse;
+import com.google.devtools.artifactregistry.v1.RepositoryName;
+
+public class AsyncExportArtifactLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncExportArtifactLRO();
+ }
+
+ public static void asyncExportArtifactLRO() throws Exception {
+ // 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 (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+ ExportArtifactRequest request =
+ ExportArtifactRequest.newBuilder()
+ .setRepository(
+ RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ .build();
+ OperationFuture future =
+ artifactRegistryClient.exportArtifactOperationCallable().futureCall(request);
+ // Do something.
+ ExportArtifactResponse response = future.get();
+ }
+ }
+}
+// [END artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_LRO_async]
diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/SyncExportArtifact.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/SyncExportArtifact.java
new file mode 100644
index 000000000000..d9881e0448d1
--- /dev/null
+++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/SyncExportArtifact.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2025 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.
+ */
+
+package com.google.devtools.artifactregistry.v1.samples;
+
+// [START artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_sync]
+import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient;
+import com.google.devtools.artifactregistry.v1.ExportArtifactRequest;
+import com.google.devtools.artifactregistry.v1.ExportArtifactResponse;
+import com.google.devtools.artifactregistry.v1.RepositoryName;
+
+public class SyncExportArtifact {
+
+ public static void main(String[] args) throws Exception {
+ syncExportArtifact();
+ }
+
+ public static void syncExportArtifact() throws Exception {
+ // 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 (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+ ExportArtifactRequest request =
+ ExportArtifactRequest.newBuilder()
+ .setRepository(
+ RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ .build();
+ ExportArtifactResponse response = artifactRegistryClient.exportArtifactAsync(request).get();
+ }
+ }
+}
+// [END artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_sync]
diff --git a/java-asset/README.md b/java-asset/README.md
index c34b332c470d..96cb3d0cf9f8 100644
--- a/java-asset/README.md
+++ b/java-asset/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-asset
- 3.82.0
+ 3.84.1
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-asset:3.82.0'
+implementation 'com.google.cloud:google-cloud-asset:3.84.1'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.82.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.84.1"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.82.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.84.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md
index 3d7c66b115aa..98d687215358 100644
--- a/java-assured-workloads/README.md
+++ b/java-assured-workloads/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-assured-workloads
- 2.78.0
+ 2.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-assured-workloads:2.78.0'
+implementation 'com.google.cloud:google-cloud-assured-workloads:2.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.80.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-automl/README.md b/java-automl/README.md
index 058ee8fc4d85..cb07a8e8a903 100644
--- a/java-automl/README.md
+++ b/java-automl/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-automl
- 2.78.0
+ 2.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-automl:2.78.0'
+implementation 'com.google.cloud:google-cloud-automl:2.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.80.0"
```
## Authentication
@@ -205,7 +205,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-backupdr/README.md b/java-backupdr/README.md
index c8bc5f95f31e..42ce9055a71f 100644
--- a/java-backupdr/README.md
+++ b/java-backupdr/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-backupdr
- 0.37.0
+ 0.39.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-backupdr:0.37.0'
+implementation 'com.google.cloud:google-cloud-backupdr:0.39.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.37.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.39.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.37.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.39.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java
index c5a7a7beb3eb..77278f55e808 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java
+++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java
@@ -3889,6 +3889,7 @@ public final OperationFuture restoreBa
* "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
* .toString())
* .setRequestId("requestId693933066")
+ * .setClearOverridesFieldMask(FieldMask.newBuilder().build())
* .build();
* RestoreBackupResponse response = backupDRClient.restoreBackupAsync(request).get();
* }
@@ -3922,6 +3923,7 @@ public final OperationFuture restoreBa
* "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
* .toString())
* .setRequestId("requestId693933066")
+ * .setClearOverridesFieldMask(FieldMask.newBuilder().build())
* .build();
* OperationFuture future =
* backupDRClient.restoreBackupOperationCallable().futureCall(request);
@@ -3955,6 +3957,7 @@ public final OperationFuture restoreBa
* "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
* .toString())
* .setRequestId("requestId693933066")
+ * .setClearOverridesFieldMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture future = backupDRClient.restoreBackupCallable().futureCall(request);
* // Do something.
diff --git a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json
index 7f2583e5cd55..9dd6281c8bd1 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json
+++ b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json
@@ -944,6 +944,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.backupdr.v1.BackupVault$BackupRetentionInheritance",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.backupdr.v1.BackupVault$Builder",
"queryAllDeclaredConstructors": true,
@@ -953,6 +962,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.backupdr.v1.BackupVault$EncryptionConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.backupdr.v1.BackupVault$EncryptionConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.backupdr.v1.BackupVault$State",
"queryAllDeclaredConstructors": true,
diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java
index 9c4cfbf7d367..ccc7a9143bd0 100644
--- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java
+++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java
@@ -585,6 +585,7 @@ public void createBackupVaultTest() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -652,6 +653,7 @@ public void createBackupVaultTest2() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -919,6 +921,7 @@ public void getBackupVaultTest() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
@@ -976,6 +979,7 @@ public void getBackupVaultTest2() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
@@ -1033,6 +1037,7 @@ public void updateBackupVaultTest() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1058,6 +1063,7 @@ public void updateBackupVaultTest() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1103,6 +1109,7 @@ public void updateBackupVaultExceptionTest() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateBackupVaultAsync(backupVault, updateMask).get();
@@ -1740,6 +1747,7 @@ public void getBackupTest() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
mockService.addResponse(expectedResponse);
@@ -1802,6 +1810,7 @@ public void getBackupTest2() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
mockService.addResponse(expectedResponse);
@@ -1864,6 +1873,7 @@ public void updateBackupTest() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1892,6 +1902,7 @@ public void updateBackupTest() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1940,6 +1951,7 @@ public void updateBackupExceptionTest() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateBackupAsync(backup, updateMask).get();
@@ -1969,6 +1981,7 @@ public void deleteBackupTest() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -2036,6 +2049,7 @@ public void deleteBackupTest2() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
Operation resultOperation =
Operation.newBuilder()
diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java
index 0814316cef70..130624e35a37 100644
--- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java
+++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java
@@ -565,6 +565,7 @@ public void createBackupVaultTest() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -631,6 +632,7 @@ public void createBackupVaultTest2() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -875,6 +877,7 @@ public void getBackupVaultTest() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
mockBackupDR.addResponse(expectedResponse);
@@ -926,6 +929,7 @@ public void getBackupVaultTest2() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
mockBackupDR.addResponse(expectedResponse);
@@ -977,6 +981,7 @@ public void updateBackupVaultTest() throws Exception {
.setTotalStoredBytes(1181597162)
.setUid("uid115792")
.putAllAnnotations(new HashMap())
+ .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1564,6 +1569,7 @@ public void getBackupTest() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
mockBackupDR.addResponse(expectedResponse);
@@ -1620,6 +1626,7 @@ public void getBackupTest2() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
mockBackupDR.addResponse(expectedResponse);
@@ -1674,6 +1681,7 @@ public void updateBackupTest() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1739,6 +1747,7 @@ public void deleteBackupTest() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1803,6 +1812,7 @@ public void deleteBackupTest2() throws Exception {
.setResourceSizeBytes(-275424386)
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
+ .addAllKmsKeyVersions(new ArrayList())
.build();
Operation resultOperation =
Operation.newBuilder()
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java
index d8dfe0784e02..dfa5e41503a5 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java
@@ -42,11 +42,13 @@ private Backup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Backup() {
name_ = "";
description_ = "";
+ backupRetentionInheritance_ = 0;
etag_ = "";
state_ = 0;
serviceLocks_ = java.util.Collections.emptyList();
backupApplianceLocks_ = java.util.Collections.emptyList();
backupType_ = 0;
+ kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -2431,6 +2433,72 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild
: enforcedRetentionEndTime_;
}
+ public static final int BACKUP_RETENTION_INHERITANCE_FIELD_NUMBER = 30;
+ private int backupRetentionInheritance_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the backupRetentionInheritance field is set.
+ */
+ @java.lang.Override
+ public boolean hasBackupRetentionInheritance() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for backupRetentionInheritance.
+ */
+ @java.lang.Override
+ public int getBackupRetentionInheritanceValue() {
+ return backupRetentionInheritance_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The backupRetentionInheritance.
+ */
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance
+ getBackupRetentionInheritance() {
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance result =
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.forNumber(
+ backupRetentionInheritance_);
+ return result == null
+ ? com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.UNRECOGNIZED
+ : result;
+ }
+
public static final int EXPIRE_TIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp expireTime_;
@@ -2449,7 +2517,7 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild
*/
@java.lang.Override
public boolean hasExpireTime() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
@@ -2505,7 +2573,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
*/
@java.lang.Override
public boolean hasConsistencyTime() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
@@ -2567,7 +2635,7 @@ public com.google.protobuf.TimestampOrBuilder getConsistencyTimeOrBuilder() {
*/
@java.lang.Override
public boolean hasEtag() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -3225,7 +3293,7 @@ public long getResourceSizeBytes() {
*/
@java.lang.Override
public boolean hasSatisfiesPzs() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
@@ -3264,7 +3332,7 @@ public boolean getSatisfiesPzs() {
*/
@java.lang.Override
public boolean hasSatisfiesPzi() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
@@ -3348,6 +3416,86 @@ public com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrB
return com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance();
}
+ public static final int KMS_KEY_VERSIONS_FIELD_NUMBER = 33;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList kmsKeyVersions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyVersions.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList() {
+ return kmsKeyVersions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyVersions.
+ */
+ public int getKmsKeyVersionsCount() {
+ return kmsKeyVersions_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyVersions at the given index.
+ */
+ public java.lang.String getKmsKeyVersions(int index) {
+ return kmsKeyVersions_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyVersions at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index) {
+ return kmsKeyVersions_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3379,13 +3527,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getEnforcedRetentionEndTime());
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(7, getExpireTime());
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(9, getConsistencyTime());
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_);
}
if (state_ != com.google.cloud.backupdr.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) {
@@ -3415,10 +3563,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (resourceSizeBytes_ != 0L) {
output.writeInt64(23, resourceSizeBytes_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(24, satisfiesPzs_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(25, satisfiesPzi_);
}
if (backupPropertiesCase_ == 26) {
@@ -3429,9 +3577,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
28, (com.google.cloud.backupdr.v1.DiskBackupProperties) backupProperties_);
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeEnum(30, backupRetentionInheritance_);
+ }
if (sourceResourceCase_ == 31) {
output.writeMessage(31, (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_);
}
+ for (int i = 0; i < kmsKeyVersions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 33, kmsKeyVersions_.getRaw(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -3468,13 +3622,13 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, getEnforcedRetentionEndTime());
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExpireTime());
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getConsistencyTime());
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_);
}
if (state_ != com.google.cloud.backupdr.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) {
@@ -3510,10 +3664,10 @@ public int getSerializedSize() {
if (resourceSizeBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, resourceSizeBytes_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, satisfiesPzi_);
}
if (backupPropertiesCase_ == 26) {
@@ -3527,11 +3681,23 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
28, (com.google.cloud.backupdr.v1.DiskBackupProperties) backupProperties_);
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(30, backupRetentionInheritance_);
+ }
if (sourceResourceCase_ == 31) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
31, (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < kmsKeyVersions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(kmsKeyVersions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 2 * getKmsKeyVersionsList().size();
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3565,6 +3731,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasEnforcedRetentionEndTime()) {
if (!getEnforcedRetentionEndTime().equals(other.getEnforcedRetentionEndTime())) return false;
}
+ if (hasBackupRetentionInheritance() != other.hasBackupRetentionInheritance()) return false;
+ if (hasBackupRetentionInheritance()) {
+ if (backupRetentionInheritance_ != other.backupRetentionInheritance_) return false;
+ }
if (hasExpireTime() != other.hasExpireTime()) return false;
if (hasExpireTime()) {
if (!getExpireTime().equals(other.getExpireTime())) return false;
@@ -3590,6 +3760,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasSatisfiesPzi()) {
if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false;
}
+ if (!getKmsKeyVersionsList().equals(other.getKmsKeyVersionsList())) return false;
if (!getBackupPropertiesCase().equals(other.getBackupPropertiesCase())) return false;
switch (backupPropertiesCase_) {
case 19:
@@ -3659,6 +3830,10 @@ public int hashCode() {
hash = (37 * hash) + ENFORCED_RETENTION_END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEnforcedRetentionEndTime().hashCode();
}
+ if (hasBackupRetentionInheritance()) {
+ hash = (37 * hash) + BACKUP_RETENTION_INHERITANCE_FIELD_NUMBER;
+ hash = (53 * hash) + backupRetentionInheritance_;
+ }
if (hasExpireTime()) {
hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getExpireTime().hashCode();
@@ -3693,6 +3868,10 @@ public int hashCode() {
hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi());
}
+ if (getKmsKeyVersionsCount() > 0) {
+ hash = (37 * hash) + KMS_KEY_VERSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getKmsKeyVersionsList().hashCode();
+ }
switch (backupPropertiesCase_) {
case 19:
hash = (37 * hash) + COMPUTE_INSTANCE_BACKUP_PROPERTIES_FIELD_NUMBER;
@@ -3923,6 +4102,7 @@ public Builder clear() {
enforcedRetentionEndTimeBuilder_.dispose();
enforcedRetentionEndTimeBuilder_ = null;
}
+ backupRetentionInheritance_ = 0;
expireTime_ = null;
if (expireTimeBuilder_ != null) {
expireTimeBuilder_.dispose();
@@ -3941,14 +4121,14 @@ public Builder clear() {
serviceLocks_ = null;
serviceLocksBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
if (backupApplianceLocksBuilder_ == null) {
backupApplianceLocks_ = java.util.Collections.emptyList();
} else {
backupApplianceLocks_ = null;
backupApplianceLocksBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
if (computeInstanceBackupPropertiesBuilder_ != null) {
computeInstanceBackupPropertiesBuilder_.clear();
}
@@ -3971,6 +4151,7 @@ public Builder clear() {
if (gcpResourceBuilder_ != null) {
gcpResourceBuilder_.clear();
}
+ kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList();
backupPropertiesCase_ = 0;
backupProperties_ = null;
planInfoCase_ = 0;
@@ -4014,18 +4195,18 @@ public com.google.cloud.backupdr.v1.Backup buildPartial() {
private void buildPartialRepeatedFields(com.google.cloud.backupdr.v1.Backup result) {
if (serviceLocksBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
serviceLocks_ = java.util.Collections.unmodifiableList(serviceLocks_);
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
}
result.serviceLocks_ = serviceLocks_;
} else {
result.serviceLocks_ = serviceLocksBuilder_.build();
}
if (backupApplianceLocksBuilder_ == null) {
- if (((bitField0_ & 0x00000800) != 0)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
backupApplianceLocks_ = java.util.Collections.unmodifiableList(backupApplianceLocks_);
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
}
result.backupApplianceLocks_ = backupApplianceLocks_;
} else {
@@ -4063,34 +4244,42 @@ private void buildPartial0(com.google.cloud.backupdr.v1.Backup result) {
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
- result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
+ result.backupRetentionInheritance_ = backupRetentionInheritance_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
- result.consistencyTime_ =
- consistencyTimeBuilder_ == null ? consistencyTime_ : consistencyTimeBuilder_.build();
+ result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
- result.etag_ = etag_;
+ result.consistencyTime_ =
+ consistencyTimeBuilder_ == null ? consistencyTime_ : consistencyTimeBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.etag_ = etag_;
+ to_bitField0_ |= 0x00000080;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
result.state_ = state_;
}
- if (((from_bitField0_ & 0x00010000) != 0)) {
+ if (((from_bitField0_ & 0x00020000) != 0)) {
result.backupType_ = backupType_;
}
- if (((from_bitField0_ & 0x00040000) != 0)) {
+ if (((from_bitField0_ & 0x00080000) != 0)) {
result.resourceSizeBytes_ = resourceSizeBytes_;
}
- if (((from_bitField0_ & 0x00080000) != 0)) {
+ if (((from_bitField0_ & 0x00100000) != 0)) {
result.satisfiesPzs_ = satisfiesPzs_;
- to_bitField0_ |= 0x00000080;
+ to_bitField0_ |= 0x00000100;
}
- if (((from_bitField0_ & 0x00100000) != 0)) {
+ if (((from_bitField0_ & 0x00200000) != 0)) {
result.satisfiesPzi_ = satisfiesPzi_;
- to_bitField0_ |= 0x00000100;
+ to_bitField0_ |= 0x00000200;
+ }
+ if (((from_bitField0_ & 0x00800000) != 0)) {
+ kmsKeyVersions_.makeImmutable();
+ result.kmsKeyVersions_ = kmsKeyVersions_;
}
result.bitField0_ |= to_bitField0_;
}
@@ -4188,6 +4377,9 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) {
if (other.hasEnforcedRetentionEndTime()) {
mergeEnforcedRetentionEndTime(other.getEnforcedRetentionEndTime());
}
+ if (other.hasBackupRetentionInheritance()) {
+ setBackupRetentionInheritance(other.getBackupRetentionInheritance());
+ }
if (other.hasExpireTime()) {
mergeExpireTime(other.getExpireTime());
}
@@ -4196,7 +4388,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) {
}
if (other.hasEtag()) {
etag_ = other.etag_;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
}
if (other.state_ != 0) {
@@ -4206,7 +4398,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) {
if (!other.serviceLocks_.isEmpty()) {
if (serviceLocks_.isEmpty()) {
serviceLocks_ = other.serviceLocks_;
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureServiceLocksIsMutable();
serviceLocks_.addAll(other.serviceLocks_);
@@ -4219,7 +4411,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) {
serviceLocksBuilder_.dispose();
serviceLocksBuilder_ = null;
serviceLocks_ = other.serviceLocks_;
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
serviceLocksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getServiceLocksFieldBuilder()
@@ -4233,7 +4425,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) {
if (!other.backupApplianceLocks_.isEmpty()) {
if (backupApplianceLocks_.isEmpty()) {
backupApplianceLocks_ = other.backupApplianceLocks_;
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.addAll(other.backupApplianceLocks_);
@@ -4246,7 +4438,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) {
backupApplianceLocksBuilder_.dispose();
backupApplianceLocksBuilder_ = null;
backupApplianceLocks_ = other.backupApplianceLocks_;
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
backupApplianceLocksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getBackupApplianceLocksFieldBuilder()
@@ -4268,6 +4460,16 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) {
if (other.hasSatisfiesPzi()) {
setSatisfiesPzi(other.getSatisfiesPzi());
}
+ if (!other.kmsKeyVersions_.isEmpty()) {
+ if (kmsKeyVersions_.isEmpty()) {
+ kmsKeyVersions_ = other.kmsKeyVersions_;
+ bitField0_ |= 0x00800000;
+ } else {
+ ensureKmsKeyVersionsIsMutable();
+ kmsKeyVersions_.addAll(other.kmsKeyVersions_);
+ }
+ onChanged();
+ }
switch (other.getBackupPropertiesCase()) {
case COMPUTE_INSTANCE_BACKUP_PROPERTIES:
{
@@ -4388,25 +4590,25 @@ public Builder mergeFrom(
case 58:
{
input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 58
case 74:
{
input.readMessage(getConsistencyTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 74
case 90:
{
etag_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 90
case 120:
{
state_ = input.readEnum();
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
break;
} // case 120
case 138:
@@ -4446,7 +4648,7 @@ public Builder mergeFrom(
case 160:
{
backupType_ = input.readEnum();
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
break;
} // case 160
case 170:
@@ -4467,19 +4669,19 @@ public Builder mergeFrom(
case 184:
{
resourceSizeBytes_ = input.readInt64();
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
break;
} // case 184
case 192:
{
satisfiesPzs_ = input.readBool();
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
break;
} // case 192
case 200:
{
satisfiesPzi_ = input.readBool();
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
break;
} // case 200
case 210:
@@ -4497,12 +4699,25 @@ public Builder mergeFrom(
backupPropertiesCase_ = 28;
break;
} // case 226
+ case 240:
+ {
+ backupRetentionInheritance_ = input.readEnum();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 240
case 250:
{
input.readMessage(getGcpResourceFieldBuilder().getBuilder(), extensionRegistry);
sourceResourceCase_ = 31;
break;
} // case 250
+ case 266:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureKmsKeyVersionsIsMutable();
+ kmsKeyVersions_.add(s);
+ break;
+ } // case 266
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -5648,6 +5863,140 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild
return enforcedRetentionEndTimeBuilder_;
}
+ private int backupRetentionInheritance_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the backupRetentionInheritance field is set.
+ */
+ @java.lang.Override
+ public boolean hasBackupRetentionInheritance() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for backupRetentionInheritance.
+ */
+ @java.lang.Override
+ public int getBackupRetentionInheritanceValue() {
+ return backupRetentionInheritance_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for backupRetentionInheritance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBackupRetentionInheritanceValue(int value) {
+ backupRetentionInheritance_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The backupRetentionInheritance.
+ */
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance
+ getBackupRetentionInheritance() {
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance result =
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.forNumber(
+ backupRetentionInheritance_);
+ return result == null
+ ? com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The backupRetentionInheritance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBackupRetentionInheritance(
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ backupRetentionInheritance_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBackupRetentionInheritance() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ backupRetentionInheritance_ = 0;
+ onChanged();
+ return this;
+ }
+
private com.google.protobuf.Timestamp expireTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
@@ -5669,7 +6018,7 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild
* @return Whether the expireTime field is set.
*/
public boolean hasExpireTime() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -5715,7 +6064,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
} else {
expireTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -5737,7 +6086,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
} else {
expireTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -5755,7 +6104,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
*/
public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
if (expireTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
+ if (((bitField0_ & 0x00000080) != 0)
&& expireTime_ != null
&& expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getExpireTimeBuilder().mergeFrom(value);
@@ -5766,7 +6115,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
expireTimeBuilder_.mergeFrom(value);
}
if (expireTime_ != null) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
return this;
@@ -5784,7 +6133,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearExpireTime() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
expireTime_ = null;
if (expireTimeBuilder_ != null) {
expireTimeBuilder_.dispose();
@@ -5806,7 +6155,7 @@ public Builder clearExpireTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return getExpireTimeFieldBuilder().getBuilder();
}
@@ -5882,7 +6231,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
* @return Whether the consistencyTime field is set.
*/
public boolean hasConsistencyTime() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
@@ -5930,7 +6279,7 @@ public Builder setConsistencyTime(com.google.protobuf.Timestamp value) {
} else {
consistencyTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -5953,7 +6302,7 @@ public Builder setConsistencyTime(com.google.protobuf.Timestamp.Builder builderF
} else {
consistencyTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -5972,7 +6321,7 @@ public Builder setConsistencyTime(com.google.protobuf.Timestamp.Builder builderF
*/
public Builder mergeConsistencyTime(com.google.protobuf.Timestamp value) {
if (consistencyTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0)
+ if (((bitField0_ & 0x00000100) != 0)
&& consistencyTime_ != null
&& consistencyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getConsistencyTimeBuilder().mergeFrom(value);
@@ -5983,7 +6332,7 @@ public Builder mergeConsistencyTime(com.google.protobuf.Timestamp value) {
consistencyTimeBuilder_.mergeFrom(value);
}
if (consistencyTime_ != null) {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
return this;
@@ -6002,7 +6351,7 @@ public Builder mergeConsistencyTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearConsistencyTime() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
consistencyTime_ = null;
if (consistencyTimeBuilder_ != null) {
consistencyTimeBuilder_.dispose();
@@ -6025,7 +6374,7 @@ public Builder clearConsistencyTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getConsistencyTimeBuilder() {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return getConsistencyTimeFieldBuilder().getBuilder();
}
@@ -6096,7 +6445,7 @@ public com.google.protobuf.TimestampOrBuilder getConsistencyTimeOrBuilder() {
* @return Whether the etag field is set.
*/
public boolean hasEtag() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
@@ -6165,7 +6514,7 @@ public Builder setEtag(java.lang.String value) {
throw new NullPointerException();
}
etag_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -6184,7 +6533,7 @@ public Builder setEtag(java.lang.String value) {
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
@@ -6208,7 +6557,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
etag_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -6249,7 +6598,7 @@ public int getStateValue() {
*/
public Builder setStateValue(int value) {
state_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -6292,7 +6641,7 @@ public Builder setState(com.google.cloud.backupdr.v1.Backup.State value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
state_ = value.getNumber();
onChanged();
return this;
@@ -6312,7 +6661,7 @@ public Builder setState(com.google.cloud.backupdr.v1.Backup.State value) {
* @return This builder for chaining.
*/
public Builder clearState() {
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
state_ = 0;
onChanged();
return this;
@@ -6322,10 +6671,10 @@ public Builder clearState() {
java.util.Collections.emptyList();
private void ensureServiceLocksIsMutable() {
- if (!((bitField0_ & 0x00000400) != 0)) {
+ if (!((bitField0_ & 0x00000800) != 0)) {
serviceLocks_ =
new java.util.ArrayList(serviceLocks_);
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
}
}
@@ -6584,7 +6933,7 @@ public Builder addAllServiceLocks(
public Builder clearServiceLocks() {
if (serviceLocksBuilder_ == null) {
serviceLocks_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
serviceLocksBuilder_.clear();
@@ -6734,7 +7083,7 @@ public com.google.cloud.backupdr.v1.BackupLock.Builder addServiceLocksBuilder(in
com.google.cloud.backupdr.v1.BackupLock,
com.google.cloud.backupdr.v1.BackupLock.Builder,
com.google.cloud.backupdr.v1.BackupLockOrBuilder>(
- serviceLocks_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean());
+ serviceLocks_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean());
serviceLocks_ = null;
}
return serviceLocksBuilder_;
@@ -6744,10 +7093,10 @@ public com.google.cloud.backupdr.v1.BackupLock.Builder addServiceLocksBuilder(in
java.util.Collections.emptyList();
private void ensureBackupApplianceLocksIsMutable() {
- if (!((bitField0_ & 0x00000800) != 0)) {
+ if (!((bitField0_ & 0x00001000) != 0)) {
backupApplianceLocks_ =
new java.util.ArrayList(backupApplianceLocks_);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
}
}
@@ -6997,7 +7346,7 @@ public Builder addAllBackupApplianceLocks(
public Builder clearBackupApplianceLocks() {
if (backupApplianceLocksBuilder_ == null) {
backupApplianceLocks_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
backupApplianceLocksBuilder_.clear();
@@ -7144,7 +7493,7 @@ public com.google.cloud.backupdr.v1.BackupLock.Builder addBackupApplianceLocksBu
com.google.cloud.backupdr.v1.BackupLock.Builder,
com.google.cloud.backupdr.v1.BackupLockOrBuilder>(
backupApplianceLocks_,
- ((bitField0_ & 0x00000800) != 0),
+ ((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
backupApplianceLocks_ = null;
@@ -8165,7 +8514,7 @@ public int getBackupTypeValue() {
*/
public Builder setBackupTypeValue(int value) {
backupType_ = value;
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -8208,7 +8557,7 @@ public Builder setBackupType(com.google.cloud.backupdr.v1.Backup.BackupType valu
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
backupType_ = value.getNumber();
onChanged();
return this;
@@ -8228,7 +8577,7 @@ public Builder setBackupType(com.google.cloud.backupdr.v1.Backup.BackupType valu
* @return This builder for chaining.
*/
public Builder clearBackupType() {
- bitField0_ = (bitField0_ & ~0x00010000);
+ bitField0_ = (bitField0_ & ~0x00020000);
backupType_ = 0;
onChanged();
return this;
@@ -8508,7 +8857,7 @@ public long getResourceSizeBytes() {
public Builder setResourceSizeBytes(long value) {
resourceSizeBytes_ = value;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -8525,7 +8874,7 @@ public Builder setResourceSizeBytes(long value) {
* @return This builder for chaining.
*/
public Builder clearResourceSizeBytes() {
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00080000);
resourceSizeBytes_ = 0L;
onChanged();
return this;
@@ -8548,7 +8897,7 @@ public Builder clearResourceSizeBytes() {
*/
@java.lang.Override
public boolean hasSatisfiesPzs() {
- return ((bitField0_ & 0x00080000) != 0);
+ return ((bitField0_ & 0x00100000) != 0);
}
/**
@@ -8586,7 +8935,7 @@ public boolean getSatisfiesPzs() {
public Builder setSatisfiesPzs(boolean value) {
satisfiesPzs_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -8605,7 +8954,7 @@ public Builder setSatisfiesPzs(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzs() {
- bitField0_ = (bitField0_ & ~0x00080000);
+ bitField0_ = (bitField0_ & ~0x00100000);
satisfiesPzs_ = false;
onChanged();
return this;
@@ -8628,7 +8977,7 @@ public Builder clearSatisfiesPzs() {
*/
@java.lang.Override
public boolean hasSatisfiesPzi() {
- return ((bitField0_ & 0x00100000) != 0);
+ return ((bitField0_ & 0x00200000) != 0);
}
/**
@@ -8666,7 +9015,7 @@ public boolean getSatisfiesPzi() {
public Builder setSatisfiesPzi(boolean value) {
satisfiesPzi_ = value;
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
onChanged();
return this;
}
@@ -8685,7 +9034,7 @@ public Builder setSatisfiesPzi(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzi() {
- bitField0_ = (bitField0_ & ~0x00100000);
+ bitField0_ = (bitField0_ & ~0x00200000);
satisfiesPzi_ = false;
onChanged();
return this;
@@ -8937,6 +9286,216 @@ public com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrB
return gcpResourceBuilder_;
}
+ private com.google.protobuf.LazyStringArrayList kmsKeyVersions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureKmsKeyVersionsIsMutable() {
+ if (!kmsKeyVersions_.isModifiable()) {
+ kmsKeyVersions_ = new com.google.protobuf.LazyStringArrayList(kmsKeyVersions_);
+ }
+ bitField0_ |= 0x00800000;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyVersions.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList() {
+ kmsKeyVersions_.makeImmutable();
+ return kmsKeyVersions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyVersions.
+ */
+ public int getKmsKeyVersionsCount() {
+ return kmsKeyVersions_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyVersions at the given index.
+ */
+ public java.lang.String getKmsKeyVersions(int index) {
+ return kmsKeyVersions_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyVersions at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index) {
+ return kmsKeyVersions_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The kmsKeyVersions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyVersions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyVersionsIsMutable();
+ kmsKeyVersions_.set(index, value);
+ bitField0_ |= 0x00800000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The kmsKeyVersions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyVersions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyVersionsIsMutable();
+ kmsKeyVersions_.add(value);
+ bitField0_ |= 0x00800000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param values The kmsKeyVersions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllKmsKeyVersions(java.lang.Iterable values) {
+ ensureKmsKeyVersionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kmsKeyVersions_);
+ bitField0_ |= 0x00800000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyVersions() {
+ kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00800000);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes of the kmsKeyVersions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyVersionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKmsKeyVersionsIsMutable();
+ kmsKeyVersions_.add(value);
+ bitField0_ |= 0x00800000;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java
index 2e33a83e41f0..53716eb6e901 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java
@@ -299,6 +299,55 @@ java.lang.String getLabelsOrDefault(
*/
com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuilder();
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the backupRetentionInheritance field is set.
+ */
+ boolean hasBackupRetentionInheritance();
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for backupRetentionInheritance.
+ */
+ int getBackupRetentionInheritanceValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. Setting for how the enforced retention end time is inherited.
+ * This value is copied from this backup's BackupVault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The backupRetentionInheritance.
+ */
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance
+ getBackupRetentionInheritance();
+
/**
*
*
@@ -965,6 +1014,72 @@ java.lang.String getLabelsOrDefault(
*/
com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyVersions.
+ */
+ java.util.List getKmsKeyVersionsList();
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyVersions.
+ */
+ int getKmsKeyVersionsCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyVersions at the given index.
+ */
+ java.lang.String getKmsKeyVersions(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. The list of KMS key versions used to encrypt the
+ * backup.
+ *
+ *
+ *
+ * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyVersions at the given index.
+ */
+ com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index);
+
com.google.cloud.backupdr.v1.Backup.BackupPropertiesCase getBackupPropertiesCase();
com.google.cloud.backupdr.v1.Backup.PlanInfoCase getPlanInfoCase();
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java
index b275defefec2..ff6a589513e2 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java
@@ -42,6 +42,7 @@ private BackupVault(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private BackupVault() {
name_ = "";
description_ = "";
+ backupRetentionInheritance_ = 0;
etag_ = "";
state_ = 0;
serviceAccount_ = "";
@@ -84,6 +85,188 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
com.google.cloud.backupdr.v1.BackupVault.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * How a backup's enforced retention end time is inherited.
+ *
+ *
+ * Protobuf enum {@code google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance}
+ */
+ public enum BackupRetentionInheritance implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Inheritance behavior not set. This will default to
+ * `INHERIT_VAULT_RETENTION`.
+ *
+ *
+ * BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0;
+ */
+ BACKUP_RETENTION_INHERITANCE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * The enforced retention end time of a backup will be inherited from the
+ * backup vault's `backup_minimum_enforced_retention_duration` field.
+ *
+ * This is the default behavior.
+ *
+ *
+ * INHERIT_VAULT_RETENTION = 1;
+ */
+ INHERIT_VAULT_RETENTION(1),
+ /**
+ *
+ *
+ *
+ * The enforced retention end time of a backup will always match the expire
+ * time of the backup.
+ *
+ * If this is set, the backup's enforced retention end time will be set to
+ * match the expire time during creation of the backup. When updating, the
+ * ERET and expire time must be updated together and have the same value.
+ * Invalid update requests will be rejected by the server.
+ *
+ *
+ * MATCH_BACKUP_EXPIRE_TIME = 2;
+ */
+ MATCH_BACKUP_EXPIRE_TIME(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Inheritance behavior not set. This will default to
+ * `INHERIT_VAULT_RETENTION`.
+ *
+ *
+ * BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0;
+ */
+ public static final int BACKUP_RETENTION_INHERITANCE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * The enforced retention end time of a backup will be inherited from the
+ * backup vault's `backup_minimum_enforced_retention_duration` field.
+ *
+ * This is the default behavior.
+ *
+ *
+ * INHERIT_VAULT_RETENTION = 1;
+ */
+ public static final int INHERIT_VAULT_RETENTION_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * The enforced retention end time of a backup will always match the expire
+ * time of the backup.
+ *
+ * If this is set, the backup's enforced retention end time will be set to
+ * match the expire time during creation of the backup. When updating, the
+ * ERET and expire time must be updated together and have the same value.
+ * Invalid update requests will be rejected by the server.
+ *
+ *
+ * MATCH_BACKUP_EXPIRE_TIME = 2;
+ */
+ public static final int MATCH_BACKUP_EXPIRE_TIME_VALUE = 2;
+
+ 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 BackupRetentionInheritance 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 BackupRetentionInheritance forNumber(int value) {
+ switch (value) {
+ case 0:
+ return BACKUP_RETENTION_INHERITANCE_UNSPECIFIED;
+ case 1:
+ return INHERIT_VAULT_RETENTION;
+ case 2:
+ return MATCH_BACKUP_EXPIRE_TIME;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public BackupRetentionInheritance findValueByNumber(int number) {
+ return BackupRetentionInheritance.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final BackupRetentionInheritance[] VALUES = values();
+
+ public static BackupRetentionInheritance valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private BackupRetentionInheritance(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance)
+ }
+
/**
*
*
@@ -288,7 +471,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(0);
+ return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(1);
}
private static final State[] VALUES = values();
@@ -501,7 +684,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(1);
+ return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(2);
}
private static final AccessRestriction[] VALUES = values();
@@ -526,6 +709,774 @@ private AccessRestriction(int value) {
// @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.BackupVault.AccessRestriction)
}
+ public interface EncryptionConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.BackupVault.EncryptionConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the kmsKeyName field is set.
+ */
+ boolean hasKmsKeyName();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The kmsKeyName.
+ */
+ java.lang.String getKmsKeyName();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ com.google.protobuf.ByteString getKmsKeyNameBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * Message describing the EncryptionConfig of backup vault.
+ * This determines how data within the vault is encrypted at rest.
+ *
+ *
+ * Protobuf type {@code google.cloud.backupdr.v1.BackupVault.EncryptionConfig}
+ */
+ public static final class EncryptionConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.BackupVault.EncryptionConfig)
+ EncryptionConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use EncryptionConfig.newBuilder() to construct.
+ private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private EncryptionConfig() {
+ kmsKeyName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new EncryptionConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.backupdr.v1.BackupVaultProto
+ .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.backupdr.v1.BackupVaultProto
+ .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.class,
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int KMS_KEY_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object kmsKeyName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the kmsKeyName field is set.
+ */
+ @java.lang.Override
+ public boolean hasKmsKeyName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The kmsKeyName.
+ */
+ @java.lang.Override
+ public java.lang.String getKmsKeyName() {
+ java.lang.Object ref = kmsKeyName_;
+ 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();
+ kmsKeyName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
+ java.lang.Object ref = kmsKeyName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kmsKeyName_ = 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 (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyName_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsKeyName_);
+ }
+ 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.backupdr.v1.BackupVault.EncryptionConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig other =
+ (com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig) obj;
+
+ if (hasKmsKeyName() != other.hasKmsKeyName()) return false;
+ if (hasKmsKeyName()) {
+ if (!getKmsKeyName().equals(other.getKmsKeyName())) 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();
+ if (hasKmsKeyName()) {
+ hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getKmsKeyName().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig 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.backupdr.v1.BackupVault.EncryptionConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig 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.backupdr.v1.BackupVault.EncryptionConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.backupdr.v1.BackupVault.EncryptionConfig 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Message describing the EncryptionConfig of backup vault.
+ * This determines how data within the vault is encrypted at rest.
+ *
+ *
+ * Protobuf type {@code google.cloud.backupdr.v1.BackupVault.EncryptionConfig}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.BackupVault.EncryptionConfig)
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.backupdr.v1.BackupVaultProto
+ .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.backupdr.v1.BackupVaultProto
+ .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.class,
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ kmsKeyName_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.backupdr.v1.BackupVaultProto
+ .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getDefaultInstanceForType() {
+ return com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig build() {
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig buildPartial() {
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig result =
+ new com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.kmsKeyName_ = kmsKeyName_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig) {
+ return mergeFrom((com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig other) {
+ if (other == com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance())
+ return this;
+ if (other.hasKmsKeyName()) {
+ kmsKeyName_ = other.kmsKeyName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ kmsKeyName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object kmsKeyName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the kmsKeyName field is set.
+ */
+ public boolean hasKmsKeyName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The kmsKeyName.
+ */
+ public java.lang.String getKmsKeyName() {
+ java.lang.Object ref = kmsKeyName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kmsKeyName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
+ java.lang.Object ref = kmsKeyName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kmsKeyName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The kmsKeyName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kmsKeyName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyName() {
+ kmsKeyName_ = getDefaultInstance().getKmsKeyName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ * Must be in the same region as the vault. Some workload backups like
+ * compute disk backups may use their inherited source key instead. Format:
+ * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ *
+ *
+ *
+ * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for kmsKeyName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ kmsKeyName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.BackupVault.EncryptionConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.BackupVault.EncryptionConfig)
+ private static final com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig();
+ }
+
+ public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public EncryptionConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@@ -911,41 +1862,107 @@ public boolean hasBackupMinimumEnforcedRetentionDuration() {
*
*
*
- * Required. The default and minimum enforced retention for each backup within
- * the backup vault. The enforced retention for each backup can be extended.
+ * Required. The default and minimum enforced retention for each backup within
+ * the backup vault. The enforced retention for each backup can be extended.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The backupMinimumEnforcedRetentionDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getBackupMinimumEnforcedRetentionDuration() {
+ return backupMinimumEnforcedRetentionDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : backupMinimumEnforcedRetentionDuration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The default and minimum enforced retention for each backup within
+ * the backup vault. The enforced retention for each backup can be extended.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder
+ getBackupMinimumEnforcedRetentionDurationOrBuilder() {
+ return backupMinimumEnforcedRetentionDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : backupMinimumEnforcedRetentionDuration_;
+ }
+
+ public static final int BACKUP_RETENTION_INHERITANCE_FIELD_NUMBER = 27;
+ private int backupRetentionInheritance_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the backupRetentionInheritance field is set.
+ */
+ @java.lang.Override
+ public boolean hasBackupRetentionInheritance() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
*
*
*
- * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The backupMinimumEnforcedRetentionDuration.
+ * @return The enum numeric value on the wire for backupRetentionInheritance.
*/
@java.lang.Override
- public com.google.protobuf.Duration getBackupMinimumEnforcedRetentionDuration() {
- return backupMinimumEnforcedRetentionDuration_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : backupMinimumEnforcedRetentionDuration_;
+ public int getBackupRetentionInheritanceValue() {
+ return backupRetentionInheritance_;
}
/**
*
*
*
- * Required. The default and minimum enforced retention for each backup within
- * the backup vault. The enforced retention for each backup can be extended.
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
*
*
*
- * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return The backupRetentionInheritance.
*/
@java.lang.Override
- public com.google.protobuf.DurationOrBuilder
- getBackupMinimumEnforcedRetentionDurationOrBuilder() {
- return backupMinimumEnforcedRetentionDuration_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : backupMinimumEnforcedRetentionDuration_;
+ public com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance
+ getBackupRetentionInheritance() {
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance result =
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.forNumber(
+ backupRetentionInheritance_);
+ return result == null
+ ? com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.UNRECOGNIZED
+ : result;
}
public static final int DELETABLE_FIELD_NUMBER = 8;
@@ -965,7 +1982,7 @@ public com.google.protobuf.Duration getBackupMinimumEnforcedRetentionDuration()
*/
@java.lang.Override
public boolean hasDeletable() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
@@ -1004,7 +2021,7 @@ public boolean getDeletable() {
*/
@java.lang.Override
public boolean hasEtag() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
@@ -1116,7 +2133,7 @@ public com.google.cloud.backupdr.v1.BackupVault.State getState() {
*/
@java.lang.Override
public boolean hasEffectiveTime() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -1476,6 +2493,66 @@ public com.google.cloud.backupdr.v1.BackupVault.AccessRestriction getAccessRestr
: result;
}
+ public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 29;
+ private com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryptionConfig_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the encryptionConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasEncryptionConfig() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The encryptionConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getEncryptionConfig() {
+ return encryptionConfig_ == null
+ ? com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance()
+ : encryptionConfig_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder
+ getEncryptionConfigOrBuilder() {
+ return encryptionConfig_ == null
+ ? com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance()
+ : encryptionConfig_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1504,16 +2581,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getUpdateTime());
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, deletable_);
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_);
}
if (state_ != com.google.cloud.backupdr.v1.BackupVault.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(10, state_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(12, getEffectiveTime());
}
if (backupCount_ != 0L) {
@@ -1538,6 +2615,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(24, accessRestriction_);
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeEnum(27, backupRetentionInheritance_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeMessage(29, getEncryptionConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -1569,16 +2652,16 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime());
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, deletable_);
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_);
}
if (state_ != com.google.cloud.backupdr.v1.BackupVault.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getEffectiveTime());
}
if (backupCount_ != 0L) {
@@ -1613,6 +2696,13 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, accessRestriction_);
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(27, backupRetentionInheritance_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getEncryptionConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1648,6 +2738,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getBackupMinimumEnforcedRetentionDuration()
.equals(other.getBackupMinimumEnforcedRetentionDuration())) return false;
}
+ if (hasBackupRetentionInheritance() != other.hasBackupRetentionInheritance()) return false;
+ if (hasBackupRetentionInheritance()) {
+ if (backupRetentionInheritance_ != other.backupRetentionInheritance_) return false;
+ }
if (hasDeletable() != other.hasDeletable()) return false;
if (hasDeletable()) {
if (getDeletable() != other.getDeletable()) return false;
@@ -1667,6 +2761,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getUid().equals(other.getUid())) return false;
if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
if (accessRestriction_ != other.accessRestriction_) return false;
+ if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false;
+ if (hasEncryptionConfig()) {
+ if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1700,6 +2798,10 @@ public int hashCode() {
hash = (37 * hash) + BACKUP_MINIMUM_ENFORCED_RETENTION_DURATION_FIELD_NUMBER;
hash = (53 * hash) + getBackupMinimumEnforcedRetentionDuration().hashCode();
}
+ if (hasBackupRetentionInheritance()) {
+ hash = (37 * hash) + BACKUP_RETENTION_INHERITANCE_FIELD_NUMBER;
+ hash = (53 * hash) + backupRetentionInheritance_;
+ }
if (hasDeletable()) {
hash = (37 * hash) + DELETABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletable());
@@ -1728,6 +2830,10 @@ public int hashCode() {
}
hash = (37 * hash) + ACCESS_RESTRICTION_FIELD_NUMBER;
hash = (53 * hash) + accessRestriction_;
+ if (hasEncryptionConfig()) {
+ hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getEncryptionConfig().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1899,6 +3005,7 @@ private void maybeForceBuilderInitialization() {
getUpdateTimeFieldBuilder();
getBackupMinimumEnforcedRetentionDurationFieldBuilder();
getEffectiveTimeFieldBuilder();
+ getEncryptionConfigFieldBuilder();
}
}
@@ -1924,6 +3031,7 @@ public Builder clear() {
backupMinimumEnforcedRetentionDurationBuilder_.dispose();
backupMinimumEnforcedRetentionDurationBuilder_ = null;
}
+ backupRetentionInheritance_ = 0;
deletable_ = false;
etag_ = "";
state_ = 0;
@@ -1938,6 +3046,11 @@ public Builder clear() {
uid_ = "";
internalGetMutableAnnotations().clear();
accessRestriction_ = 0;
+ encryptionConfig_ = null;
+ if (encryptionConfigBuilder_ != null) {
+ encryptionConfigBuilder_.dispose();
+ encryptionConfigBuilder_ = null;
+ }
return this;
}
@@ -2002,40 +3115,49 @@ private void buildPartial0(com.google.cloud.backupdr.v1.BackupVault result) {
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
- result.deletable_ = deletable_;
+ result.backupRetentionInheritance_ = backupRetentionInheritance_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
- result.etag_ = etag_;
+ result.deletable_ = deletable_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
- result.state_ = state_;
+ result.etag_ = etag_;
+ to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.state_ = state_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
result.effectiveTime_ =
effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build();
- to_bitField0_ |= 0x00000040;
+ to_bitField0_ |= 0x00000080;
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
result.backupCount_ = backupCount_;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.serviceAccount_ = serviceAccount_;
}
- if (((from_bitField0_ & 0x00001000) != 0)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
result.totalStoredBytes_ = totalStoredBytes_;
}
- if (((from_bitField0_ & 0x00002000) != 0)) {
+ if (((from_bitField0_ & 0x00004000) != 0)) {
result.uid_ = uid_;
}
- if (((from_bitField0_ & 0x00004000) != 0)) {
+ if (((from_bitField0_ & 0x00008000) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
- if (((from_bitField0_ & 0x00008000) != 0)) {
+ if (((from_bitField0_ & 0x00010000) != 0)) {
result.accessRestriction_ = accessRestriction_;
}
+ if (((from_bitField0_ & 0x00020000) != 0)) {
+ result.encryptionConfig_ =
+ encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build();
+ to_bitField0_ |= 0x00000100;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -2106,12 +3228,15 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupVault other) {
mergeBackupMinimumEnforcedRetentionDuration(
other.getBackupMinimumEnforcedRetentionDuration());
}
+ if (other.hasBackupRetentionInheritance()) {
+ setBackupRetentionInheritance(other.getBackupRetentionInheritance());
+ }
if (other.hasDeletable()) {
setDeletable(other.getDeletable());
}
if (other.hasEtag()) {
etag_ = other.etag_;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
if (other.state_ != 0) {
@@ -2125,7 +3250,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupVault other) {
}
if (!other.getServiceAccount().isEmpty()) {
serviceAccount_ = other.serviceAccount_;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
}
if (other.getTotalStoredBytes() != 0L) {
@@ -2133,14 +3258,17 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupVault other) {
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
}
internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
if (other.accessRestriction_ != 0) {
setAccessRestrictionValue(other.getAccessRestrictionValue());
}
+ if (other.hasEncryptionConfig()) {
+ mergeEncryptionConfig(other.getEncryptionConfig());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2206,43 +3334,43 @@ public Builder mergeFrom(
case 64:
{
deletable_ = input.readBool();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 64
case 74:
{
etag_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 74
case 80:
{
state_ = input.readEnum();
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 80
case 98:
{
input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
break;
} // case 98
case 136:
{
backupCount_ = input.readInt64();
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
break;
} // case 136
case 146:
{
serviceAccount_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
break;
} // case 146
case 152:
{
totalStoredBytes_ = input.readInt64();
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
break;
} // case 152
case 162:
@@ -2256,7 +3384,7 @@ public Builder mergeFrom(
case 170:
{
uid_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
break;
} // case 170
case 178:
@@ -2268,15 +3396,28 @@ public Builder mergeFrom(
internalGetMutableAnnotations()
.getMutableMap()
.put(annotations__.getKey(), annotations__.getValue());
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
break;
} // case 178
case 192:
{
accessRestriction_ = input.readEnum();
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
break;
} // case 192
+ case 216:
+ {
+ backupRetentionInheritance_ = input.readEnum();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 216
+ case 234:
+ {
+ input.readMessage(
+ getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00020000;
+ break;
+ } // case 234
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3312,16 +4453,148 @@ public Builder mergeBackupMinimumEnforcedRetentionDuration(com.google.protobuf.D
*
*
*
- * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearBackupMinimumEnforcedRetentionDuration() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ backupMinimumEnforcedRetentionDuration_ = null;
+ if (backupMinimumEnforcedRetentionDurationBuilder_ != null) {
+ backupMinimumEnforcedRetentionDurationBuilder_.dispose();
+ backupMinimumEnforcedRetentionDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The default and minimum enforced retention for each backup within
+ * the backup vault. The enforced retention for each backup can be extended.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getBackupMinimumEnforcedRetentionDurationBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getBackupMinimumEnforcedRetentionDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The default and minimum enforced retention for each backup within
+ * the backup vault. The enforced retention for each backup can be extended.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder
+ getBackupMinimumEnforcedRetentionDurationOrBuilder() {
+ if (backupMinimumEnforcedRetentionDurationBuilder_ != null) {
+ return backupMinimumEnforcedRetentionDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return backupMinimumEnforcedRetentionDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : backupMinimumEnforcedRetentionDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The default and minimum enforced retention for each backup within
+ * the backup vault. The enforced retention for each backup can be extended.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getBackupMinimumEnforcedRetentionDurationFieldBuilder() {
+ if (backupMinimumEnforcedRetentionDurationBuilder_ == null) {
+ backupMinimumEnforcedRetentionDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getBackupMinimumEnforcedRetentionDuration(), getParentForChildren(), isClean());
+ backupMinimumEnforcedRetentionDuration_ = null;
+ }
+ return backupMinimumEnforcedRetentionDurationBuilder_;
+ }
+
+ private int backupRetentionInheritance_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the backupRetentionInheritance field is set.
+ */
+ @java.lang.Override
+ public boolean hasBackupRetentionInheritance() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for backupRetentionInheritance.
+ */
+ @java.lang.Override
+ public int getBackupRetentionInheritanceValue() {
+ return backupRetentionInheritance_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param value The enum numeric value on the wire for backupRetentionInheritance to set.
+ * @return This builder for chaining.
*/
- public Builder clearBackupMinimumEnforcedRetentionDuration() {
- bitField0_ = (bitField0_ & ~0x00000020);
- backupMinimumEnforcedRetentionDuration_ = null;
- if (backupMinimumEnforcedRetentionDurationBuilder_ != null) {
- backupMinimumEnforcedRetentionDurationBuilder_.dispose();
- backupMinimumEnforcedRetentionDurationBuilder_ = null;
- }
+ public Builder setBackupRetentionInheritanceValue(int value) {
+ backupRetentionInheritance_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -3330,70 +4603,72 @@ public Builder clearBackupMinimumEnforcedRetentionDuration() {
*
*
*
- * Required. The default and minimum enforced retention for each backup within
- * the backup vault. The enforced retention for each backup can be extended.
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
*
*
*
- * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return The backupRetentionInheritance.
*/
- public com.google.protobuf.Duration.Builder getBackupMinimumEnforcedRetentionDurationBuilder() {
- bitField0_ |= 0x00000020;
- onChanged();
- return getBackupMinimumEnforcedRetentionDurationFieldBuilder().getBuilder();
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance
+ getBackupRetentionInheritance() {
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance result =
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.forNumber(
+ backupRetentionInheritance_);
+ return result == null
+ ? com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.UNRECOGNIZED
+ : result;
}
/**
*
*
*
- * Required. The default and minimum enforced retention for each backup within
- * the backup vault. The enforced retention for each backup can be extended.
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
*
*
*
- * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param value The backupRetentionInheritance to set.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.DurationOrBuilder
- getBackupMinimumEnforcedRetentionDurationOrBuilder() {
- if (backupMinimumEnforcedRetentionDurationBuilder_ != null) {
- return backupMinimumEnforcedRetentionDurationBuilder_.getMessageOrBuilder();
- } else {
- return backupMinimumEnforcedRetentionDuration_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : backupMinimumEnforcedRetentionDuration_;
+ public Builder setBackupRetentionInheritance(
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ bitField0_ |= 0x00000040;
+ backupRetentionInheritance_ = value.getNumber();
+ onChanged();
+ return this;
}
/**
*
*
*
- * Required. The default and minimum enforced retention for each backup within
- * the backup vault. The enforced retention for each backup can be extended.
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
*
*
*
- * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED];
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return This builder for chaining.
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Duration,
- com.google.protobuf.Duration.Builder,
- com.google.protobuf.DurationOrBuilder>
- getBackupMinimumEnforcedRetentionDurationFieldBuilder() {
- if (backupMinimumEnforcedRetentionDurationBuilder_ == null) {
- backupMinimumEnforcedRetentionDurationBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Duration,
- com.google.protobuf.Duration.Builder,
- com.google.protobuf.DurationOrBuilder>(
- getBackupMinimumEnforcedRetentionDuration(), getParentForChildren(), isClean());
- backupMinimumEnforcedRetentionDuration_ = null;
- }
- return backupMinimumEnforcedRetentionDurationBuilder_;
+ public Builder clearBackupRetentionInheritance() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ backupRetentionInheritance_ = 0;
+ onChanged();
+ return this;
}
private boolean deletable_;
@@ -3412,7 +4687,7 @@ public com.google.protobuf.Duration.Builder getBackupMinimumEnforcedRetentionDur
*/
@java.lang.Override
public boolean hasDeletable() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -3448,7 +4723,7 @@ public boolean getDeletable() {
public Builder setDeletable(boolean value) {
deletable_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -3466,7 +4741,7 @@ public Builder setDeletable(boolean value) {
* @return This builder for chaining.
*/
public Builder clearDeletable() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
deletable_ = false;
onChanged();
return this;
@@ -3487,7 +4762,7 @@ public Builder clearDeletable() {
* @return Whether the etag field is set.
*/
public boolean hasEtag() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
@@ -3556,7 +4831,7 @@ public Builder setEtag(java.lang.String value) {
throw new NullPointerException();
}
etag_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3575,7 +4850,7 @@ public Builder setEtag(java.lang.String value) {
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -3599,7 +4874,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
etag_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3640,7 +4915,7 @@ public int getStateValue() {
*/
public Builder setStateValue(int value) {
state_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3683,7 +4958,7 @@ public Builder setState(com.google.cloud.backupdr.v1.BackupVault.State value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
state_ = value.getNumber();
onChanged();
return this;
@@ -3703,7 +4978,7 @@ public Builder setState(com.google.cloud.backupdr.v1.BackupVault.State value) {
* @return This builder for chaining.
*/
public Builder clearState() {
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
state_ = 0;
onChanged();
return this;
@@ -3730,7 +5005,7 @@ public Builder clearState() {
* @return Whether the effectiveTime field is set.
*/
public boolean hasEffectiveTime() {
- return ((bitField0_ & 0x00000200) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
@@ -3776,7 +5051,7 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
} else {
effectiveTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3798,7 +5073,7 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor
} else {
effectiveTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3816,7 +5091,7 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor
*/
public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
if (effectiveTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000200) != 0)
+ if (((bitField0_ & 0x00000400) != 0)
&& effectiveTime_ != null
&& effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEffectiveTimeBuilder().mergeFrom(value);
@@ -3827,7 +5102,7 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
effectiveTimeBuilder_.mergeFrom(value);
}
if (effectiveTime_ != null) {
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
}
return this;
@@ -3845,7 +5120,7 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearEffectiveTime() {
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
effectiveTime_ = null;
if (effectiveTimeBuilder_ != null) {
effectiveTimeBuilder_.dispose();
@@ -3867,7 +5142,7 @@ public Builder clearEffectiveTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() {
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return getEffectiveTimeFieldBuilder().getBuilder();
}
@@ -3954,7 +5229,7 @@ public long getBackupCount() {
public Builder setBackupCount(long value) {
backupCount_ = value;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -3971,7 +5246,7 @@ public Builder setBackupCount(long value) {
* @return This builder for chaining.
*/
public Builder clearBackupCount() {
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
backupCount_ = 0L;
onChanged();
return this;
@@ -4048,7 +5323,7 @@ public Builder setServiceAccount(java.lang.String value) {
throw new NullPointerException();
}
serviceAccount_ = value;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -4068,7 +5343,7 @@ public Builder setServiceAccount(java.lang.String value) {
*/
public Builder clearServiceAccount() {
serviceAccount_ = getDefaultInstance().getServiceAccount();
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
@@ -4093,7 +5368,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
serviceAccount_ = value;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -4131,7 +5406,7 @@ public long getTotalStoredBytes() {
public Builder setTotalStoredBytes(long value) {
totalStoredBytes_ = value;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -4148,7 +5423,7 @@ public Builder setTotalStoredBytes(long value) {
* @return This builder for chaining.
*/
public Builder clearTotalStoredBytes() {
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00002000);
totalStoredBytes_ = 0L;
onChanged();
return this;
@@ -4225,7 +5500,7 @@ public Builder setUid(java.lang.String value) {
throw new NullPointerException();
}
uid_ = value;
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -4245,7 +5520,7 @@ public Builder setUid(java.lang.String value) {
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
@@ -4270,7 +5545,7 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
uid_ = value;
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -4295,7 +5570,7 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) {
if (!annotations_.isMutable()) {
annotations_ = annotations_.copy();
}
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
return annotations_;
}
@@ -4393,7 +5668,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
}
public Builder clearAnnotations() {
- bitField0_ = (bitField0_ & ~0x00004000);
+ bitField0_ = (bitField0_ & ~0x00008000);
internalGetMutableAnnotations().getMutableMap().clear();
return this;
}
@@ -4420,7 +5695,7 @@ public Builder removeAnnotations(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableAnnotations() {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
return internalGetMutableAnnotations().getMutableMap();
}
@@ -4443,7 +5718,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
throw new NullPointerException("map value");
}
internalGetMutableAnnotations().getMutableMap().put(key, value);
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
return this;
}
@@ -4460,7 +5735,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
*/
public Builder putAllAnnotations(java.util.Map values) {
internalGetMutableAnnotations().getMutableMap().putAll(values);
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
return this;
}
@@ -4508,7 +5783,7 @@ public int getAccessRestrictionValue() {
*/
public Builder setAccessRestrictionValue(int value) {
accessRestriction_ = value;
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -4562,7 +5837,7 @@ public Builder setAccessRestriction(
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
accessRestriction_ = value.getNumber();
onChanged();
return this;
@@ -4586,12 +5861,230 @@ public Builder setAccessRestriction(
* @return This builder for chaining.
*/
public Builder clearAccessRestriction() {
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
accessRestriction_ = 0;
onChanged();
return this;
}
+ private com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryptionConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig,
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder,
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder>
+ encryptionConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the encryptionConfig field is set.
+ */
+ public boolean hasEncryptionConfig() {
+ return ((bitField0_ & 0x00020000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The encryptionConfig.
+ */
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getEncryptionConfig() {
+ if (encryptionConfigBuilder_ == null) {
+ return encryptionConfig_ == null
+ ? com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance()
+ : encryptionConfig_;
+ } else {
+ return encryptionConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setEncryptionConfig(
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig value) {
+ if (encryptionConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ encryptionConfig_ = value;
+ } else {
+ encryptionConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00020000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setEncryptionConfig(
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder builderForValue) {
+ if (encryptionConfigBuilder_ == null) {
+ encryptionConfig_ = builderForValue.build();
+ } else {
+ encryptionConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00020000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeEncryptionConfig(
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig value) {
+ if (encryptionConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00020000) != 0)
+ && encryptionConfig_ != null
+ && encryptionConfig_
+ != com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance()) {
+ getEncryptionConfigBuilder().mergeFrom(value);
+ } else {
+ encryptionConfig_ = value;
+ }
+ } else {
+ encryptionConfigBuilder_.mergeFrom(value);
+ }
+ if (encryptionConfig_ != null) {
+ bitField0_ |= 0x00020000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearEncryptionConfig() {
+ bitField0_ = (bitField0_ & ~0x00020000);
+ encryptionConfig_ = null;
+ if (encryptionConfigBuilder_ != null) {
+ encryptionConfigBuilder_.dispose();
+ encryptionConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder
+ getEncryptionConfigBuilder() {
+ bitField0_ |= 0x00020000;
+ onChanged();
+ return getEncryptionConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder
+ getEncryptionConfigOrBuilder() {
+ if (encryptionConfigBuilder_ != null) {
+ return encryptionConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return encryptionConfig_ == null
+ ? com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance()
+ : encryptionConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig,
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder,
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder>
+ getEncryptionConfigFieldBuilder() {
+ if (encryptionConfigBuilder_ == null) {
+ encryptionConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig,
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder,
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder>(
+ getEncryptionConfig(), getParentForChildren(), isClean());
+ encryptionConfig_ = null;
+ }
+ return encryptionConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java
index 97b62eba0253..5be3d3d416da 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java
@@ -304,6 +304,55 @@ java.lang.String getLabelsOrDefault(
*/
com.google.protobuf.DurationOrBuilder getBackupMinimumEnforcedRetentionDurationOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the backupRetentionInheritance field is set.
+ */
+ boolean hasBackupRetentionInheritance();
+
+ /**
+ *
+ *
+ *
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for backupRetentionInheritance.
+ */
+ int getBackupRetentionInheritanceValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. Setting for how a backup's enforced retention end time is
+ * inherited.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The backupRetentionInheritance.
+ */
+ com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance
+ getBackupRetentionInheritance();
+
/**
*
*
@@ -643,4 +692,47 @@ java.lang.String getAnnotationsOrDefault(
* @return The accessRestriction.
*/
com.google.cloud.backupdr.v1.BackupVault.AccessRestriction getAccessRestriction();
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the encryptionConfig field is set.
+ */
+ boolean hasEncryptionConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The encryptionConfig.
+ */
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getEncryptionConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. The encryption config of the backup vault.
+ *
+ *
+ *
+ * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder();
}
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java
index ea0a915558db..bf0d939ee80c 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java
@@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_backupdr_v1_BackupVault_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_backupdr_v1_BackupVault_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -206,7 +210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ault_cloudsql.proto\032/google/cloud/backupdr/v1/backupvault_disk.proto\032.google/clo"
+ "ud/backupdr/v1/backupvault_gce.proto\032\036google/protobuf/duration.proto\032"
+ " google/protobuf/field_mask.proto\032\037google/protobuf/"
- + "timestamp.proto\032\027google/rpc/status.proto\"\246\013\n"
+ + "timestamp.proto\032\027google/rpc/status.proto\"\237\017\n"
+ "\013BackupVault\022\024\n"
+ "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\035\n"
+ "\013description\030\002 \001(\tB\003\340A\001H\000\210\001\001\022F\n"
@@ -217,27 +221,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013update_time\030\005"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\002\210\001\001\022W\n"
+ "*backup_minimum_enforced_retention_duration\030\024"
- + " \001(\0132\031.google.protobuf.DurationB\003\340A\002H\003\210\001\001\022\033\n"
- + "\tdeletable\030\010 \001(\010B\003\340A\003H\004\210\001\001\022\026\n"
- + "\004etag\030\t \001(\tB\003\340A\001H\005\210\001\001\022?\n"
+ + " \001(\0132\031.google.protobuf.DurationB\003\340A\002H\003\210\001\001\022p\n"
+ + "\034backup_retention_inheritance\030\033 \001(\0162@.google.clou"
+ + "d.backupdr.v1.BackupVault.BackupRetentionInheritanceB\003\340A\001H\004\210\001\001\022\033\n"
+ + "\tdeletable\030\010 \001(\010B\003\340A\003H\005\210\001\001\022\026\n"
+ + "\004etag\030\t \001(\tB\003\340A\001H\006\210\001\001\022?\n"
+ "\005state\030\n"
+ " \001(\0162+.google.cloud.backupdr.v1.BackupVault.StateB\003\340A\003\022<\n"
+ "\016effective_time\030\014"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\022\031\n"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\007\210\001\001\022\031\n"
+ "\014backup_count\030\021 \001(\003B\003\340A\003\022\034\n"
+ "\017service_account\030\022 \001(\tB\003\340A\003\022\037\n"
+ "\022total_stored_bytes\030\023 \001(\003B\003\340A\003\022\030\n"
+ "\003uid\030\025 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022P\n"
- + "\013annotations\030\026 \003(\01326.google.cloud"
- + ".backupdr.v1.BackupVault.AnnotationsEntryB\003\340A\001\022X\n"
- + "\022access_restriction\030\030 \001(\01627.goo"
- + "gle.cloud.backupdr.v1.BackupVault.AccessRestrictionB\003\340A\001\032-\n"
+ + "\013annotations\030\026 \003(\01326.google.cloud.backu"
+ + "pdr.v1.BackupVault.AnnotationsEntryB\003\340A\001\022X\n"
+ + "\022access_restriction\030\030 \001(\01627.google.cl"
+ + "oud.backupdr.v1.BackupVault.AccessRestrictionB\003\340A\001\022[\n"
+ + "\021encryption_config\030\035 \001(\01326."
+ + "google.cloud.backupdr.v1.BackupVault.EncryptionConfigB\003\340A\001H\010\210\001\001\032i\n"
+ + "\020EncryptionConfig\022D\n"
+ + "\014kms_key_name\030\001 \001(\tB)\340A\001\372A#\n"
+ + "!cloudkms.googleapis.com/CryptoKeyH\000\210\001\001B\017\n\r"
+ + "_kms_key_name\032-\n"
+ "\013LabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n"
+ + "\003key\030\001 \001(\t\022\r"
+ + "\n"
+ "\005value\030\002 \001(\t:\0028\001\0322\n"
+ "\020AnnotationsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001\"_\n"
+ + "\005value\030\002 \001(\t:\0028\001\"\205\001\n"
+ + "\032BackupRetentionInheritance\022,\n"
+ + "(BACKUP_RETENTION_INHERITANCE_UNSPECIFIED\020\000\022\033\n"
+ + "\027INHERIT_VAULT_RETENTION\020\001\022\034\n"
+ + "\030MATCH_BACKUP_EXPIRE_TIME\020\002\"_\n"
+ "\005State\022\025\n"
+ "\021STATE_UNSPECIFIED\020\000\022\014\n"
+ "\010CREATING\020\001\022\n\n"
@@ -251,49 +268,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\023WITHIN_ORGANIZATION\020\002\022\020\n"
+ "\014UNRESTRICTED\020\003\022&\n"
+ "\"WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA\020\004:\210\001\352A\204\001\n"
- + "#backupdr.googleapis.com/BackupVault\022Bprojects/{project}/lo"
- + "cations/{location}/backupVaults/{backupvault}*\014backupVaults2\013backupVaultB\016\n"
+ + "#backupdr.googleapis.com/BackupVault\022Bprojects/{p"
+ + "roject}/locations/{location}/backupVault"
+ + "s/{backupvault}*\014backupVaults2\013backupVaultB\016\n"
+ "\014_descriptionB\016\n"
+ "\014_create_timeB\016\n"
+ "\014_update_timeB-\n"
- + "+_backup_minimum_enforced_retention_durationB\014\n\n"
+ + "+_backup_minimum_enforced_retention_durationB\037\n"
+ + "\035_backup_retention_inheritanceB\014\n\n"
+ "_deletableB\007\n"
+ "\005_etagB\021\n"
- + "\017_effective_time\"\214\t\n\n"
+ + "\017_effective_timeB\024\n"
+ + "\022_encryption_config\"\214\t\n\n"
+ "DataSource\022\024\n"
+ "\004name\030\001 \001(\tB\006\340A\003\340A\010\022>\n"
+ "\005state\030\025"
+ " \001(\0162*.google.cloud.backupdr.v1.DataSource.StateB\003\340A\003\022E\n"
- + "\006labels\030\004"
- + " \003(\01320.google.cloud.backupdr.v1.DataSource.LabelsEntryB\003\340A\001\0229\n"
- + "\013create_time\030\005 \001"
- + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\0229\n"
+ + "\006labels\030\004 \003(\01320.google"
+ + ".cloud.backupdr.v1.DataSource.LabelsEntryB\003\340A\001\0229\n"
+ + "\013create_time\030\005"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\0229\n"
+ "\013update_time\030\006"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\002\210\001\001\022\031\n"
+ "\014backup_count\030\007 \001(\003H\003\210\001\001\022\021\n"
+ "\004etag\030\016 \001(\tH\004\210\001\001\022\037\n"
+ "\022total_stored_bytes\030\027 \001(\003H\005\210\001\001\022F\n"
- + "\014config_state\030\030 \001(\016"
- + "2+.google.cloud.backupdr.v1.BackupConfigStateB\003\340A\003\022K\n"
- + "\022backup_config_info\030\031 \001(\0132*"
- + ".google.cloud.backupdr.v1.BackupConfigInfoB\003\340A\003\022S\n"
- + "\030data_source_gcp_resource\030\032 \001("
- + "\0132/.google.cloud.backupdr.v1.DataSourceGcpResourceH\000\022r\n"
- + "(data_source_backup_appliance_application\030\033 \001(\0132>.google.cloud.ba"
- + "ckupdr.v1.DataSourceBackupApplianceApplicationH\000\0227\n"
+ + "\014config_state\030\030"
+ + " \001(\0162+.google.cloud.backupdr.v1.BackupConfigStateB\003\340A\003\022K\n"
+ + "\022backup_config_info\030\031"
+ + " \001(\0132*.google.cloud.backupdr.v1.BackupConfigInfoB\003\340A\003\022S\n"
+ + "\030data_source_gcp_resource\030\032"
+ + " \001(\0132/.google.cloud.backupdr.v1.DataSourceGcpResourceH\000\022r\n"
+ + "(data_source_backup_appliance_application\030\033"
+ + " \001(\0132>.google.cloud.backupdr.v1.DataSourceBackupApplianceApplicationH\000\0227\n"
+ "*backup_blocked_by_vault_access_restriction\030\034 \001(\010B\003\340A\003\032-\n"
+ "\013LabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n"
+ + "\003key\030\001 \001(\t\022\r"
+ + "\n"
+ "\005value\030\002 \001(\t:\0028\001\"Q\n"
+ "\005State\022\025\n"
+ "\021STATE_UNSPECIFIED\020\000\022\014\n"
- + "\010CREATING\020\001\022\n"
- + "\n"
+ + "\010CREATING\020\001\022\n\n"
+ "\006ACTIVE\020\002\022\014\n"
+ "\010DELETING\020\003\022\t\n"
+ "\005ERROR\020\004:\236\001\352A\232\001\n"
- + "\"backupdr.googleapis.com/DataSource\022[projects/{project}/locations/{location}/"
- + "backupVaults/{backupvault}/dataSources/{datasource}*\013dataSources2\n"
+ + "\"backupdr.googleapis.com/DataSource\022[projects/{proje"
+ + "ct}/locations/{location}/backupVaults/{b"
+ + "ackupvault}/dataSources/{datasource}*\013dataSources2\n"
+ "dataSourceB\021\n"
+ "\017source_resourceB\016\n"
+ "\014_create_timeB\016\n"
@@ -302,15 +323,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005_etagB\025\n"
+ "\023_total_stored_bytes\"\261\004\n"
+ "\020BackupConfigInfo\022Z\n"
- + "\021last_backup_state\030\001 \001(\0162:.google.cloud."
- + "backupdr.v1.BackupConfigInfo.LastBackupStateB\003\340A\003\022P\n"
+ + "\021last_backup_state\030\001"
+ + " \001(\0162:.google.cloud.backupdr.v1.BackupConfigInfo.LastBackupStateB\003\340A\003\022P\n"
+ "\'last_successful_backup_consistency_time\030\002"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0222\n"
+ "\021last_backup_error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\022F\n"
- + "\021gcp_backup_config\030\004"
- + " \001(\0132).google.cloud.backupdr.v1.GcpBackupConfigH\000\022_\n"
- + "\036backup_appliance_backup_config\030\005"
- + " \001(\01325.google.cloud.backupdr.v1.BackupApplianceBackupConfigH\000\"\200\001\n"
+ + "\021gcp_backup_config\030\004 \001(\0132).go"
+ + "ogle.cloud.backupdr.v1.GcpBackupConfigH\000\022_\n"
+ + "\036backup_appliance_backup_config\030\005 \001(\013"
+ + "25.google.cloud.backupdr.v1.BackupApplianceBackupConfigH\000\"\200\001\n"
+ "\017LastBackupState\022!\n"
+ "\035LAST_BACKUP_STATE_UNSPECIFIED\020\000\022\030\n"
+ "\024FIRST_BACKUP_PENDING\020\001\022\r\n"
@@ -339,10 +360,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020gcp_resourcename\030\001 \001(\tB\003\340A\003\022\020\n"
+ "\010location\030\002 \001(\t\022\014\n"
+ "\004type\030\003 \001(\t\022o\n"
- + "&compute_instance_datasource_properties\030\004 \001("
- + "\0132=.google.cloud.backupdr.v1.ComputeInstanceDataSourcePropertiesH\000\022w\n"
- + "(cloud_sql_instance_datasource_properties\030\005 \001(\0132>.g"
- + "oogle.cloud.backupdr.v1.CloudSqlInstanceDataSourcePropertiesB\003\340A\003H\000\022X\n"
+ + "&compute_instance_datasource_properties\030\004 \001(\0132=.google.clou"
+ + "d.backupdr.v1.ComputeInstanceDataSourcePropertiesH\000\022w\n"
+ + "(cloud_sql_instance_datasource_properties\030\005 \001(\0132>.google.cloud.bac"
+ + "kupdr.v1.CloudSqlInstanceDataSourcePropertiesB\003\340A\003H\000\022X\n"
+ "\032disk_datasource_properties\030\007"
+ " \001(\01322.google.cloud.backupdr.v1.DiskDataSourcePropertiesH\000B\031\n"
+ "\027gcp_resource_properties\"\271\001\n"
@@ -367,51 +388,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "BackupLock\0228\n"
+ "\017lock_until_time\030\001"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022W\n"
- + "\032backup_appliance_lock_info\030\003"
- + " \001(\01321.google.cloud.backupdr.v1.BackupApplianceLockInfoH\000\022K\n"
- + "\021service_lock_info\030\004"
- + " \001(\0132).google.cloud.backupdr.v1.ServiceLockInfoB\003\340A\003H\000B\020\n"
- + "\016ClientLockInfo\"\274\021\n"
+ + "\032backup_appliance_lock_info\030\003 \001(\01321.google."
+ + "cloud.backupdr.v1.BackupApplianceLockInfoH\000\022K\n"
+ + "\021service_lock_info\030\004 \001(\0132).google."
+ + "cloud.backupdr.v1.ServiceLockInfoB\003\340A\003H\000B\020\n"
+ + "\016ClientLockInfo\"\233\023\n"
+ "\006Backup\022\024\n"
+ "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\035\n"
+ "\013description\030\002 \001(\tB\003\340A\003H\003\210\001\001\0229\n"
+ "\013create_time\030\003"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\004\210\001\001\0229\n"
- + "\013update_time\030\004"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\005\210\001\001\022A\n"
- + "\006labels\030\005 \003(\0132,.google"
- + ".cloud.backupdr.v1.Backup.LabelsEntryB\003\340A\001\022I\n"
+ + "\013update_time\030\004 \001"
+ + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\005\210\001\001\022A\n"
+ + "\006labels\030\005"
+ + " \003(\0132,.google.cloud.backupdr.v1.Backup.LabelsEntryB\003\340A\001\022I\n"
+ "\033enforced_retention_end_time\030\006"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\0229\n"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\022p\n"
+ + "\034backup_retention_inheritance\030\036 \001(\0162@.google.cloud.back"
+ + "updr.v1.BackupVault.BackupRetentionInheritanceB\003\340A\003H\007\210\001\001\0229\n"
+ "\013expire_time\030\007"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\007\210\001\001\022>\n"
- + "\020consistency_time\030\t \001"
- + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\010\210\001\001\022\026\n"
- + "\004etag\030\013 \001(\tB\003\340A\001H\t\210\001\001\022:\n"
- + "\005state\030\017 \001(\0162"
- + "&.google.cloud.backupdr.v1.Backup.StateB\003\340A\003\022@\n\r"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\010\210\001\001\022>\n"
+ + "\020consistency_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003H"
+ + "\t\210\001\001\022\026\n"
+ + "\004etag\030\013 \001(\tB\003\340A\001H\n"
+ + "\210\001\001\022:\n"
+ + "\005state\030\017"
+ + " \001(\0162&.google.cloud.backupdr.v1.Backup.StateB\003\340A\003\022@\n\r"
+ "service_locks\030\021"
+ " \003(\0132$.google.cloud.backupdr.v1.BackupLockB\003\340A\003\022I\n"
- + "\026backup_appliance_locks\030\022"
- + " \003(\0132$.google.cloud.backupdr.v1.BackupLockB\003\340A\001\022l\n"
- + "\"compute_instance_backup_properties\030\023 \001(\01329.google.c"
- + "loud.backupdr.v1.ComputeInstanceBackupPropertiesB\003\340A\003H\000\022o\n"
- + "$cloud_sql_instance_backup_properties\030\032 \001(\0132:.google.cloud.bac"
- + "kupdr.v1.CloudSqlInstanceBackupPropertiesB\003\340A\003H\000\022l\n"
- + "\"backup_appliance_backup_properties\030\025 \001(\01329.google.cloud.backupdr.v1."
- + "BackupApplianceBackupPropertiesB\003\340A\003H\000\022U\n"
- + "\026disk_backup_properties\030\034 \001(\0132..google."
- + "cloud.backupdr.v1.DiskBackupPropertiesB\003\340A\003H\000\022E\n"
+ + "\026backup_appliance_locks\030\022 \003("
+ + "\0132$.google.cloud.backupdr.v1.BackupLockB\003\340A\001\022l\n"
+ + "\"compute_instance_backup_properties\030\023"
+ + " \001(\01329.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesB\003\340A\003H\000\022o\n"
+ + "$cloud_sql_instance_backup_properties\030\032 \001(\013"
+ + "2:.google.cloud.backupdr.v1.CloudSqlInstanceBackupPropertiesB\003\340A\003H\000\022l\n"
+ + "\"backup_appliance_backup_properties\030\025 \001(\01329.google"
+ + ".cloud.backupdr.v1.BackupApplianceBackupPropertiesB\003\340A\003H\000\022U\n"
+ + "\026disk_backup_properties\030\034"
+ + " \001(\0132..google.cloud.backupdr.v1.DiskBackupPropertiesB\003\340A\003H\000\022E\n"
+ "\013backup_type\030\024"
+ " \001(\0162+.google.cloud.backupdr.v1.Backup.BackupTypeB\003\340A\003\022W\n"
- + "\024gcp_backup_plan_info\030\026 \001(\01322.google.clou"
- + "d.backupdr.v1.Backup.GCPBackupPlanInfoB\003\340A\003H\001\022 \n"
+ + "\024gcp_backup_plan_info\030\026"
+ + " \001(\01322.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoB\003\340A\003H\001\022"
+ + " \n"
+ "\023resource_size_bytes\030\027 \001(\003B\003\340A\003\022\"\n\r"
- + "satisfies_pzs\030\030 \001(\010B\006\340A\003\340A\001H\n"
- + "\210\001\001\022\"\n\r"
- + "satisfies_pzi\030\031 \001(\010B\006\340A\003\340A\001H\013\210\001\001\022H\n"
- + "\014gcp_resource\030\037"
- + " \001(\0132+.google.cloud.backupdr.v1.BackupGcpResourceB\003\340A\003H\002\032\262\001\n"
+ + "satisfies_pzs\030\030 \001(\010B\006\340A\003\340A\001H\013\210\001\001\022\"\n\r"
+ + "satisfies_pzi\030\031 \001(\010B\006\340A\003\340A\001H\014\210\001\001\022H\n"
+ + "\014gcp_resource\030\037 \001(\0132+.googl"
+ + "e.cloud.backupdr.v1.BackupGcpResourceB\003\340A\003H\002\022J\n"
+ + "\020kms_key_versions\030! \003(\tB0\340A\003\372A*\n"
+ + "(cloudkms.googleapis.com/CryptoKeyVersion\032\262\001\n"
+ "\021GCPBackupPlanInfo\022<\n"
+ "\013backup_plan\030\001 \001(\tB\'\372A$\n"
+ "\"backupdr.googleapis.com/BackupPlan\022\033\n"
@@ -433,24 +459,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tSCHEDULED\020\001\022\r\n"
+ "\tON_DEMAND\020\002\022\031\n"
+ "\025ON_DEMAND_OPERATIONAL\020\003:\243\001\352A\237\001\n"
- + "\036backupdr.googleapis.com/Backup\022lprojects/{project}/locations"
- + "/{location}/backupVaults/{backupvault}/d"
- + "ataSources/{datasource}/backups/{backup}*\007backups2\006backupB\023\n"
+ + "\036backupdr.googleapis.com/Backup\022lprojects/{pro"
+ + "ject}/locations/{location}/backupVaults/"
+ + "{backupvault}/dataSources/{datasource}/backups/{backup}*\007backups2\006backupB\023\n"
+ "\021backup_propertiesB\013\n"
+ "\tplan_infoB\021\n"
+ "\017source_resourceB\016\n"
+ "\014_descriptionB\016\n"
+ "\014_create_timeB\016\n"
+ "\014_update_timeB\036\n"
- + "\034_enforced_retention_end_timeB\016\n"
+ + "\034_enforced_retention_end_timeB\037\n"
+ + "\035_backup_retention_inheritanceB\016\n"
+ "\014_expire_timeB\023\n"
+ "\021_consistency_timeB\007\n"
+ "\005_etagB\020\n"
+ "\016_satisfies_pzsB\020\n"
+ "\016_satisfies_pzi\"\364\001\n"
+ "\030CreateBackupVaultRequest\022;\n"
- + "\006parent\030\001 \001(\tB+\340"
- + "A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\034\n"
+ + "\006parent\030\001 \001("
+ + "\tB+\340A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\034\n"
+ "\017backup_vault_id\030\002 \001(\tB\003\340A\002\022@\n"
+ "\014backup_vault\030\003"
+ " \001(\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n\n"
@@ -463,15 +490,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "page_token\030\003 \001(\tB\003\340A\001\022\023\n"
+ "\006filter\030\004 \001(\tB\003\340A\001\022\025\n"
+ "\010order_by\030\005 \001(\tB\003\340A\001\022<\n"
- + "\004view\030\006 \001(\0162).go"
- + "ogle.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\206\001\n"
+ + "\004view\030\006 "
+ + "\001(\0162).google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\206\001\n"
+ "\030ListBackupVaultsResponse\022<\n\r"
+ "backup_vaults\030\001 \003(\0132%.google.cloud.backupdr.v1.BackupVault\022\027\n"
+ "\017next_page_token\030\002 \001(\t\022\023\n"
+ "\013unreachable\030\003 \003(\t\"\272\001\n"
+ "\036FetchUsableBackupVaultsRequest\022;\n"
- + "\006parent\030\001 \001("
- + "\tB+\340A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\026\n"
+ + "\006parent\030\001 \001(\tB"
+ + "+\340A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\026\n"
+ "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
+ "page_token\030\003 \001(\tB\003\340A\001\022\023\n"
+ "\006filter\030\004 \001(\tB\003\340A\001\022\025\n"
@@ -495,13 +522,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\025GetBackupVaultRequest\0229\n"
+ "\004name\030\001 \001(\tB+\340A\002\372A%\n"
+ "#backupdr.googleapis.com/BackupVault\022<\n"
- + "\004view\030\002 \001(\016"
- + "2).google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\221\002\n"
+ + "\004view\030\002"
+ + " \001(\0162).google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\221\002\n"
+ "\030UpdateBackupVaultRequest\0224\n"
+ "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022@\n"
- + "\014backup_vault\030\002"
- + " \001(\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n"
- + "\n"
+ + "\014backup_vault\030\002 \001("
+ + "\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n\n"
+ "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\r"
+ "validate_only\030\004 \001(\010B\003\340A\001\022\022\n"
+ "\005force\030\005 \001(\010B\003\340A\001\022,\n"
@@ -531,8 +557,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\"backupdr.googleapis.com/DataSource\"\314\001\n"
+ "\027UpdateDataSourceRequest\0224\n"
+ "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022>\n"
- + "\013data_source\030\002 \001(\0132$"
- + ".google.cloud.backupdr.v1.DataSourceB\003\340A\002\022\037\n\n"
+ + "\013data_source\030\002"
+ + " \001(\0132$.google.cloud.backupdr.v1.DataSourceB\003\340A\002\022\037\n\n"
+ "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\r"
+ "allow_missing\030\004 \001(\010B\003\340A\001\"\342\001\n"
+ "\022ListBackupsRequest\0226\n"
@@ -560,23 +586,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\023DeleteBackupRequest\0224\n"
+ "\004name\030\001 \001(\tB&\340A\002\372A \n"
+ "\036backupdr.googleapis.com/Backup\022\037\n\n"
- + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\371\004\n"
+ + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\342\005\n"
+ "\024RestoreBackupRequest\0224\n"
+ "\004name\030\001 \001(\tB&\340A\002\372A \n"
+ "\036backupdr.googleapis.com/Backup\022\037\n\n"
+ "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022i\n"
- + "#compute_instance_target_environment\030\003 \001(\0132:.google.cloud.backupdr"
- + ".v1.ComputeInstanceTargetEnvironmentH\000\022R\n"
- + "\027disk_target_environment\030\005 \001(\0132/.google"
- + ".cloud.backupdr.v1.DiskTargetEnvironmentH\000\022_\n"
- + "\036region_disk_target_environment\030\006 \001"
- + "(\01325.google.cloud.backupdr.v1.RegionDiskTargetEnvironmentH\000\022i\n"
- + "#compute_instance_restore_properties\030\004 \001(\0132:.google.cloud."
- + "backupdr.v1.ComputeInstanceRestorePropertiesH\001\022R\n"
- + "\027disk_restore_properties\030\007 \001(\0132"
- + "/.google.cloud.backupdr.v1.DiskRestorePropertiesH\001B\024\n"
+ + "#compute_instance_target_environment\030\003 \001(\0132:.google.cloud."
+ + "backupdr.v1.ComputeInstanceTargetEnvironmentH\000\022R\n"
+ + "\027disk_target_environment\030\005 \001(\0132"
+ + "/.google.cloud.backupdr.v1.DiskTargetEnvironmentH\000\022_\n"
+ + "\036region_disk_target_environment\030\006"
+ + " \001(\01325.google.cloud.backupdr.v1.RegionDiskTargetEnvironmentH\000\022i\n"
+ + "#compute_instance_restore_properties\030\004 \001(\0132:.googl"
+ + "e.cloud.backupdr.v1.ComputeInstanceRestorePropertiesH\001\022R\n"
+ + "\027disk_restore_properties\030\007"
+ + " \001(\0132/.google.cloud.backupdr.v1.DiskRestorePropertiesH\001\022H\n"
+ + "\032clear_overrides_field_mask\030\010"
+ + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001H\002\210\001\001B\024\n"
+ "\022target_environmentB\025\n"
- + "\023instance_properties\"Z\n"
+ + "\023instance_propertiesB\035\n"
+ + "\033_clear_overrides_field_mask\"Z\n"
+ "\025RestoreBackupResponse\022A\n"
+ "\017target_resource\030\001 \001(\0132(.google.cloud.backupdr.v1.TargetResource\"g\n"
+ "\016TargetResource\022=\n"
@@ -601,11 +630,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017BackupVaultView\022!\n"
+ "\035BACKUP_VAULT_VIEW_UNSPECIFIED\020\000\022\033\n"
+ "\027BACKUP_VAULT_VIEW_BASIC\020\001\022\032\n"
- + "\026BACKUP_VAULT_VIEW_FULL\020\002B\300\001\n"
- + "\034com.google.cloud.backupdr.v1B\020BackupVaultProtoP\001Z8cloud.google.com/go"
- + "/backupdr/apiv1/backupdrpb;backupdrpb\252\002\030"
- + "Google.Cloud.BackupDR.V1\312\002\030Google\\Cloud\\"
- + "BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3"
+ + "\026BACKUP_VAULT_VIEW_FULL\020\002B\332\003\n"
+ + "\034com.google.cloud.backupdr.v1B\020BackupVaultProtoP\001Z8cloud.google.com/go/backup"
+ + "dr/apiv1/backupdrpb;backupdrpb\252\002\030Google."
+ + "Cloud.BackupDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1\352Am\n"
+ + "!cloudkms.googleapis.com/CryptoKey\022Hprojec"
+ + "ts/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}\352A\246\001\n"
+ + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojec"
+ + "ts/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cr"
+ + "yptoKeyVersions/{crypto_key_version}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -635,6 +668,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CreateTime",
"UpdateTime",
"BackupMinimumEnforcedRetentionDuration",
+ "BackupRetentionInheritance",
"Deletable",
"Etag",
"State",
@@ -645,9 +679,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Uid",
"Annotations",
"AccessRestriction",
+ "EncryptionConfig",
});
- internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_descriptor =
+ internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor =
internal_static_google_cloud_backupdr_v1_BackupVault_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor,
+ new java.lang.String[] {
+ "KmsKeyName",
+ });
+ internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_descriptor =
+ internal_static_google_cloud_backupdr_v1_BackupVault_descriptor.getNestedTypes().get(1);
internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_descriptor,
@@ -655,7 +698,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_backupdr_v1_BackupVault_AnnotationsEntry_descriptor =
- internal_static_google_cloud_backupdr_v1_BackupVault_descriptor.getNestedTypes().get(1);
+ internal_static_google_cloud_backupdr_v1_BackupVault_descriptor.getNestedTypes().get(2);
internal_static_google_cloud_backupdr_v1_BackupVault_AnnotationsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_backupdr_v1_BackupVault_AnnotationsEntry_descriptor,
@@ -801,6 +844,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"UpdateTime",
"Labels",
"EnforcedRetentionEndTime",
+ "BackupRetentionInheritance",
"ExpireTime",
"ConsistencyTime",
"Etag",
@@ -817,6 +861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"SatisfiesPzs",
"SatisfiesPzi",
"GcpResource",
+ "KmsKeyVersions",
"BackupProperties",
"PlanInfo",
"SourceResource",
@@ -1013,6 +1058,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"RegionDiskTargetEnvironment",
"ComputeInstanceRestoreProperties",
"DiskRestoreProperties",
+ "ClearOverridesFieldMask",
"TargetEnvironment",
"InstanceProperties",
});
@@ -1053,6 +1099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.FieldInfoProto.fieldInfo);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceDefinition);
registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequest.java
index 54cc454162fd..f24d5488de30 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequest.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequest.java
@@ -65,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.backupdr.v1.RestoreBackupRequest.Builder.class);
}
+ private int bitField0_;
private int targetEnvironmentCase_ = 0;
@SuppressWarnings("serial")
@@ -600,6 +601,98 @@ public com.google.cloud.backupdr.v1.DiskRestoreProperties getDiskRestoreProperti
return com.google.cloud.backupdr.v1.DiskRestoreProperties.getDefaultInstance();
}
+ public static final int CLEAR_OVERRIDES_FIELD_MASK_FIELD_NUMBER = 8;
+ private com.google.protobuf.FieldMask clearOverridesFieldMask_;
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clearOverridesFieldMask field is set.
+ */
+ @java.lang.Override
+ public boolean hasClearOverridesFieldMask() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clearOverridesFieldMask.
+ */
+ @java.lang.Override
+ public com.google.protobuf.FieldMask getClearOverridesFieldMask() {
+ return clearOverridesFieldMask_ == null
+ ? com.google.protobuf.FieldMask.getDefaultInstance()
+ : clearOverridesFieldMask_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.FieldMaskOrBuilder getClearOverridesFieldMaskOrBuilder() {
+ return clearOverridesFieldMask_ == null
+ ? com.google.protobuf.FieldMask.getDefaultInstance()
+ : clearOverridesFieldMask_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -640,6 +733,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
7, (com.google.cloud.backupdr.v1.DiskRestoreProperties) instanceProperties_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(8, getClearOverridesFieldMask());
+ }
getUnknownFields().writeTo(output);
}
@@ -682,6 +778,10 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
7, (com.google.cloud.backupdr.v1.DiskRestoreProperties) instanceProperties_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(8, getClearOverridesFieldMask());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -700,6 +800,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getName().equals(other.getName())) return false;
if (!getRequestId().equals(other.getRequestId())) return false;
+ if (hasClearOverridesFieldMask() != other.hasClearOverridesFieldMask()) return false;
+ if (hasClearOverridesFieldMask()) {
+ if (!getClearOverridesFieldMask().equals(other.getClearOverridesFieldMask())) return false;
+ }
if (!getTargetEnvironmentCase().equals(other.getTargetEnvironmentCase())) return false;
switch (targetEnvironmentCase_) {
case 3:
@@ -743,6 +847,10 @@ public int hashCode() {
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + getRequestId().hashCode();
+ if (hasClearOverridesFieldMask()) {
+ hash = (37 * hash) + CLEAR_OVERRIDES_FIELD_MASK_FIELD_NUMBER;
+ hash = (53 * hash) + getClearOverridesFieldMask().hashCode();
+ }
switch (targetEnvironmentCase_) {
case 3:
hash = (37 * hash) + COMPUTE_INSTANCE_TARGET_ENVIRONMENT_FIELD_NUMBER;
@@ -901,10 +1009,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.backupdr.v1.RestoreBackupRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getClearOverridesFieldMaskFieldBuilder();
+ }
}
@java.lang.Override
@@ -928,6 +1045,11 @@ public Builder clear() {
if (diskRestorePropertiesBuilder_ != null) {
diskRestorePropertiesBuilder_.clear();
}
+ clearOverridesFieldMask_ = null;
+ if (clearOverridesFieldMaskBuilder_ != null) {
+ clearOverridesFieldMaskBuilder_.dispose();
+ clearOverridesFieldMaskBuilder_ = null;
+ }
targetEnvironmentCase_ = 0;
targetEnvironment_ = null;
instancePropertiesCase_ = 0;
@@ -975,6 +1097,15 @@ private void buildPartial0(com.google.cloud.backupdr.v1.RestoreBackupRequest res
if (((from_bitField0_ & 0x00000002) != 0)) {
result.requestId_ = requestId_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.clearOverridesFieldMask_ =
+ clearOverridesFieldMaskBuilder_ == null
+ ? clearOverridesFieldMask_
+ : clearOverridesFieldMaskBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.backupdr.v1.RestoreBackupRequest result) {
@@ -1055,6 +1186,9 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.RestoreBackupRequest other
bitField0_ |= 0x00000002;
onChanged();
}
+ if (other.hasClearOverridesFieldMask()) {
+ mergeClearOverridesFieldMask(other.getClearOverridesFieldMask());
+ }
switch (other.getTargetEnvironmentCase()) {
case COMPUTE_INSTANCE_TARGET_ENVIRONMENT:
{
@@ -1167,6 +1301,13 @@ public Builder mergeFrom(
instancePropertiesCase_ = 7;
break;
} // case 58
+ case 66:
+ {
+ input.readMessage(
+ getClearOverridesFieldMaskFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2704,6 +2845,318 @@ public Builder clearDiskRestoreProperties() {
return diskRestorePropertiesBuilder_;
}
+ private com.google.protobuf.FieldMask clearOverridesFieldMask_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>
+ clearOverridesFieldMaskBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clearOverridesFieldMask field is set.
+ */
+ public boolean hasClearOverridesFieldMask() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clearOverridesFieldMask.
+ */
+ public com.google.protobuf.FieldMask getClearOverridesFieldMask() {
+ if (clearOverridesFieldMaskBuilder_ == null) {
+ return clearOverridesFieldMask_ == null
+ ? com.google.protobuf.FieldMask.getDefaultInstance()
+ : clearOverridesFieldMask_;
+ } else {
+ return clearOverridesFieldMaskBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setClearOverridesFieldMask(com.google.protobuf.FieldMask value) {
+ if (clearOverridesFieldMaskBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ clearOverridesFieldMask_ = value;
+ } else {
+ clearOverridesFieldMaskBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setClearOverridesFieldMask(
+ com.google.protobuf.FieldMask.Builder builderForValue) {
+ if (clearOverridesFieldMaskBuilder_ == null) {
+ clearOverridesFieldMask_ = builderForValue.build();
+ } else {
+ clearOverridesFieldMaskBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeClearOverridesFieldMask(com.google.protobuf.FieldMask value) {
+ if (clearOverridesFieldMaskBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && clearOverridesFieldMask_ != null
+ && clearOverridesFieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getClearOverridesFieldMaskBuilder().mergeFrom(value);
+ } else {
+ clearOverridesFieldMask_ = value;
+ }
+ } else {
+ clearOverridesFieldMaskBuilder_.mergeFrom(value);
+ }
+ if (clearOverridesFieldMask_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearClearOverridesFieldMask() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ clearOverridesFieldMask_ = null;
+ if (clearOverridesFieldMaskBuilder_ != null) {
+ clearOverridesFieldMaskBuilder_.dispose();
+ clearOverridesFieldMaskBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.FieldMask.Builder getClearOverridesFieldMaskBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getClearOverridesFieldMaskFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.FieldMaskOrBuilder getClearOverridesFieldMaskOrBuilder() {
+ if (clearOverridesFieldMaskBuilder_ != null) {
+ return clearOverridesFieldMaskBuilder_.getMessageOrBuilder();
+ } else {
+ return clearOverridesFieldMask_ == null
+ ? com.google.protobuf.FieldMask.getDefaultInstance()
+ : clearOverridesFieldMask_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>
+ getClearOverridesFieldMaskFieldBuilder() {
+ if (clearOverridesFieldMaskBuilder_ == null) {
+ clearOverridesFieldMaskBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>(
+ getClearOverridesFieldMask(), getParentForChildren(), isClean());
+ clearOverridesFieldMask_ = null;
+ }
+ return clearOverridesFieldMaskBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequestOrBuilder.java
index 1fd38f6fb56d..da19de2bf36c 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequestOrBuilder.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequestOrBuilder.java
@@ -315,6 +315,82 @@ public interface RestoreBackupRequestOrBuilder
*/
com.google.cloud.backupdr.v1.DiskRestorePropertiesOrBuilder getDiskRestorePropertiesOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clearOverridesFieldMask field is set.
+ */
+ boolean hasClearOverridesFieldMask();
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clearOverridesFieldMask.
+ */
+ com.google.protobuf.FieldMask getClearOverridesFieldMask();
+
+ /**
+ *
+ *
+ *
+ * Optional. A field mask used to clear server-side default values
+ * for fields within the `instance_properties` oneof.
+ *
+ * When a field in this mask is cleared, the server will not apply its
+ * default logic (like inheriting a value from the source) for that field.
+ *
+ * The most common current use case is clearing default encryption keys.
+ *
+ * Examples of field mask paths:
+ * - Compute Instance Disks:
+ * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ * - Single Disk: `disk_restore_properties.disk_encryption_key`
+ *
+ *
+ *
+ * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.FieldMaskOrBuilder getClearOverridesFieldMaskOrBuilder();
+
com.google.cloud.backupdr.v1.RestoreBackupRequest.TargetEnvironmentCase
getTargetEnvironmentCase();
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto
index b8d17f9913b8..8e82cbdb8783 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto
@@ -35,6 +35,14 @@ option java_outer_classname = "BackupVaultProto";
option java_package = "com.google.cloud.backupdr.v1";
option php_namespace = "Google\\Cloud\\BackupDR\\V1";
option ruby_package = "Google::Cloud::BackupDR::V1";
+option (google.api.resource_definition) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ pattern: "projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudkms.googleapis.com/CryptoKeyVersion"
+ pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}"
+};
// Message describing a BackupVault object.
message BackupVault {
@@ -45,6 +53,28 @@ message BackupVault {
singular: "backupVault"
};
+ // How a backup's enforced retention end time is inherited.
+ enum BackupRetentionInheritance {
+ // Inheritance behavior not set. This will default to
+ // `INHERIT_VAULT_RETENTION`.
+ BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0;
+
+ // The enforced retention end time of a backup will be inherited from the
+ // backup vault's `backup_minimum_enforced_retention_duration` field.
+ //
+ // This is the default behavior.
+ INHERIT_VAULT_RETENTION = 1;
+
+ // The enforced retention end time of a backup will always match the expire
+ // time of the backup.
+ //
+ // If this is set, the backup's enforced retention end time will be set to
+ // match the expire time during creation of the backup. When updating, the
+ // ERET and expire time must be updated together and have the same value.
+ // Invalid update requests will be rejected by the server.
+ MATCH_BACKUP_EXPIRE_TIME = 2;
+ }
+
// Holds the state of the backup vault resource.
enum State {
// State not set.
@@ -87,6 +117,21 @@ message BackupVault {
WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA = 4;
}
+ // Message describing the EncryptionConfig of backup vault.
+ // This determines how data within the vault is encrypted at rest.
+ message EncryptionConfig {
+ // Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+ // Must be in the same region as the vault. Some workload backups like
+ // compute disk backups may use their inherited source key instead. Format:
+ // projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+ optional string kms_key_name = 1 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+ }
+
// Output only. Identifier. Name of the backup vault to create. It must have
// the
// format`"projects/{project}/locations/{location}/backupVaults/{backupvault}"`.
@@ -118,6 +163,11 @@ message BackupVault {
optional google.protobuf.Duration backup_minimum_enforced_retention_duration =
20 [(google.api.field_behavior) = REQUIRED];
+ // Optional. Setting for how a backup's enforced retention end time is
+ // inherited.
+ optional BackupRetentionInheritance backup_retention_inheritance = 27
+ [(google.api.field_behavior) = OPTIONAL];
+
// Output only. Set to true when there are no backups nested under this
// resource.
optional bool deletable = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -161,6 +211,10 @@ message BackupVault {
// Default value is WITHIN_ORGANIZATION if not provided during creation.
AccessRestriction access_restriction = 24
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The encryption config of the backup vault.
+ optional EncryptionConfig encryption_config = 29
+ [(google.api.field_behavior) = OPTIONAL];
}
// Message describing a DataSource object.
@@ -569,6 +623,11 @@ message Backup {
optional google.protobuf.Timestamp enforced_retention_end_time = 6
[(google.api.field_behavior) = OPTIONAL];
+ // Output only. Setting for how the enforced retention end time is inherited.
+ // This value is copied from this backup's BackupVault.
+ optional BackupVault.BackupRetentionInheritance backup_retention_inheritance =
+ 30 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Optional. When this backup is automatically expired.
optional google.protobuf.Timestamp expire_time = 7
[(google.api.field_behavior) = OPTIONAL];
@@ -645,6 +704,15 @@ message Backup {
BackupGcpResource gcp_resource = 31
[(google.api.field_behavior) = OUTPUT_ONLY];
}
+
+ // Optional. Output only. The list of KMS key versions used to encrypt the
+ // backup.
+ repeated string kms_key_versions = 33 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKeyVersion"
+ }
+ ];
}
// Message for creating a BackupVault.
@@ -1223,6 +1291,21 @@ message RestoreBackupRequest {
// Disk properties to be overridden during restore.
DiskRestoreProperties disk_restore_properties = 7;
}
+
+ // Optional. A field mask used to clear server-side default values
+ // for fields within the `instance_properties` oneof.
+ //
+ // When a field in this mask is cleared, the server will not apply its
+ // default logic (like inheriting a value from the source) for that field.
+ //
+ // The most common current use case is clearing default encryption keys.
+ //
+ // Examples of field mask paths:
+ // - Compute Instance Disks:
+ // `compute_instance_restore_properties.disks.*.disk_encryption_key`
+ // - Single Disk: `disk_restore_properties.disk_encryption_key`
+ optional google.protobuf.FieldMask clear_overrides_field_mask = 8
+ [(google.api.field_behavior) = OPTIONAL];
}
// Response message for restoring from a Backup.
diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackup.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackup.java
index 600feb8fcf39..8ff5fdde2add 100644
--- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackup.java
+++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackup.java
@@ -22,6 +22,7 @@
import com.google.cloud.backupdr.v1.BackupName;
import com.google.cloud.backupdr.v1.RestoreBackupRequest;
import com.google.longrunning.Operation;
+import com.google.protobuf.FieldMask;
public class AsyncRestoreBackup {
@@ -43,6 +44,7 @@ public static void asyncRestoreBackup() throws Exception {
"[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
.toString())
.setRequestId("requestId693933066")
+ .setClearOverridesFieldMask(FieldMask.newBuilder().build())
.build();
ApiFuture future = backupDRClient.restoreBackupCallable().futureCall(request);
// Do something.
diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackupLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackupLRO.java
index 4f92ff5bd63b..9d62c08b6996 100644
--- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackupLRO.java
+++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackupLRO.java
@@ -23,6 +23,7 @@
import com.google.cloud.backupdr.v1.OperationMetadata;
import com.google.cloud.backupdr.v1.RestoreBackupRequest;
import com.google.cloud.backupdr.v1.RestoreBackupResponse;
+import com.google.protobuf.FieldMask;
public class AsyncRestoreBackupLRO {
@@ -44,6 +45,7 @@ public static void asyncRestoreBackupLRO() throws Exception {
"[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
.toString())
.setRequestId("requestId693933066")
+ .setClearOverridesFieldMask(FieldMask.newBuilder().build())
.build();
OperationFuture future =
backupDRClient.restoreBackupOperationCallable().futureCall(request);
diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/SyncRestoreBackup.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/SyncRestoreBackup.java
index 4cdc2f37bdde..40afd15154db 100644
--- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/SyncRestoreBackup.java
+++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/SyncRestoreBackup.java
@@ -21,6 +21,7 @@
import com.google.cloud.backupdr.v1.BackupName;
import com.google.cloud.backupdr.v1.RestoreBackupRequest;
import com.google.cloud.backupdr.v1.RestoreBackupResponse;
+import com.google.protobuf.FieldMask;
public class SyncRestoreBackup {
@@ -42,6 +43,7 @@ public static void syncRestoreBackup() throws Exception {
"[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
.toString())
.setRequestId("requestId693933066")
+ .setClearOverridesFieldMask(FieldMask.newBuilder().build())
.build();
RestoreBackupResponse response = backupDRClient.restoreBackupAsync(request).get();
}
diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md
index dcaddabc165d..d3b09a15a0a6 100644
--- a/java-bare-metal-solution/README.md
+++ b/java-bare-metal-solution/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bare-metal-solution
- 0.78.0
+ 0.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.78.0'
+implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.80.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-batch/README.md b/java-batch/README.md
index 78ba3ee21fb1..243fb4106b86 100644
--- a/java-batch/README.md
+++ b/java-batch/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-batch
- 0.78.0
+ 0.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-batch:0.78.0'
+implementation 'com.google.cloud:google-cloud-batch:0.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.80.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
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 5037e0e1d9bd..b95b4e3e0cb9 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
@@ -130,9 +130,31 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum
* This old model will still be supported.
*
*
- * PREEMPTIBLE = 3;
+ * PREEMPTIBLE = 3 [deprecated = true];
*/
+ @java.lang.Deprecated
PREEMPTIBLE(3),
+ /**
+ *
+ *
+ *
+ * Bound to the lifecycle of the reservation in which it is provisioned.
+ *
+ *
+ * RESERVATION_BOUND = 4;
+ */
+ RESERVATION_BOUND(4),
+ /**
+ *
+ *
+ *
+ * Instance is provisioned with DWS Flex Start and has limited max run
+ * duration.
+ *
+ *
+ * FLEX_START = 5;
+ */
+ FLEX_START(5),
UNRECOGNIZED(-1),
;
@@ -181,9 +203,32 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum
* This old model will still be supported.
*
*
- * PREEMPTIBLE = 3;
+ * PREEMPTIBLE = 3 [deprecated = true];
*/
- public static final int PREEMPTIBLE_VALUE = 3;
+ @java.lang.Deprecated public static final int PREEMPTIBLE_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * Bound to the lifecycle of the reservation in which it is provisioned.
+ *
+ *
+ * RESERVATION_BOUND = 4;
+ */
+ public static final int RESERVATION_BOUND_VALUE = 4;
+
+ /**
+ *
+ *
+ *
+ * Instance is provisioned with DWS Flex Start and has limited max run
+ * duration.
+ *
+ *
+ * FLEX_START = 5;
+ */
+ public static final int FLEX_START_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -217,6 +262,10 @@ public static ProvisioningModel forNumber(int value) {
return SPOT;
case 3:
return PREEMPTIBLE;
+ case 4:
+ return RESERVATION_BOUND;
+ case 5:
+ return FLEX_START;
default:
return null;
}
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 abf082c1d908..96219608fd87 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
@@ -215,7 +215,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\"\201\017\n"
+ + "\022TASK_STATE_CHANGED\020\002\"\255\017\n"
+ "\020AllocationPolicy\022H\n"
+ "\010location\030\001"
+ " \001(\01326.google.cloud.batch.v1.AllocationPolicy.LocationPolicy\022S\n"
@@ -280,12 +280,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014max_distance\030\002 \001(\003\032-\n"
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001\"`\n"
+ + "\005value\030\002 \001(\t:\0028\001\"\213\001\n"
+ "\021ProvisioningModel\022\"\n"
+ "\036PROVISIONING_MODEL_UNSPECIFIED\020\000\022\014\n"
+ "\010STANDARD\020\001\022\010\n"
- + "\004SPOT\020\002\022\017\n"
- + "\013PREEMPTIBLE\020\003\"\313\004\n"
+ + "\004SPOT\020\002\022\023\n"
+ + "\013PREEMPTIBLE\020\003\032\002\010\001\022\025\n"
+ + "\021RESERVATION_BOUND\020\004\022\016\n\n"
+ + "FLEX_START\020\005\"\313\004\n"
+ "\tTaskGroup\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\0227\n"
+ "\ttask_spec\030\003"
@@ -304,15 +306,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}/loc"
- + "ations/{location}/jobs/{job}/taskGroups/{task_group}\"/\n"
+ + "\036batch.googleapis.com/TaskGroup\022Jprojects/{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.google.co"
- + "m/go/batch/apiv1/batchpb;batchpb\242\002\003GCB\252\002"
- + "\025Google.Cloud.Batch.V1\312\002\025Google\\Cloud\\Ba"
- + "tch\\V1\352\002\030Google::Cloud::Batch::V1b\006proto3"
+ + "\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"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
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 14c1e576103d..99192f80876a 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
@@ -559,7 +559,14 @@ message AllocationPolicy {
// old preemptible VM model (indicated by this field) is the older model,
// and has been migrated to use the SPOT model as the underlying technology.
// This old model will still be supported.
- PREEMPTIBLE = 3;
+ PREEMPTIBLE = 3 [deprecated = true];
+
+ // Bound to the lifecycle of the reservation in which it is provisioned.
+ RESERVATION_BOUND = 4;
+
+ // Instance is provisioned with DWS Flex Start and has limited max run
+ // duration.
+ FLEX_START = 5;
}
// Location where compute resources should be allocated for the Job.
diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md
index 35a449052b46..d288c6de0d01 100644
--- a/java-beyondcorp-appconnections/README.md
+++ b/java-beyondcorp-appconnections/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-beyondcorp-appconnections
- 0.76.0
+ 0.78.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.76.0'
+implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.78.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.76.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.78.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.76.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.78.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md
index 36df0d9c4ab6..53f36b3e6be3 100644
--- a/java-beyondcorp-appconnectors/README.md
+++ b/java-beyondcorp-appconnectors/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-beyondcorp-appconnectors
- 0.76.0
+ 0.78.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.76.0'
+implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.78.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.76.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.78.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.76.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.78.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md
index 91513cc03352..1c4a242712f3 100644
--- a/java-beyondcorp-appgateways/README.md
+++ b/java-beyondcorp-appgateways/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-beyondcorp-appgateways
- 0.76.0
+ 0.78.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.76.0'
+implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.78.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.76.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.78.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.76.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.78.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md
index 649ea0ab1a0d..cbfd42df7c80 100644
--- a/java-beyondcorp-clientconnectorservices/README.md
+++ b/java-beyondcorp-clientconnectorservices/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-beyondcorp-clientconnectorservices
- 0.76.0
+ 0.78.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.76.0'
+implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.78.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.76.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.78.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.76.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.78.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md
index b7cfcffc570a..91bf5bb41aa9 100644
--- a/java-beyondcorp-clientgateways/README.md
+++ b/java-beyondcorp-clientgateways/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-beyondcorp-clientgateways
- 0.76.0
+ 0.78.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.76.0'
+implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.78.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.76.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.78.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.76.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.78.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-biglake/README.md b/java-biglake/README.md
index 7f4b0783ccf2..0d7cc421d8c7 100644
--- a/java-biglake/README.md
+++ b/java-biglake/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-biglake
- 0.66.0
+ 0.68.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-biglake:0.66.0'
+implementation 'com.google.cloud:google-cloud-biglake:0.68.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.66.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.68.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.66.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.68.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md
index 4adb501ea090..3c1d69ce9442 100644
--- a/java-bigquery-data-exchange/README.md
+++ b/java-bigquery-data-exchange/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquery-data-exchange
- 2.73.0
+ 2.75.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.73.0'
+implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.75.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.73.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.75.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.73.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.75.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md
index eae4cfef1bea..3d9eff99c0be 100644
--- a/java-bigqueryconnection/README.md
+++ b/java-bigqueryconnection/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigqueryconnection
- 2.80.0
+ 2.82.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.80.0'
+implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.82.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.80.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.82.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.80.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.82.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md
index 6478399d66f4..b4dc80731f60 100644
--- a/java-bigquerydatapolicy/README.md
+++ b/java-bigquerydatapolicy/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquerydatapolicy
- 0.75.0
+ 0.77.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.75.0'
+implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.77.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.75.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.77.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.75.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.77.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md
index 15d2ac1728f8..e8004651d548 100644
--- a/java-bigquerydatatransfer/README.md
+++ b/java-bigquerydatatransfer/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquerydatatransfer
- 2.78.0
+ 2.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.78.0'
+implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.80.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md
index d2d2ac0f0062..97ad77d0a419 100644
--- a/java-bigquerymigration/README.md
+++ b/java-bigquerymigration/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigquerymigration
- 0.81.0
+ 0.83.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigquerymigration:0.81.0'
+implementation 'com.google.cloud:google-cloud-bigquerymigration:0.83.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.81.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.83.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.81.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.83.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md
index 3f406aabd58a..570806eabf77 100644
--- a/java-bigqueryreservation/README.md
+++ b/java-bigqueryreservation/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-bigqueryreservation
- 2.79.0
+ 2.81.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.79.0'
+implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.81.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.79.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.81.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.79.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.81.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-billing/README.md b/java-billing/README.md
index 70c7bc7480f6..bfa9073f06e0 100644
--- a/java-billing/README.md
+++ b/java-billing/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-billing
- 2.78.0
+ 2.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-billing:2.78.0'
+implementation 'com.google.cloud:google-cloud-billing:2.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.80.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md
index b10a86f2d700..10f2fa4cb803 100644
--- a/java-billingbudgets/README.md
+++ b/java-billingbudgets/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-billingbudgets
- 2.78.0
+ 2.80.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-billingbudgets:2.78.0'
+implementation 'com.google.cloud:google-cloud-billingbudgets:2.80.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.80.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.80.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md
index 78d6d3f18102..2d12e89e9ebf 100644
--- a/java-binary-authorization/README.md
+++ b/java-binary-authorization/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-binary-authorization
- 1.77.0
+ 1.79.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-binary-authorization:1.77.0'
+implementation 'com.google.cloud:google-cloud-binary-authorization:1.79.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.77.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.79.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.77.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.79.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md
index 86d2f7a88701..96aed84127da 100644
--- a/java-capacityplanner/README.md
+++ b/java-capacityplanner/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-capacityplanner
- 0.1.0
+ 0.3.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-capacityplanner:0.1.0'
+implementation 'com.google.cloud:google-cloud-capacityplanner:0.3.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.1.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.3.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-capacityplanner.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.1.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.3.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md
index 1e8b08202569..688f8077d34f 100644
--- a/java-certificate-manager/README.md
+++ b/java-certificate-manager/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-certificate-manager
- 0.81.0
+ 0.83.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-certificate-manager:0.81.0'
+implementation 'com.google.cloud:google-cloud-certificate-manager:0.83.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.81.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.83.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.81.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.83.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-channel/README.md b/java-channel/README.md
index e5d756e10a5e..f554acb4da3f 100644
--- a/java-channel/README.md
+++ b/java-channel/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-channel
- 3.82.0
+ 3.84.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-channel:3.82.0'
+implementation 'com.google.cloud:google-cloud-channel:3.84.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.82.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.84.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.82.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.84.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java
index c905b1b1bb11..0cbdb62ae602 100644
--- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java
+++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java
@@ -1218,7 +1218,7 @@
*
*
* RegisterSubscriber
- * Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this Channel Services account. After you create a subscriber, you get the events through [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
+ *
Registers a service account with subscriber privileges on the Pub/Sub topic for this Channel Services account or integrator. After you create a subscriber, you get the events through [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
*
Possible error codes:
*
* - PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin.
@@ -1240,7 +1240,7 @@
*
*
* UnregisterSubscriber
- * Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. If there are no service accounts left with subscriber privileges, this deletes the topic. You can call ListSubscribers to check for these accounts.
+ *
Unregisters a service account with subscriber privileges on the Pub/Sub topic created for this Channel Services account or integrator. If there are no service accounts left with subscriber privileges, this deletes the topic. You can call ListSubscribers to check for these accounts.
*
Possible error codes:
*
* - PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin.
@@ -1263,7 +1263,7 @@
*
*
* ListSubscribers
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account.
+ *
Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel Services account or integrator.
*
Possible error codes:
*
* - PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin.
@@ -3521,6 +3521,7 @@ public final OperationFuture
changeRenewalSettin
* .setPurchaseOrderId("purchaseOrderId2029917384")
* .setRequestId("requestId693933066")
* .setBillingAccount("billingAccount708726578")
+ * .setPriceReferenceId("priceReferenceId-5103427")
* .build();
* Entitlement response = cloudChannelServiceClient.changeOfferAsync(request).get();
* }
@@ -3576,6 +3577,7 @@ public final OperationFuture changeOfferAsync(
* .setPurchaseOrderId("purchaseOrderId2029917384")
* .setRequestId("requestId693933066")
* .setBillingAccount("billingAccount708726578")
+ * .setPriceReferenceId("priceReferenceId-5103427")
* .build();
* OperationFuture future =
* cloudChannelServiceClient.changeOfferOperationCallable().futureCall(request);
@@ -3631,6 +3633,7 @@ public final OperationFuture changeOfferAsync(
* .setPurchaseOrderId("purchaseOrderId2029917384")
* .setRequestId("requestId693933066")
* .setBillingAccount("billingAccount708726578")
+ * .setPriceReferenceId("priceReferenceId-5103427")
* .build();
* ApiFuture future =
* cloudChannelServiceClient.changeOfferCallable().futureCall(request);
@@ -8716,8 +8719,8 @@ public final QueryEligibleBillingAccountsResponse queryEligibleBillingAccounts(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this
- * Channel Services account. After you create a subscriber, you get the events through
+ * Registers a service account with subscriber privileges on the Pub/Sub topic for this Channel
+ * Services account or integrator. After you create a subscriber, you get the events through
* [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
*
* Possible error codes:
@@ -8745,8 +8748,9 @@ public final QueryEligibleBillingAccountsResponse queryEligibleBillingAccounts(
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
* RegisterSubscriberRequest request =
* RegisterSubscriberRequest.newBuilder()
- * .setAccount("account-1177318867")
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
* .setServiceAccount("serviceAccount1079137720")
+ * .setIntegrator("integrator-1902360937")
* .build();
* RegisterSubscriberResponse response = cloudChannelServiceClient.registerSubscriber(request);
* }
@@ -8761,8 +8765,8 @@ public final RegisterSubscriberResponse registerSubscriber(RegisterSubscriberReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this
- * Channel Services account. After you create a subscriber, you get the events through
+ * Registers a service account with subscriber privileges on the Pub/Sub topic for this Channel
+ * Services account or integrator. After you create a subscriber, you get the events through
* [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
*
*
Possible error codes:
@@ -8790,8 +8794,9 @@ public final RegisterSubscriberResponse registerSubscriber(RegisterSubscriberReq
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
* RegisterSubscriberRequest request =
* RegisterSubscriberRequest.newBuilder()
- * .setAccount("account-1177318867")
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
* .setServiceAccount("serviceAccount1079137720")
+ * .setIntegrator("integrator-1902360937")
* .build();
* ApiFuture future =
* cloudChannelServiceClient.registerSubscriberCallable().futureCall(request);
@@ -8807,8 +8812,8 @@ public final RegisterSubscriberResponse registerSubscriber(RegisterSubscriberReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for
- * this Channel Services account. If there are no service accounts left with subscriber
+ * Unregisters a service account with subscriber privileges on the Pub/Sub topic created for this
+ * Channel Services account or integrator. If there are no service accounts left with subscriber
* privileges, this deletes the topic. You can call ListSubscribers to check for these accounts.
*
* Possible error codes:
@@ -8838,8 +8843,9 @@ public final RegisterSubscriberResponse registerSubscriber(RegisterSubscriberReq
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
* UnregisterSubscriberRequest request =
* UnregisterSubscriberRequest.newBuilder()
- * .setAccount("account-1177318867")
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
* .setServiceAccount("serviceAccount1079137720")
+ * .setIntegrator("integrator-1902360937")
* .build();
* UnregisterSubscriberResponse response =
* cloudChannelServiceClient.unregisterSubscriber(request);
@@ -8856,8 +8862,8 @@ public final UnregisterSubscriberResponse unregisterSubscriber(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for
- * this Channel Services account. If there are no service accounts left with subscriber
+ * Unregisters a service account with subscriber privileges on the Pub/Sub topic created for this
+ * Channel Services account or integrator. If there are no service accounts left with subscriber
* privileges, this deletes the topic. You can call ListSubscribers to check for these accounts.
*
*
Possible error codes:
@@ -8887,8 +8893,9 @@ public final UnregisterSubscriberResponse unregisterSubscriber(
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
* UnregisterSubscriberRequest request =
* UnregisterSubscriberRequest.newBuilder()
- * .setAccount("account-1177318867")
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
* .setServiceAccount("serviceAccount1079137720")
+ * .setIntegrator("integrator-1902360937")
* .build();
* ApiFuture future =
* cloudChannelServiceClient.unregisterSubscriberCallable().futureCall(request);
@@ -8904,8 +8911,8 @@ public final UnregisterSubscriberResponse unregisterSubscriber(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this
- * Channel Services account.
+ * Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel
+ * Services account or integrator.
*
* Possible error codes:
*
@@ -8933,9 +8940,10 @@ public final UnregisterSubscriberResponse unregisterSubscriber(
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
* ListSubscribersRequest request =
* ListSubscribersRequest.newBuilder()
- * .setAccount("account-1177318867")
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setIntegrator("integrator-1902360937")
* .build();
* for (String element : cloudChannelServiceClient.listSubscribers(request).iterateAll()) {
* // doThingsWith(element);
@@ -8952,8 +8960,8 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this
- * Channel Services account.
+ * Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel
+ * Services account or integrator.
*
*
Possible error codes:
*
@@ -8981,9 +8989,10 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
* ListSubscribersRequest request =
* ListSubscribersRequest.newBuilder()
- * .setAccount("account-1177318867")
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setIntegrator("integrator-1902360937")
* .build();
* ApiFuture future =
* cloudChannelServiceClient.listSubscribersPagedCallable().futureCall(request);
@@ -9001,8 +9010,8 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this
- * Channel Services account.
+ * Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel
+ * Services account or integrator.
*
* Possible error codes:
*
@@ -9030,9 +9039,10 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
* ListSubscribersRequest request =
* ListSubscribersRequest.newBuilder()
- * .setAccount("account-1177318867")
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setIntegrator("integrator-1902360937")
* .build();
* while (true) {
* ListSubscribersResponse response =
diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java
index e968b35ab6a6..9a3dd193adf0 100644
--- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java
+++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java
@@ -1445,6 +1445,7 @@ protected GrpcCloudChannelServiceStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("account", String.valueOf(request.getAccount()));
+ builder.add("integrator", String.valueOf(request.getIntegrator()));
return builder.build();
})
.build();
@@ -1456,6 +1457,7 @@ protected GrpcCloudChannelServiceStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("account", String.valueOf(request.getAccount()));
+ builder.add("integrator", String.valueOf(request.getIntegrator()));
return builder.build();
})
.build();
@@ -1467,6 +1469,7 @@ protected GrpcCloudChannelServiceStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("account", String.valueOf(request.getAccount()));
+ builder.add("integrator", String.valueOf(request.getIntegrator()));
return builder.build();
})
.build();
diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java
index 0d98d5ba5261..08fb08f90f7e 100644
--- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java
+++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java
@@ -1952,8 +1952,13 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "account", request.getAccount());
+ if (request.hasIntegrator()) {
+ serializer.putPathParam(
+ fields, "integrator", request.getIntegrator());
+ }
return fields;
})
+ .setAdditionalPaths("/v1/{integrator=integrators/*}:registerSubscriber")
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
@@ -1965,7 +1970,10 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearAccount().build(), true))
+ .toBody(
+ "*",
+ request.toBuilder().clearAccount().clearIntegrator().build(),
+ true))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1991,8 +1999,13 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "account", request.getAccount());
+ if (request.hasIntegrator()) {
+ serializer.putPathParam(
+ fields, "integrator", request.getIntegrator());
+ }
return fields;
})
+ .setAdditionalPaths("/v1/{integrator=integrators/*}:unregisterSubscriber")
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
@@ -2004,7 +2017,10 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearAccount().build(), true))
+ .toBody(
+ "*",
+ request.toBuilder().clearAccount().clearIntegrator().build(),
+ true))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -2028,8 +2044,13 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "account", request.getAccount());
+ if (request.hasIntegrator()) {
+ serializer.putPathParam(
+ fields, "integrator", request.getIntegrator());
+ }
return fields;
})
+ .setAdditionalPaths("/v1/{integrator=integrators/*}:listSubscribers")
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
@@ -2853,6 +2874,7 @@ protected HttpJsonCloudChannelServiceStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("account", String.valueOf(request.getAccount()));
+ builder.add("integrator", String.valueOf(request.getIntegrator()));
return builder.build();
})
.build();
@@ -2866,6 +2888,7 @@ protected HttpJsonCloudChannelServiceStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("account", String.valueOf(request.getAccount()));
+ builder.add("integrator", String.valueOf(request.getIntegrator()));
return builder.build();
})
.build();
@@ -2878,6 +2901,7 @@ protected HttpJsonCloudChannelServiceStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("account", String.valueOf(request.getAccount()));
+ builder.add("integrator", String.valueOf(request.getIntegrator()));
return builder.build();
})
.build();
diff --git a/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json b/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json
index 48e99e97ce09..987a2b4843c9 100644
--- a/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json
+++ b/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json
@@ -1079,6 +1079,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.channel.v1.DiscountComponent",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.channel.v1.DiscountComponent$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.channel.v1.DiscountType",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.channel.v1.EduData",
"queryAllDeclaredConstructors": true,
diff --git a/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientHttpJsonTest.java b/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientHttpJsonTest.java
index 018c503c0d60..df644614100d 100644
--- a/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientHttpJsonTest.java
+++ b/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientHttpJsonTest.java
@@ -914,6 +914,7 @@ public void getEntitlementTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
mockService.addResponse(expectedResponse);
@@ -975,6 +976,7 @@ public void createEntitlementTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1045,6 +1047,7 @@ public void changeParametersTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1118,6 +1121,7 @@ public void changeRenewalSettingsTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1189,6 +1193,7 @@ public void changeOfferTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1206,6 +1211,7 @@ public void changeOfferTest() throws Exception {
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Entitlement actualResponse = client.changeOfferAsync(request).get();
@@ -1243,6 +1249,7 @@ public void changeOfferExceptionTest() throws Exception {
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
client.changeOfferAsync(request).get();
Assert.fail("No exception raised");
@@ -1266,6 +1273,7 @@ public void startPaidServiceTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1335,6 +1343,7 @@ public void suspendEntitlementTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1458,6 +1467,7 @@ public void activateEntitlementTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -3397,8 +3407,9 @@ public void registerSubscriberTest() throws Exception {
RegisterSubscriberRequest request =
RegisterSubscriberRequest.newBuilder()
- .setAccount("accounts/account-7630")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
RegisterSubscriberResponse actualResponse = client.registerSubscriber(request);
@@ -3429,8 +3440,9 @@ public void registerSubscriberExceptionTest() throws Exception {
try {
RegisterSubscriberRequest request =
RegisterSubscriberRequest.newBuilder()
- .setAccount("accounts/account-7630")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
client.registerSubscriber(request);
Assert.fail("No exception raised");
@@ -3447,8 +3459,9 @@ public void unregisterSubscriberTest() throws Exception {
UnregisterSubscriberRequest request =
UnregisterSubscriberRequest.newBuilder()
- .setAccount("accounts/account-7630")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
UnregisterSubscriberResponse actualResponse = client.unregisterSubscriber(request);
@@ -3479,8 +3492,9 @@ public void unregisterSubscriberExceptionTest() throws Exception {
try {
UnregisterSubscriberRequest request =
UnregisterSubscriberRequest.newBuilder()
- .setAccount("accounts/account-7630")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
client.unregisterSubscriber(request);
Assert.fail("No exception raised");
@@ -3501,9 +3515,10 @@ public void listSubscribersTest() throws Exception {
ListSubscribersRequest request =
ListSubscribersRequest.newBuilder()
- .setAccount("accounts/account-7630")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
+ .setIntegrator("integrator-1902360937")
.build();
ListSubscribersPagedResponse pagedListResponse = client.listSubscribers(request);
@@ -3538,9 +3553,10 @@ public void listSubscribersExceptionTest() throws Exception {
try {
ListSubscribersRequest request =
ListSubscribersRequest.newBuilder()
- .setAccount("accounts/account-7630")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
+ .setIntegrator("integrator-1902360937")
.build();
client.listSubscribers(request);
Assert.fail("No exception raised");
diff --git a/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java b/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java
index 743f6e0dda64..8e022a496521 100644
--- a/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java
+++ b/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java
@@ -849,6 +849,7 @@ public void getEntitlementTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
mockCloudChannelService.addResponse(expectedResponse);
@@ -904,6 +905,7 @@ public void createEntitlementTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -973,6 +975,7 @@ public void changeParametersTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1045,6 +1048,7 @@ public void changeRenewalSettingsTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1115,6 +1119,7 @@ public void changeOfferTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1132,6 +1137,7 @@ public void changeOfferTest() throws Exception {
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Entitlement actualResponse = client.changeOfferAsync(request).get();
@@ -1147,6 +1153,7 @@ public void changeOfferTest() throws Exception {
Assert.assertEquals(request.getPurchaseOrderId(), actualRequest.getPurchaseOrderId());
Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId());
Assert.assertEquals(request.getBillingAccount(), actualRequest.getBillingAccount());
+ Assert.assertEquals(request.getPriceReferenceId(), actualRequest.getPriceReferenceId());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1167,6 +1174,7 @@ public void changeOfferExceptionTest() throws Exception {
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
client.changeOfferAsync(request).get();
Assert.fail("No exception raised");
@@ -1193,6 +1201,7 @@ public void startPaidServiceTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1259,6 +1268,7 @@ public void suspendEntitlementTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1376,6 +1386,7 @@ public void activateEntitlementTest() throws Exception {
.setAssociationInfo(AssociationInfo.newBuilder().build())
.addAllParameters(new ArrayList())
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -3149,8 +3160,9 @@ public void registerSubscriberTest() throws Exception {
RegisterSubscriberRequest request =
RegisterSubscriberRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
RegisterSubscriberResponse actualResponse = client.registerSubscriber(request);
@@ -3162,6 +3174,7 @@ public void registerSubscriberTest() throws Exception {
Assert.assertEquals(request.getAccount(), actualRequest.getAccount());
Assert.assertEquals(request.getServiceAccount(), actualRequest.getServiceAccount());
+ Assert.assertEquals(request.getIntegrator(), actualRequest.getIntegrator());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -3176,8 +3189,9 @@ public void registerSubscriberExceptionTest() throws Exception {
try {
RegisterSubscriberRequest request =
RegisterSubscriberRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
client.registerSubscriber(request);
Assert.fail("No exception raised");
@@ -3194,8 +3208,9 @@ public void unregisterSubscriberTest() throws Exception {
UnregisterSubscriberRequest request =
UnregisterSubscriberRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
UnregisterSubscriberResponse actualResponse = client.unregisterSubscriber(request);
@@ -3208,6 +3223,7 @@ public void unregisterSubscriberTest() throws Exception {
Assert.assertEquals(request.getAccount(), actualRequest.getAccount());
Assert.assertEquals(request.getServiceAccount(), actualRequest.getServiceAccount());
+ Assert.assertEquals(request.getIntegrator(), actualRequest.getIntegrator());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -3222,8 +3238,9 @@ public void unregisterSubscriberExceptionTest() throws Exception {
try {
UnregisterSubscriberRequest request =
UnregisterSubscriberRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
client.unregisterSubscriber(request);
Assert.fail("No exception raised");
@@ -3244,9 +3261,10 @@ public void listSubscribersTest() throws Exception {
ListSubscribersRequest request =
ListSubscribersRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
+ .setIntegrator("integrator-1902360937")
.build();
ListSubscribersPagedResponse pagedListResponse = client.listSubscribers(request);
@@ -3263,6 +3281,7 @@ public void listSubscribersTest() throws Exception {
Assert.assertEquals(request.getAccount(), actualRequest.getAccount());
Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+ Assert.assertEquals(request.getIntegrator(), actualRequest.getIntegrator());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -3277,9 +3296,10 @@ public void listSubscribersExceptionTest() throws Exception {
try {
ListSubscribersRequest request =
ListSubscribersRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
+ .setIntegrator("integrator-1902360937")
.build();
client.listSubscribers(request);
Assert.fail("No exception raised");
diff --git a/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java b/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java
index 86f93e5c8cef..87c2d3cf8b40 100644
--- a/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java
+++ b/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java
@@ -3845,8 +3845,8 @@ default void queryEligibleBillingAccounts(
*
*
*
- * Registers a service account with subscriber privileges on the Cloud Pub/Sub
- * topic for this Channel Services account. After you create a
+ * Registers a service account with subscriber privileges on the Pub/Sub
+ * topic for this Channel Services account or integrator. After you create a
* subscriber, you get the events through
* [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
* Possible error codes:
@@ -3874,10 +3874,10 @@ default void registerSubscriber(
*
*
*
- * Unregisters a service account with subscriber privileges on the Cloud
- * Pub/Sub topic created for this Channel Services account. If there are no
- * service accounts left with subscriber privileges, this deletes the topic.
- * You can call ListSubscribers to check for these accounts.
+ * Unregisters a service account with subscriber privileges on the Pub/Sub
+ * topic created for this Channel Services account or integrator. If there are
+ * no service accounts left with subscriber privileges, this deletes the
+ * topic. You can call ListSubscribers to check for these accounts.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -3906,8 +3906,8 @@ default void unregisterSubscriber(
*
*
*
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
- * topic created for this Channel Services account.
+ * Lists service accounts with subscriber privileges on the Pub/Sub topic
+ * created for this Channel Services account or integrator.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -5447,8 +5447,8 @@ public void queryEligibleBillingAccounts(
*
*
*
- * Registers a service account with subscriber privileges on the Cloud Pub/Sub
- * topic for this Channel Services account. After you create a
+ * Registers a service account with subscriber privileges on the Pub/Sub
+ * topic for this Channel Services account or integrator. After you create a
* subscriber, you get the events through
* [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
* Possible error codes:
@@ -5478,10 +5478,10 @@ public void registerSubscriber(
*
*
*
- * Unregisters a service account with subscriber privileges on the Cloud
- * Pub/Sub topic created for this Channel Services account. If there are no
- * service accounts left with subscriber privileges, this deletes the topic.
- * You can call ListSubscribers to check for these accounts.
+ * Unregisters a service account with subscriber privileges on the Pub/Sub
+ * topic created for this Channel Services account or integrator. If there are
+ * no service accounts left with subscriber privileges, this deletes the
+ * topic. You can call ListSubscribers to check for these accounts.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -5512,8 +5512,8 @@ public void unregisterSubscriber(
*
*
*
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
- * topic created for this Channel Services account.
+ * Lists service accounts with subscriber privileges on the Pub/Sub topic
+ * created for this Channel Services account or integrator.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -6906,8 +6906,8 @@ public com.google.cloud.channel.v1.ListPurchasableOffersResponse listPurchasable
*
*
*
- * Registers a service account with subscriber privileges on the Cloud Pub/Sub
- * topic for this Channel Services account. After you create a
+ * Registers a service account with subscriber privileges on the Pub/Sub
+ * topic for this Channel Services account or integrator. After you create a
* subscriber, you get the events through
* [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
* Possible error codes:
@@ -6934,10 +6934,10 @@ public com.google.cloud.channel.v1.RegisterSubscriberResponse registerSubscriber
*
*
*
- * Unregisters a service account with subscriber privileges on the Cloud
- * Pub/Sub topic created for this Channel Services account. If there are no
- * service accounts left with subscriber privileges, this deletes the topic.
- * You can call ListSubscribers to check for these accounts.
+ * Unregisters a service account with subscriber privileges on the Pub/Sub
+ * topic created for this Channel Services account or integrator. If there are
+ * no service accounts left with subscriber privileges, this deletes the
+ * topic. You can call ListSubscribers to check for these accounts.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -6965,8 +6965,8 @@ public com.google.cloud.channel.v1.UnregisterSubscriberResponse unregisterSubscr
*
*
*
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
- * topic created for this Channel Services account.
+ * Lists service accounts with subscriber privileges on the Pub/Sub topic
+ * created for this Channel Services account or integrator.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -8320,8 +8320,8 @@ public com.google.cloud.channel.v1.ListPurchasableOffersResponse listPurchasable
*
*
*
- * Registers a service account with subscriber privileges on the Cloud Pub/Sub
- * topic for this Channel Services account. After you create a
+ * Registers a service account with subscriber privileges on the Pub/Sub
+ * topic for this Channel Services account or integrator. After you create a
* subscriber, you get the events through
* [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
* Possible error codes:
@@ -8347,10 +8347,10 @@ public com.google.cloud.channel.v1.RegisterSubscriberResponse registerSubscriber
*
*
*
- * Unregisters a service account with subscriber privileges on the Cloud
- * Pub/Sub topic created for this Channel Services account. If there are no
- * service accounts left with subscriber privileges, this deletes the topic.
- * You can call ListSubscribers to check for these accounts.
+ * Unregisters a service account with subscriber privileges on the Pub/Sub
+ * topic created for this Channel Services account or integrator. If there are
+ * no service accounts left with subscriber privileges, this deletes the
+ * topic. You can call ListSubscribers to check for these accounts.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -8377,8 +8377,8 @@ public com.google.cloud.channel.v1.UnregisterSubscriberResponse unregisterSubscr
*
*
*
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
- * topic created for this Channel Services account.
+ * Lists service accounts with subscriber privileges on the Pub/Sub topic
+ * created for this Channel Services account or integrator.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -9776,8 +9776,8 @@ protected CloudChannelServiceFutureStub build(
*
*
*
- * Registers a service account with subscriber privileges on the Cloud Pub/Sub
- * topic for this Channel Services account. After you create a
+ * Registers a service account with subscriber privileges on the Pub/Sub
+ * topic for this Channel Services account or integrator. After you create a
* subscriber, you get the events through
* [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
* Possible error codes:
@@ -9804,10 +9804,10 @@ protected CloudChannelServiceFutureStub build(
*
*
*
- * Unregisters a service account with subscriber privileges on the Cloud
- * Pub/Sub topic created for this Channel Services account. If there are no
- * service accounts left with subscriber privileges, this deletes the topic.
- * You can call ListSubscribers to check for these accounts.
+ * Unregisters a service account with subscriber privileges on the Pub/Sub
+ * topic created for this Channel Services account or integrator. If there are
+ * no service accounts left with subscriber privileges, this deletes the
+ * topic. You can call ListSubscribers to check for these accounts.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
@@ -9835,8 +9835,8 @@ protected CloudChannelServiceFutureStub build(
*
*
*
- * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
- * topic created for this Channel Services account.
+ * Lists service accounts with subscriber privileges on the Pub/Sub topic
+ * created for this Channel Services account or integrator.
* Possible error codes:
* * PERMISSION_DENIED: The reseller account making the request and the
* provided reseller account are different, or the impersonated user
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java
new file mode 100644
index 000000000000..20fd01576b3d
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java
@@ -0,0 +1,168 @@
+/*
+ * Copyright 2025 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.
+ */
+
+package com.google.cloud.channel.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class AccountName implements ResourceName {
+ private static final PathTemplate ACCOUNT =
+ PathTemplate.createWithoutUrlEncoding("accounts/{account}");
+ private volatile Map fieldValuesMap;
+ private final String account;
+
+ @Deprecated
+ protected AccountName() {
+ account = null;
+ }
+
+ private AccountName(Builder builder) {
+ account = Preconditions.checkNotNull(builder.getAccount());
+ }
+
+ public String getAccount() {
+ return account;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ public static AccountName of(String account) {
+ return newBuilder().setAccount(account).build();
+ }
+
+ public static String format(String account) {
+ return newBuilder().setAccount(account).build().toString();
+ }
+
+ public static AccountName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ ACCOUNT.validatedMatch(
+ formattedString, "AccountName.parse: formattedString not in valid format");
+ return of(matchMap.get("account"));
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList<>(values.size());
+ for (AccountName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return ACCOUNT.matches(formattedString);
+ }
+
+ @Override
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ if (account != null) {
+ fieldMapBuilder.put("account", account);
+ }
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return ACCOUNT.instantiate("account", account);
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o != null && getClass() == o.getClass()) {
+ AccountName that = ((AccountName) o);
+ return Objects.equals(this.account, that.account);
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= Objects.hashCode(account);
+ return h;
+ }
+
+ /** Builder for accounts/{account}. */
+ public static class Builder {
+ private String account;
+
+ protected Builder() {}
+
+ public String getAccount() {
+ return account;
+ }
+
+ public Builder setAccount(String account) {
+ this.account = account;
+ return this;
+ }
+
+ private Builder(AccountName accountName) {
+ this.account = accountName.account;
+ }
+
+ public AccountName build() {
+ return new AccountName(this);
+ }
+ }
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
index 578817c4806f..f7e2230f2387 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
@@ -47,6 +47,7 @@ private ChangeOfferRequest() {
purchaseOrderId_ = "";
requestId_ = "";
billingAccount_ = "";
+ priceReferenceId_ = "";
}
@java.lang.Override
@@ -476,6 +477,63 @@ public com.google.protobuf.ByteString getBillingAccountBytes() {
}
}
+ public static final int PRICE_REFERENCE_ID_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object priceReferenceId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ @java.lang.Override
+ public java.lang.String getPriceReferenceId() {
+ java.lang.Object ref = priceReferenceId_;
+ 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();
+ priceReferenceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPriceReferenceIdBytes() {
+ java.lang.Object ref = priceReferenceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ priceReferenceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -508,6 +566,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, billingAccount_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, priceReferenceId_);
+ }
getUnknownFields().writeTo(output);
}
@@ -535,6 +596,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, billingAccount_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, priceReferenceId_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -557,6 +621,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPurchaseOrderId().equals(other.getPurchaseOrderId())) return false;
if (!getRequestId().equals(other.getRequestId())) return false;
if (!getBillingAccount().equals(other.getBillingAccount())) return false;
+ if (!getPriceReferenceId().equals(other.getPriceReferenceId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -582,6 +647,8 @@ public int hashCode() {
hash = (53 * hash) + getRequestId().hashCode();
hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getBillingAccount().hashCode();
+ hash = (37 * hash) + PRICE_REFERENCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getPriceReferenceId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -735,6 +802,7 @@ public Builder clear() {
purchaseOrderId_ = "";
requestId_ = "";
billingAccount_ = "";
+ priceReferenceId_ = "";
return this;
}
@@ -799,6 +867,9 @@ private void buildPartial0(com.google.cloud.channel.v1.ChangeOfferRequest result
if (((from_bitField0_ & 0x00000020) != 0)) {
result.billingAccount_ = billingAccount_;
}
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.priceReferenceId_ = priceReferenceId_;
+ }
}
@java.lang.Override
@@ -898,6 +969,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.ChangeOfferRequest other) {
bitField0_ |= 0x00000020;
onChanged();
}
+ if (!other.getPriceReferenceId().isEmpty()) {
+ priceReferenceId_ = other.priceReferenceId_;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -967,6 +1043,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000020;
break;
} // case 58
+ case 66:
+ {
+ priceReferenceId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2097,6 +2179,127 @@ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object priceReferenceId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ public java.lang.String getPriceReferenceId() {
+ java.lang.Object ref = priceReferenceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ priceReferenceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ public com.google.protobuf.ByteString getPriceReferenceIdBytes() {
+ java.lang.Object ref = priceReferenceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ priceReferenceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The priceReferenceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriceReferenceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ priceReferenceId_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPriceReferenceId() {
+ priceReferenceId_ = getDefaultInstance().getPriceReferenceId();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for priceReferenceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ priceReferenceId_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java
index f790bb02ff0f..dc46c31f0fa1 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java
@@ -274,4 +274,34 @@ public interface ChangeOfferRequestOrBuilder
* @return The bytes for billingAccount.
*/
com.google.protobuf.ByteString getBillingAccountBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ java.lang.String getPriceReferenceId();
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ com.google.protobuf.ByteString getPriceReferenceIdBytes();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeParametersRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeParametersRequest.java
index 5ff4b26b4260..cf6924b81d67 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeParametersRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeParametersRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * Request message for [CloudChannelService.ChangeParametersRequest][].
+ * Request message for
+ * [CloudChannelService.ChangeParameters][google.cloud.channel.v1.CloudChannelService.ChangeParameters].
*
*
* Protobuf type {@code google.cloud.channel.v1.ChangeParametersRequest}
@@ -556,7 +557,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Request message for [CloudChannelService.ChangeParametersRequest][].
+ * Request message for
+ * [CloudChannelService.ChangeParameters][google.cloud.channel.v1.CloudChannelService.ChangeParameters].
*
*
* Protobuf type {@code google.cloud.channel.v1.ChangeParametersRequest}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccount.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccount.java
index 2ba0ca7b2169..cd0ee32cf0f7 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccount.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccount.java
@@ -95,7 +95,8 @@ public boolean getExisting() {
*
*
* Returns true if the Cloud Identity account is associated with a customer
- * of the Channel Services partner.
+ * of the Channel Services partner (with active subscriptions or purchase
+ * consents).
*
*
* bool owned = 2;
@@ -842,7 +843,8 @@ public Builder clearExisting() {
*
*
* Returns true if the Cloud Identity account is associated with a customer
- * of the Channel Services partner.
+ * of the Channel Services partner (with active subscriptions or purchase
+ * consents).
*
*
* bool owned = 2;
@@ -859,7 +861,8 @@ public boolean getOwned() {
*
*
* Returns true if the Cloud Identity account is associated with a customer
- * of the Channel Services partner.
+ * of the Channel Services partner (with active subscriptions or purchase
+ * consents).
*
*
* bool owned = 2;
@@ -880,7 +883,8 @@ public Builder setOwned(boolean value) {
*
*
* Returns true if the Cloud Identity account is associated with a customer
- * of the Channel Services partner.
+ * of the Channel Services partner (with active subscriptions or purchase
+ * consents).
*
*
* bool owned = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccountOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccountOrBuilder.java
index 53c9bfbef7f0..dde589c1096e 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccountOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccountOrBuilder.java
@@ -42,7 +42,8 @@ public interface CloudIdentityCustomerAccountOrBuilder
*
*
* Returns true if the Cloud Identity account is associated with a customer
- * of the Channel Services partner.
+ * of the Channel Services partner (with active subscriptions or purchase
+ * consents).
*
*
* bool owned = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java
index e9a348a7c4af..d4a71a8ab985 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java
@@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The enum represents whether a customer belongs to public sector
+ * The enum represents if a customer belongs to public sector
*
*
* Protobuf enum {@code google.cloud.channel.v1.Customer.CustomerAttestationState}
@@ -981,7 +981,7 @@ public com.google.protobuf.ByteString getCorrelationIdBytes() {
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
@@ -1000,7 +1000,7 @@ public int getCustomerAttestationStateValue() {
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
@@ -3772,7 +3772,7 @@ public Builder setCorrelationIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
@@ -3791,7 +3791,7 @@ public int getCustomerAttestationStateValue() {
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
@@ -3813,7 +3813,7 @@ public Builder setCustomerAttestationStateValue(int value) {
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
@@ -3838,7 +3838,7 @@ public Builder setCustomerAttestationStateValue(int value) {
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
@@ -3864,7 +3864,7 @@ public Builder setCustomerAttestationState(
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEvent.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEvent.java
index 6f4937335ac8..bfb345fa2965 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEvent.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEvent.java
@@ -286,7 +286,7 @@ public com.google.protobuf.ByteString getCustomerBytes() {
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
@@ -302,7 +302,7 @@ public int getEventTypeValue() {
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
@@ -802,7 +802,7 @@ public Builder setCustomerBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
@@ -818,7 +818,7 @@ public int getEventTypeValue() {
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
@@ -837,7 +837,7 @@ public Builder setEventTypeValue(int value) {
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
@@ -855,7 +855,7 @@ public com.google.cloud.channel.v1.CustomerEvent.Type getEventType() {
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
@@ -877,7 +877,7 @@ public Builder setEventType(com.google.cloud.channel.v1.CustomerEvent.Type value
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEventOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEventOrBuilder.java
index d447bead8357..9eb4c1185bc4 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEventOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEventOrBuilder.java
@@ -56,7 +56,7 @@ public interface CustomerEventOrBuilder
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
@@ -69,7 +69,7 @@ public interface CustomerEventOrBuilder
*
*
*
- * Type of event which happened on the customer.
+ * Type of event which happened for the customer.
*
*
* .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java
index b4277d6beb57..4cb192842ae5 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java
@@ -473,7 +473,7 @@ public interface CustomerOrBuilder
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
@@ -489,7 +489,7 @@ public interface CustomerOrBuilder
*
*
*
- * Optional. Indicate whether a customer is attesting about the correctness of
+ * Optional. Indicate if a customer is attesting about the correctness of
* provided information. Only required if creating a GCP Entitlement.
*
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponent.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponent.java
new file mode 100644
index 000000000000..7f87e94b32c8
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponent.java
@@ -0,0 +1,1131 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/channel/v1/offers.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.channel.v1;
+
+/**
+ *
+ *
+ *
+ * Represents a single component of the total discount applicable on a Price.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.DiscountComponent}
+ */
+public final class DiscountComponent extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.DiscountComponent)
+ DiscountComponentOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use DiscountComponent.newBuilder() to construct.
+ private DiscountComponent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DiscountComponent() {
+ discountType_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DiscountComponent();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.OffersProto
+ .internal_static_google_cloud_channel_v1_DiscountComponent_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.OffersProto
+ .internal_static_google_cloud_channel_v1_DiscountComponent_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.DiscountComponent.class,
+ com.google.cloud.channel.v1.DiscountComponent.Builder.class);
+ }
+
+ private int discountValueCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object discountValue_;
+
+ public enum DiscountValueCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ DISCOUNT_PERCENTAGE(3),
+ DISCOUNT_ABSOLUTE(4),
+ DISCOUNTVALUE_NOT_SET(0);
+ private final int value;
+
+ private DiscountValueCase(int value) {
+ this.value = value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DiscountValueCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DiscountValueCase forNumber(int value) {
+ switch (value) {
+ case 3:
+ return DISCOUNT_PERCENTAGE;
+ case 4:
+ return DISCOUNT_ABSOLUTE;
+ case 0:
+ return DISCOUNTVALUE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public DiscountValueCase getDiscountValueCase() {
+ return DiscountValueCase.forNumber(discountValueCase_);
+ }
+
+ public static final int DISCOUNT_PERCENTAGE_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ *
+ * Discount percentage, represented as decimal.
+ * For example, a 20% discount will be represented as 0.2.
+ *
+ *
+ * double discount_percentage = 3;
+ *
+ * @return Whether the discountPercentage field is set.
+ */
+ @java.lang.Override
+ public boolean hasDiscountPercentage() {
+ return discountValueCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Discount percentage, represented as decimal.
+ * For example, a 20% discount will be represented as 0.2.
+ *
+ *
+ * double discount_percentage = 3;
+ *
+ * @return The discountPercentage.
+ */
+ @java.lang.Override
+ public double getDiscountPercentage() {
+ if (discountValueCase_ == 3) {
+ return (java.lang.Double) discountValue_;
+ }
+ return 0D;
+ }
+
+ public static final int DISCOUNT_ABSOLUTE_FIELD_NUMBER = 4;
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ *
+ * @return Whether the discountAbsolute field is set.
+ */
+ @java.lang.Override
+ public boolean hasDiscountAbsolute() {
+ return discountValueCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ *
+ * @return The discountAbsolute.
+ */
+ @java.lang.Override
+ public com.google.type.Money getDiscountAbsolute() {
+ if (discountValueCase_ == 4) {
+ return (com.google.type.Money) discountValue_;
+ }
+ return com.google.type.Money.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ @java.lang.Override
+ public com.google.type.MoneyOrBuilder getDiscountAbsoluteOrBuilder() {
+ if (discountValueCase_ == 4) {
+ return (com.google.type.Money) discountValue_;
+ }
+ return com.google.type.Money.getDefaultInstance();
+ }
+
+ public static final int DISCOUNT_TYPE_FIELD_NUMBER = 2;
+ private int discountType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @return The enum numeric value on the wire for discountType.
+ */
+ @java.lang.Override
+ public int getDiscountTypeValue() {
+ return discountType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @return The discountType.
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.DiscountType getDiscountType() {
+ com.google.cloud.channel.v1.DiscountType result =
+ com.google.cloud.channel.v1.DiscountType.forNumber(discountType_);
+ return result == null ? com.google.cloud.channel.v1.DiscountType.UNRECOGNIZED : result;
+ }
+
+ 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 (discountType_
+ != com.google.cloud.channel.v1.DiscountType.DISCOUNT_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, discountType_);
+ }
+ if (discountValueCase_ == 3) {
+ output.writeDouble(3, (double) ((java.lang.Double) discountValue_));
+ }
+ if (discountValueCase_ == 4) {
+ output.writeMessage(4, (com.google.type.Money) discountValue_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (discountType_
+ != com.google.cloud.channel.v1.DiscountType.DISCOUNT_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, discountType_);
+ }
+ if (discountValueCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeDoubleSize(
+ 3, (double) ((java.lang.Double) discountValue_));
+ }
+ if (discountValueCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.type.Money) discountValue_);
+ }
+ 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.channel.v1.DiscountComponent)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.channel.v1.DiscountComponent other =
+ (com.google.cloud.channel.v1.DiscountComponent) obj;
+
+ if (discountType_ != other.discountType_) return false;
+ if (!getDiscountValueCase().equals(other.getDiscountValueCase())) return false;
+ switch (discountValueCase_) {
+ case 3:
+ if (java.lang.Double.doubleToLongBits(getDiscountPercentage())
+ != java.lang.Double.doubleToLongBits(other.getDiscountPercentage())) return false;
+ break;
+ case 4:
+ if (!getDiscountAbsolute().equals(other.getDiscountAbsolute())) 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) + DISCOUNT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + discountType_;
+ switch (discountValueCase_) {
+ case 3:
+ hash = (37 * hash) + DISCOUNT_PERCENTAGE_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDiscountPercentage()));
+ break;
+ case 4:
+ hash = (37 * hash) + DISCOUNT_ABSOLUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getDiscountAbsolute().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent 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.channel.v1.DiscountComponent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent 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.channel.v1.DiscountComponent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.channel.v1.DiscountComponent 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Represents a single component of the total discount applicable on a Price.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.DiscountComponent}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.DiscountComponent)
+ com.google.cloud.channel.v1.DiscountComponentOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.OffersProto
+ .internal_static_google_cloud_channel_v1_DiscountComponent_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.OffersProto
+ .internal_static_google_cloud_channel_v1_DiscountComponent_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.DiscountComponent.class,
+ com.google.cloud.channel.v1.DiscountComponent.Builder.class);
+ }
+
+ // Construct using com.google.cloud.channel.v1.DiscountComponent.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (discountAbsoluteBuilder_ != null) {
+ discountAbsoluteBuilder_.clear();
+ }
+ discountType_ = 0;
+ discountValueCase_ = 0;
+ discountValue_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.channel.v1.OffersProto
+ .internal_static_google_cloud_channel_v1_DiscountComponent_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.DiscountComponent getDefaultInstanceForType() {
+ return com.google.cloud.channel.v1.DiscountComponent.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.DiscountComponent build() {
+ com.google.cloud.channel.v1.DiscountComponent result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.DiscountComponent buildPartial() {
+ com.google.cloud.channel.v1.DiscountComponent result =
+ new com.google.cloud.channel.v1.DiscountComponent(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.channel.v1.DiscountComponent result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.discountType_ = discountType_;
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.channel.v1.DiscountComponent result) {
+ result.discountValueCase_ = discountValueCase_;
+ result.discountValue_ = this.discountValue_;
+ if (discountValueCase_ == 4 && discountAbsoluteBuilder_ != null) {
+ result.discountValue_ = discountAbsoluteBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.channel.v1.DiscountComponent) {
+ return mergeFrom((com.google.cloud.channel.v1.DiscountComponent) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.channel.v1.DiscountComponent other) {
+ if (other == com.google.cloud.channel.v1.DiscountComponent.getDefaultInstance()) return this;
+ if (other.discountType_ != 0) {
+ setDiscountTypeValue(other.getDiscountTypeValue());
+ }
+ switch (other.getDiscountValueCase()) {
+ case DISCOUNT_PERCENTAGE:
+ {
+ setDiscountPercentage(other.getDiscountPercentage());
+ break;
+ }
+ case DISCOUNT_ABSOLUTE:
+ {
+ mergeDiscountAbsolute(other.getDiscountAbsolute());
+ break;
+ }
+ case DISCOUNTVALUE_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 16:
+ {
+ discountType_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 16
+ case 25:
+ {
+ discountValue_ = input.readDouble();
+ discountValueCase_ = 3;
+ break;
+ } // case 25
+ case 34:
+ {
+ input.readMessage(
+ getDiscountAbsoluteFieldBuilder().getBuilder(), extensionRegistry);
+ discountValueCase_ = 4;
+ break;
+ } // case 34
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int discountValueCase_ = 0;
+ private java.lang.Object discountValue_;
+
+ public DiscountValueCase getDiscountValueCase() {
+ return DiscountValueCase.forNumber(discountValueCase_);
+ }
+
+ public Builder clearDiscountValue() {
+ discountValueCase_ = 0;
+ discountValue_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ /**
+ *
+ *
+ *
+ * Discount percentage, represented as decimal.
+ * For example, a 20% discount will be represented as 0.2.
+ *
+ *
+ * double discount_percentage = 3;
+ *
+ * @return Whether the discountPercentage field is set.
+ */
+ public boolean hasDiscountPercentage() {
+ return discountValueCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Discount percentage, represented as decimal.
+ * For example, a 20% discount will be represented as 0.2.
+ *
+ *
+ * double discount_percentage = 3;
+ *
+ * @return The discountPercentage.
+ */
+ public double getDiscountPercentage() {
+ if (discountValueCase_ == 3) {
+ return (java.lang.Double) discountValue_;
+ }
+ return 0D;
+ }
+
+ /**
+ *
+ *
+ *
+ * Discount percentage, represented as decimal.
+ * For example, a 20% discount will be represented as 0.2.
+ *
+ *
+ * double discount_percentage = 3;
+ *
+ * @param value The discountPercentage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDiscountPercentage(double value) {
+
+ discountValueCase_ = 3;
+ discountValue_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Discount percentage, represented as decimal.
+ * For example, a 20% discount will be represented as 0.2.
+ *
+ *
+ * double discount_percentage = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDiscountPercentage() {
+ if (discountValueCase_ == 3) {
+ discountValueCase_ = 0;
+ discountValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
+ discountAbsoluteBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ *
+ * @return Whether the discountAbsolute field is set.
+ */
+ @java.lang.Override
+ public boolean hasDiscountAbsolute() {
+ return discountValueCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ *
+ * @return The discountAbsolute.
+ */
+ @java.lang.Override
+ public com.google.type.Money getDiscountAbsolute() {
+ if (discountAbsoluteBuilder_ == null) {
+ if (discountValueCase_ == 4) {
+ return (com.google.type.Money) discountValue_;
+ }
+ return com.google.type.Money.getDefaultInstance();
+ } else {
+ if (discountValueCase_ == 4) {
+ return discountAbsoluteBuilder_.getMessage();
+ }
+ return com.google.type.Money.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ public Builder setDiscountAbsolute(com.google.type.Money value) {
+ if (discountAbsoluteBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ discountValue_ = value;
+ onChanged();
+ } else {
+ discountAbsoluteBuilder_.setMessage(value);
+ }
+ discountValueCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ public Builder setDiscountAbsolute(com.google.type.Money.Builder builderForValue) {
+ if (discountAbsoluteBuilder_ == null) {
+ discountValue_ = builderForValue.build();
+ onChanged();
+ } else {
+ discountAbsoluteBuilder_.setMessage(builderForValue.build());
+ }
+ discountValueCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ public Builder mergeDiscountAbsolute(com.google.type.Money value) {
+ if (discountAbsoluteBuilder_ == null) {
+ if (discountValueCase_ == 4
+ && discountValue_ != com.google.type.Money.getDefaultInstance()) {
+ discountValue_ =
+ com.google.type.Money.newBuilder((com.google.type.Money) discountValue_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ discountValue_ = value;
+ }
+ onChanged();
+ } else {
+ if (discountValueCase_ == 4) {
+ discountAbsoluteBuilder_.mergeFrom(value);
+ } else {
+ discountAbsoluteBuilder_.setMessage(value);
+ }
+ }
+ discountValueCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ public Builder clearDiscountAbsolute() {
+ if (discountAbsoluteBuilder_ == null) {
+ if (discountValueCase_ == 4) {
+ discountValueCase_ = 0;
+ discountValue_ = null;
+ onChanged();
+ }
+ } else {
+ if (discountValueCase_ == 4) {
+ discountValueCase_ = 0;
+ discountValue_ = null;
+ }
+ discountAbsoluteBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ public com.google.type.Money.Builder getDiscountAbsoluteBuilder() {
+ return getDiscountAbsoluteFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ @java.lang.Override
+ public com.google.type.MoneyOrBuilder getDiscountAbsoluteOrBuilder() {
+ if ((discountValueCase_ == 4) && (discountAbsoluteBuilder_ != null)) {
+ return discountAbsoluteBuilder_.getMessageOrBuilder();
+ } else {
+ if (discountValueCase_ == 4) {
+ return (com.google.type.Money) discountValue_;
+ }
+ return com.google.type.Money.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
+ getDiscountAbsoluteFieldBuilder() {
+ if (discountAbsoluteBuilder_ == null) {
+ if (!(discountValueCase_ == 4)) {
+ discountValue_ = com.google.type.Money.getDefaultInstance();
+ }
+ discountAbsoluteBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Money,
+ com.google.type.Money.Builder,
+ com.google.type.MoneyOrBuilder>(
+ (com.google.type.Money) discountValue_, getParentForChildren(), isClean());
+ discountValue_ = null;
+ }
+ discountValueCase_ = 4;
+ onChanged();
+ return discountAbsoluteBuilder_;
+ }
+
+ private int discountType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @return The enum numeric value on the wire for discountType.
+ */
+ @java.lang.Override
+ public int getDiscountTypeValue() {
+ return discountType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @param value The enum numeric value on the wire for discountType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDiscountTypeValue(int value) {
+ discountType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @return The discountType.
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.DiscountType getDiscountType() {
+ com.google.cloud.channel.v1.DiscountType result =
+ com.google.cloud.channel.v1.DiscountType.forNumber(discountType_);
+ return result == null ? com.google.cloud.channel.v1.DiscountType.UNRECOGNIZED : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @param value The discountType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDiscountType(com.google.cloud.channel.v1.DiscountType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ discountType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDiscountType() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ discountType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.DiscountComponent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.DiscountComponent)
+ private static final com.google.cloud.channel.v1.DiscountComponent DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.channel.v1.DiscountComponent();
+ }
+
+ public static com.google.cloud.channel.v1.DiscountComponent getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DiscountComponent parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.DiscountComponent getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponentOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponentOrBuilder.java
new file mode 100644
index 000000000000..8eaa56c7cddd
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponentOrBuilder.java
@@ -0,0 +1,119 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/channel/v1/offers.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.channel.v1;
+
+public interface DiscountComponentOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.DiscountComponent)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Discount percentage, represented as decimal.
+ * For example, a 20% discount will be represented as 0.2.
+ *
+ *
+ * double discount_percentage = 3;
+ *
+ * @return Whether the discountPercentage field is set.
+ */
+ boolean hasDiscountPercentage();
+
+ /**
+ *
+ *
+ *
+ * Discount percentage, represented as decimal.
+ * For example, a 20% discount will be represented as 0.2.
+ *
+ *
+ * double discount_percentage = 3;
+ *
+ * @return The discountPercentage.
+ */
+ double getDiscountPercentage();
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ *
+ * @return Whether the discountAbsolute field is set.
+ */
+ boolean hasDiscountAbsolute();
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ *
+ * @return The discountAbsolute.
+ */
+ com.google.type.Money getDiscountAbsolute();
+
+ /**
+ *
+ *
+ *
+ * Fixed value discount.
+ *
+ *
+ * .google.type.Money discount_absolute = 4;
+ */
+ com.google.type.MoneyOrBuilder getDiscountAbsoluteOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @return The enum numeric value on the wire for discountType.
+ */
+ int getDiscountTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Type of the discount.
+ *
+ *
+ * .google.cloud.channel.v1.DiscountType discount_type = 2;
+ *
+ * @return The discountType.
+ */
+ com.google.cloud.channel.v1.DiscountType getDiscountType();
+
+ com.google.cloud.channel.v1.DiscountComponent.DiscountValueCase getDiscountValueCase();
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountType.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountType.java
new file mode 100644
index 000000000000..d3a4ebcfecb2
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountType.java
@@ -0,0 +1,248 @@
+/*
+ * Copyright 2025 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!
+// source: google/cloud/channel/v1/offers.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.channel.v1;
+
+/**
+ *
+ *
+ *
+ * Discount Type.
+ *
+ *
+ * Protobuf enum {@code google.cloud.channel.v1.DiscountType}
+ */
+public enum DiscountType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Not used.
+ *
+ *
+ * DISCOUNT_TYPE_UNSPECIFIED = 0;
+ */
+ DISCOUNT_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Regional discount.
+ *
+ *
+ * REGIONAL_DISCOUNT = 1;
+ */
+ REGIONAL_DISCOUNT(1),
+ /**
+ *
+ *
+ *
+ * Promotional discount.
+ *
+ *
+ * PROMOTIONAL_DISCOUNT = 2;
+ */
+ PROMOTIONAL_DISCOUNT(2),
+ /**
+ *
+ *
+ *
+ * Sales-provided discount.
+ *
+ *
+ * SALES_DISCOUNT = 3;
+ */
+ SALES_DISCOUNT(3),
+ /**
+ *
+ *
+ *
+ * Reseller margin.
+ *
+ *
+ * RESELLER_MARGIN = 4;
+ */
+ RESELLER_MARGIN(4),
+ /**
+ *
+ *
+ *
+ * Deal code discount.
+ *
+ *
+ * DEAL_CODE = 5;
+ */
+ DEAL_CODE(5),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Not used.
+ *
+ *
+ * DISCOUNT_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int DISCOUNT_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Regional discount.
+ *
+ *
+ * REGIONAL_DISCOUNT = 1;
+ */
+ public static final int REGIONAL_DISCOUNT_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Promotional discount.
+ *
+ *
+ * PROMOTIONAL_DISCOUNT = 2;
+ */
+ public static final int PROMOTIONAL_DISCOUNT_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Sales-provided discount.
+ *
+ *
+ * SALES_DISCOUNT = 3;
+ */
+ public static final int SALES_DISCOUNT_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * Reseller margin.
+ *
+ *
+ * RESELLER_MARGIN = 4;
+ */
+ public static final int RESELLER_MARGIN_VALUE = 4;
+
+ /**
+ *
+ *
+ *
+ * Deal code discount.
+ *
+ *
+ * DEAL_CODE = 5;
+ */
+ public static final int DEAL_CODE_VALUE = 5;
+
+ 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 DiscountType 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 DiscountType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return DISCOUNT_TYPE_UNSPECIFIED;
+ case 1:
+ return REGIONAL_DISCOUNT;
+ case 2:
+ return PROMOTIONAL_DISCOUNT;
+ case 3:
+ return SALES_DISCOUNT;
+ case 4:
+ return RESELLER_MARGIN;
+ case 5:
+ return DEAL_CODE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public DiscountType findValueByNumber(int number) {
+ return DiscountType.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.channel.v1.OffersProto.getDescriptor().getEnumTypes().get(5);
+ }
+
+ private static final DiscountType[] VALUES = values();
+
+ public static DiscountType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private DiscountType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.DiscountType)
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java
index 5ae52348dee9..d16c7302334a 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java
@@ -47,6 +47,7 @@ private Entitlement() {
purchaseOrderId_ = "";
parameters_ = java.util.Collections.emptyList();
billingAccount_ = "";
+ priceReferenceId_ = "";
}
@java.lang.Override
@@ -1364,6 +1365,63 @@ public com.google.protobuf.ByteString getBillingAccountBytes() {
}
}
+ public static final int PRICE_REFERENCE_ID_FIELD_NUMBER = 29;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object priceReferenceId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ @java.lang.Override
+ public java.lang.String getPriceReferenceId() {
+ java.lang.Object ref = priceReferenceId_;
+ 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();
+ priceReferenceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPriceReferenceIdBytes() {
+ java.lang.Object ref = priceReferenceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ priceReferenceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1424,6 +1482,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 28, billingAccount_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 29, priceReferenceId_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1484,6 +1545,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, billingAccount_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, priceReferenceId_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1530,6 +1594,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getParametersList().equals(other.getParametersList())) return false;
if (!getBillingAccount().equals(other.getBillingAccount())) return false;
+ if (!getPriceReferenceId().equals(other.getPriceReferenceId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1583,6 +1648,8 @@ public int hashCode() {
}
hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getBillingAccount().hashCode();
+ hash = (37 * hash) + PRICE_REFERENCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getPriceReferenceId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1782,6 +1849,7 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000800);
billingAccount_ = "";
+ priceReferenceId_ = "";
return this;
}
@@ -1884,6 +1952,9 @@ private void buildPartial0(com.google.cloud.channel.v1.Entitlement result) {
if (((from_bitField0_ & 0x00001000) != 0)) {
result.billingAccount_ = billingAccount_;
}
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.priceReferenceId_ = priceReferenceId_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -2010,6 +2081,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.Entitlement other) {
bitField0_ |= 0x00001000;
onChanged();
}
+ if (!other.getPriceReferenceId().isEmpty()) {
+ priceReferenceId_ = other.priceReferenceId_;
+ bitField0_ |= 0x00002000;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2136,6 +2212,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00001000;
break;
} // case 226
+ case 234:
+ {
+ priceReferenceId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00002000;
+ break;
+ } // case 234
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4989,6 +5071,127 @@ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object priceReferenceId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ public java.lang.String getPriceReferenceId() {
+ java.lang.Object ref = priceReferenceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ priceReferenceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ public com.google.protobuf.ByteString getPriceReferenceIdBytes() {
+ java.lang.Object ref = priceReferenceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ priceReferenceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The priceReferenceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriceReferenceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ priceReferenceId_ = value;
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPriceReferenceId() {
+ priceReferenceId_ = getDefaultInstance().getPriceReferenceId();
+ bitField0_ = (bitField0_ & ~0x00002000);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for priceReferenceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ priceReferenceId_ = value;
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java
index 4eea06947111..fa62d037b6be 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java
@@ -522,7 +522,7 @@ public com.google.protobuf.ByteString getEntitlementBytes() {
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
@@ -538,7 +538,7 @@ public int getEventTypeValue() {
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
@@ -1040,7 +1040,7 @@ public Builder setEntitlementBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
@@ -1056,7 +1056,7 @@ public int getEventTypeValue() {
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
@@ -1075,7 +1075,7 @@ public Builder setEventTypeValue(int value) {
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
@@ -1095,7 +1095,7 @@ public com.google.cloud.channel.v1.EntitlementEvent.Type getEventType() {
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
@@ -1117,7 +1117,7 @@ public Builder setEventType(com.google.cloud.channel.v1.EntitlementEvent.Type va
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEventOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEventOrBuilder.java
index a0f52f92efbb..b700a3ea6512 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEventOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEventOrBuilder.java
@@ -56,7 +56,7 @@ public interface EntitlementEventOrBuilder
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
@@ -69,7 +69,7 @@ public interface EntitlementEventOrBuilder
*
*
*
- * Type of event which happened on the entitlement.
+ * Type of event which happened for the entitlement.
*
*
* .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java
index 046786a70d16..452c3fc08591 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java
@@ -652,4 +652,34 @@ public interface EntitlementOrBuilder
* @return The bytes for billingAccount.
*/
com.google.protobuf.ByteString getBillingAccountBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ java.lang.String getPriceReferenceId();
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ com.google.protobuf.ByteString getPriceReferenceIdBytes();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java
index 41034521f4d8..4b1d4b038be2 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java
@@ -79,7 +79,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "i/field_behavior.proto\032\031google/api/resou"
+ "rce.proto\032$google/cloud/channel/v1/common.proto\032$google/cloud/channel/v1/offers."
+ "proto\032&google/cloud/channel/v1/products."
- + "proto\032\037google/protobuf/timestamp.proto\"\373\010\n"
+ + "proto\032\037google/protobuf/timestamp.proto\"\234\t\n"
+ "\013Entitlement\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\0224\n"
+ "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
@@ -101,7 +101,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020association_info\030\027"
+ " \001(\0132(.google.cloud.channel.v1.AssociationInfo\0226\n\n"
+ "parameters\030\032 \003(\0132\".google.cloud.channel.v1.Parameter\022\034\n"
- + "\017billing_account\030\034 \001(\tB\003\340A\001\"R\n"
+ + "\017billing_account\030\034 \001(\tB\003\340A\001\022\037\n"
+ + "\022price_reference_id\030\035 \001(\tB\003\340A\001\"R\n"
+ "\021ProvisioningState\022\"\n"
+ "\036PROVISIONING_STATE_UNSPECIFIED\020\000\022\n\n"
+ "\006ACTIVE\020\001\022\r\n"
@@ -113,8 +114,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\030RENEWAL_WITH_TYPE_CANCEL\020\003\022\032\n"
+ "\026PENDING_TOS_ACCEPTANCE\020\004\022\t\n"
+ "\005OTHER\020d:p\352Am\n"
- + "\'cloudchannel.googleapis.com/Entitlement"
- + "\022Baccounts/{account}/customers/{customer}/entitlements/{entitlement}\"_\n"
+ + "\'cloudchannel.googleapis.com/Entitlement\022Baccou"
+ + "nts/{account}/customers/{customer}/entitlements/{entitlement}\"_\n"
+ "\tParameter\022\014\n"
+ "\004name\030\001 \001(\t\022-\n"
+ "\005value\030\002 \001(\0132\036.google.cloud.channel.v1.Value\022\025\n"
@@ -136,8 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021resize_unit_count\030\002 \001(\010\022:\n"
+ "\014payment_plan\030\005 \001(\0162$.google.cloud.channel.v1.PaymentPlan\0226\n\r"
+ "payment_cycle\030\006 \001(\0132\037.google.cloud.channel.v1.Period\"L\n\r"
- + "TrialSettings\022\r"
- + "\n"
+ + "TrialSettings\022\r\n"
+ "\005trial\030\001 \001(\010\022,\n"
+ "\010end_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\277\001\n"
+ "\017TransferableSku\022J\n"
@@ -149,16 +149,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\023TransferEligibility\022\023\n"
+ "\013is_eligible\030\001 \001(\010\022\023\n"
+ "\013description\030\002 \001(\t\022Q\n"
- + "\024ineligibility_reason\030\003 \001(\01623.google.c"
- + "loud.channel.v1.TransferEligibility.Reason\"\221\001\n"
+ + "\024ineligibility_reason\030\003"
+ + " \001(\01623.google.cloud.channel.v1.TransferEligibility.Reason\"\221\001\n"
+ "\006Reason\022\026\n"
+ "\022REASON_UNSPECIFIED\020\000\022\032\n"
+ "\026PENDING_TOS_ACCEPTANCE\020\001\022\024\n"
+ "\020SKU_NOT_ELIGIBLE\020\002\022\021\n\r"
+ "SKU_SUSPENDED\020\003\022*\n"
+ "&CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU\020\004Bi\n"
- + "\033com.google.cloud.channel.v1B\021EntitlementsProto"
- + "P\001Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\006proto3"
+ + "\033com.google.cloud.channel.v1B\021EntitlementsProtoP\001Z5clo"
+ + "ud.google.com/go/channel/apiv1/channelpb;channelpbb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -190,6 +190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"AssociationInfo",
"Parameters",
"BillingAccount",
+ "PriceReferenceId",
});
internal_static_google_cloud_channel_v1_Parameter_descriptor =
getDescriptor().getMessageTypes().get(1);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponse.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponse.java
index 9e3de969d222..f68aea9c90bc 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponse.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponse.java
@@ -75,6 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -89,6 +92,9 @@ public java.util.List getOffersList() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -104,6 +110,9 @@ public java.util.List getOffersList() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -118,6 +127,9 @@ public int getOffersCount() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -132,6 +144,9 @@ public com.google.cloud.channel.v1.Offer getOffers(int index) {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -628,6 +643,9 @@ private void ensureOffersIsMutable() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -645,6 +663,9 @@ public java.util.List getOffersList() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -662,6 +683,9 @@ public int getOffersCount() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -679,6 +703,9 @@ public com.google.cloud.channel.v1.Offer getOffers(int index) {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -702,6 +729,9 @@ public Builder setOffers(int index, com.google.cloud.channel.v1.Offer value) {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -722,6 +752,9 @@ public Builder setOffers(int index, com.google.cloud.channel.v1.Offer.Builder bu
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -745,6 +778,9 @@ public Builder addOffers(com.google.cloud.channel.v1.Offer value) {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -768,6 +804,9 @@ public Builder addOffers(int index, com.google.cloud.channel.v1.Offer value) {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -788,6 +827,9 @@ public Builder addOffers(com.google.cloud.channel.v1.Offer.Builder builderForVal
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -808,6 +850,9 @@ public Builder addOffers(int index, com.google.cloud.channel.v1.Offer.Builder bu
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -829,6 +874,9 @@ public Builder addAllOffers(
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -849,6 +897,9 @@ public Builder clearOffers() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -869,6 +920,9 @@ public Builder removeOffers(int index) {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -882,6 +936,9 @@ public com.google.cloud.channel.v1.Offer.Builder getOffersBuilder(int index) {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -899,6 +956,9 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOffersOrBuilder(int index)
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -917,6 +977,9 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOffersOrBuilder(int index)
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -931,6 +994,9 @@ public com.google.cloud.channel.v1.Offer.Builder addOffersBuilder() {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -945,6 +1011,9 @@ public com.google.cloud.channel.v1.Offer.Builder addOffersBuilder(int index) {
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponseOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponseOrBuilder.java
index 02992de282ed..36ba1e2448fd 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponseOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponseOrBuilder.java
@@ -29,6 +29,9 @@ public interface ListOffersResponseOrBuilder
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -40,6 +43,9 @@ public interface ListOffersResponseOrBuilder
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -51,6 +57,9 @@ public interface ListOffersResponseOrBuilder
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -62,6 +71,9 @@ public interface ListOffersResponseOrBuilder
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
@@ -73,6 +85,9 @@ public interface ListOffersResponseOrBuilder
*
*
* The list of Offers requested.
+ *
+ * The pricing information for each Offer only includes the base price.
+ * Effective prices and discounts aren't populated.
*
*
* repeated .google.cloud.channel.v1.Offer offers = 1;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequest.java
index 70e7fdbcbd3f..4ad73cf71242 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequest.java
@@ -157,7 +157,8 @@ public int getPageSize() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
@@ -185,7 +186,8 @@ public java.lang.String getPageToken() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
@@ -793,7 +795,8 @@ public Builder clearPageSize() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
@@ -820,7 +823,8 @@ public java.lang.String getPageToken() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
@@ -847,7 +851,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
@@ -873,7 +878,8 @@ public Builder setPageToken(java.lang.String value) {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
@@ -895,7 +901,8 @@ public Builder clearPageToken() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequestOrBuilder.java
index a8591dab69b4..d68d6c28fde3 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequestOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequestOrBuilder.java
@@ -77,7 +77,8 @@ public interface ListSkuGroupBillableSkusRequestOrBuilder
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
@@ -94,7 +95,8 @@ public interface ListSkuGroupBillableSkusRequestOrBuilder
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
* call.
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponse.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponse.java
index 8747a9ef8219..58d1a0f67275 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponse.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponse.java
@@ -152,8 +152,9 @@ public com.google.cloud.channel.v1.BillableSkuOrBuilder getBillableSkusOrBuilder
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -178,8 +179,9 @@ public java.lang.String getNextPageToken() {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -993,8 +995,9 @@ public com.google.cloud.channel.v1.BillableSku.Builder addBillableSkusBuilder(in
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -1018,8 +1021,9 @@ public java.lang.String getNextPageToken() {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -1043,8 +1047,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -1067,8 +1072,9 @@ public Builder setNextPageToken(java.lang.String value) {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -1087,8 +1093,9 @@ public Builder clearNextPageToken() {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponseOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponseOrBuilder.java
index c8ac995b9b16..266815aaf089 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponseOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponseOrBuilder.java
@@ -85,8 +85,9 @@ public interface ListSkuGroupBillableSkusResponseOrBuilder
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -100,8 +101,9 @@ public interface ListSkuGroupBillableSkusResponseOrBuilder
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequest.java
index f18165d1b355..70a35e569d76 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequest.java
@@ -153,7 +153,8 @@ public int getPageSize() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
@@ -181,7 +182,8 @@ public java.lang.String getPageToken() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
@@ -781,7 +783,8 @@ public Builder clearPageSize() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
@@ -808,7 +811,8 @@ public java.lang.String getPageToken() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
@@ -835,7 +839,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
@@ -861,7 +866,8 @@ public Builder setPageToken(java.lang.String value) {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
@@ -883,7 +889,8 @@ public Builder clearPageToken() {
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequestOrBuilder.java
index 1a812e4f1f35..f0412d590613 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequestOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequestOrBuilder.java
@@ -74,7 +74,8 @@ public interface ListSkuGroupsRequestOrBuilder
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
@@ -91,7 +92,8 @@ public interface ListSkuGroupsRequestOrBuilder
*
* Optional. A token identifying a page of results beyond the first page.
* Obtained through
- * [ListSkuGroups.next_page_token][] of the previous
+ * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ * of the previous
* [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
* call.
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponse.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponse.java
index 306436aa250d..ac2d7799e33d 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponse.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponse.java
@@ -151,8 +151,9 @@ public com.google.cloud.channel.v1.SkuGroupOrBuilder getSkuGroupsOrBuilder(int i
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -177,8 +178,9 @@ public java.lang.String getNextPageToken() {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -985,8 +987,9 @@ public java.util.List getSkuGroups
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -1010,8 +1013,9 @@ public java.lang.String getNextPageToken() {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -1035,8 +1039,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -1059,8 +1064,9 @@ public Builder setNextPageToken(java.lang.String value) {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -1079,8 +1085,9 @@ public Builder clearNextPageToken() {
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponseOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponseOrBuilder.java
index 5fd9f6403ee3..0bb8a0ee0808 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponseOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponseOrBuilder.java
@@ -85,8 +85,9 @@ public interface ListSkuGroupsResponseOrBuilder
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
@@ -100,8 +101,9 @@ public interface ListSkuGroupsResponseOrBuilder
*
*
* A token to retrieve the next page of results.
- * Pass to [ListSkuGroups.page_token][] to obtain that
- * page.
+ * Pass to
+ * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ * to obtain that page.
*
*
* string next_page_token = 2;
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequest.java
index 9ad9244f2b1b..40847c89d62a 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequest.java
@@ -42,6 +42,7 @@ private ListSubscribersRequest(com.google.protobuf.GeneratedMessageV3.Builder>
private ListSubscribersRequest() {
account_ = "";
pageToken_ = "";
+ integrator_ = "";
}
@java.lang.Override
@@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.channel.v1.ListSubscribersRequest.Builder.class);
}
+ private int bitField0_;
public static final int ACCOUNT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -74,10 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -98,10 +103,13 @@ public java.lang.String getAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -201,6 +209,78 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
}
}
+ public static final int INTEGRATOR_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object integrator_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntegrator() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ @java.lang.Override
+ public java.lang.String getIntegrator() {
+ java.lang.Object ref = integrator_;
+ 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();
+ integrator_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIntegratorBytes() {
+ java.lang.Object ref = integrator_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ integrator_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -224,6 +304,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, integrator_);
+ }
getUnknownFields().writeTo(output);
}
@@ -242,6 +325,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, integrator_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -261,6 +347,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getAccount().equals(other.getAccount())) return false;
if (getPageSize() != other.getPageSize()) return false;
if (!getPageToken().equals(other.getPageToken())) return false;
+ if (hasIntegrator() != other.hasIntegrator()) return false;
+ if (hasIntegrator()) {
+ if (!getIntegrator().equals(other.getIntegrator())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -278,6 +368,10 @@ public int hashCode() {
hash = (53 * hash) + getPageSize();
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
+ if (hasIntegrator()) {
+ hash = (37 * hash) + INTEGRATOR_FIELD_NUMBER;
+ hash = (53 * hash) + getIntegrator().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -421,6 +515,7 @@ public Builder clear() {
account_ = "";
pageSize_ = 0;
pageToken_ = "";
+ integrator_ = "";
return this;
}
@@ -466,6 +561,12 @@ private void buildPartial0(com.google.cloud.channel.v1.ListSubscribersRequest re
if (((from_bitField0_ & 0x00000004) != 0)) {
result.pageToken_ = pageToken_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.integrator_ = integrator_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -527,6 +628,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.ListSubscribersRequest othe
bitField0_ |= 0x00000004;
onChanged();
}
+ if (other.hasIntegrator()) {
+ integrator_ = other.integrator_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -571,6 +677,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 26
+ case 34:
+ {
+ integrator_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -596,10 +708,13 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -619,10 +734,13 @@ public java.lang.String getAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -642,10 +760,13 @@ public com.google.protobuf.ByteString getAccountBytes() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @param value The account to set.
* @return This builder for chaining.
@@ -664,10 +785,13 @@ public Builder setAccount(java.lang.String value) {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return This builder for chaining.
*/
@@ -682,10 +806,13 @@ public Builder clearAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @param value The bytes for account to set.
* @return This builder for chaining.
@@ -897,6 +1024,138 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object integrator_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ public boolean hasIntegrator() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ public java.lang.String getIntegrator() {
+ java.lang.Object ref = integrator_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ integrator_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ public com.google.protobuf.ByteString getIntegratorBytes() {
+ java.lang.Object ref = integrator_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ integrator_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The integrator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntegrator(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ integrator_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntegrator() {
+ integrator_ = getDefaultInstance().getIntegrator();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for integrator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntegratorBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ integrator_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequestOrBuilder.java
index f3d16463843e..cf96b03032ac 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequestOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequestOrBuilder.java
@@ -28,10 +28,13 @@ public interface ListSubscribersRequestOrBuilder
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -41,10 +44,13 @@ public interface ListSubscribersRequestOrBuilder
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -99,4 +105,46 @@ public interface ListSubscribersRequestOrBuilder
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString getPageTokenBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ boolean hasIntegrator();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ java.lang.String getIntegrator();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ com.google.protobuf.ByteString getIntegratorBytes();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java
index 1f24b846b6ab..bae6716244f5 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java
@@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_channel_v1_Period_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_channel_v1_Period_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_channel_v1_DiscountComponent_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_channel_v1_DiscountComponent_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -129,12 +133,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017PriceByResource\022<\n\r"
+ "resource_type\030\001 \001(\0162%.google.cloud.channel.v1.ResourceType\022-\n"
+ "\005price\030\002 \001(\0132\036.google.cloud.channel.v1.Price\0229\n"
- + "\014price_phases\030\003 \003(\0132#.google.cloud.channel.v1.PricePhase\"\212\001\n"
+ + "\014price_phases\030\003 \003(\0132#.google.cloud.channel.v1.PricePhase\"\212\002\n"
+ "\005Price\022&\n\n"
+ "base_price\030\001 \001(\0132\022.google.type.Money\022\020\n"
+ "\010discount\030\002 \001(\001\022+\n"
- + "\017effective_price\030\003 \001(\0132\022.google.type.Money\022\032\n"
- + "\022external_price_uri\030\004 \001(\t\"\331\001\n\n"
+ + "\017effective_price\030\003 \001(\0132\022.google.type.Money\0225\n"
+ + "\014price_period\030\006 \001(\0132\037.google.cloud.channel.v1.Period\022\032\n"
+ + "\022external_price_uri\030\004 \001(\t\022G\n"
+ + "\023discount_components\030\005"
+ + " \003(\0132*.google.cloud.channel.v1.DiscountComponent\"\331\001\n\n"
+ "PricePhase\0228\n"
+ "\013period_type\030\001 \001(\0162#.google.cloud.channel.v1.PeriodType\022\024\n"
+ "\014first_period\030\002 \001(\005\022\023\n"
@@ -142,12 +149,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005price\030\004 \001(\0132\036.google.cloud.channel.v1.Price\0227\n"
+ "\013price_tiers\030\005 \003(\0132\".google.cloud.channel.v1.PriceTier\"i\n"
+ "\tPriceTier\022\026\n"
- + "\016first_resource\030\001 \001(\005\022\025\n\r"
+ + "\016first_resource\030\001 \001(\005\022\025\n"
+ + "\r"
+ "last_resource\030\002 \001(\005\022-\n"
+ "\005price\030\003 \001(\0132\036.google.cloud.channel.v1.Price\"T\n"
+ "\006Period\022\020\n"
+ "\010duration\030\001 \001(\005\0228\n"
- + "\013period_type\030\002 \001(\0162#.google.cloud.channel.v1.PeriodType*m\n"
+ + "\013period_type\030\002 \001(\0162#.google.cloud.channel.v1.PeriodType\"\263\001\n"
+ + "\021DiscountComponent\022\035\n"
+ + "\023discount_percentage\030\003 \001(\001H\000\022/\n"
+ + "\021discount_absolute\030\004 \001(\0132\022.google.type.MoneyH\000\022<\n\r"
+ + "discount_type\030\002 \001(\0162%.google.cloud.channel.v1.DiscountTypeB\020\n"
+ + "\016discount_value*m\n"
+ "\024PromotionalOrderType\022 \n"
+ "\034PROMOTIONAL_TYPE_UNSPECIFIED\020\000\022\017\n"
+ "\013NEW_UPGRADE\020\001\022\014\n"
@@ -177,9 +190,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027PERIOD_TYPE_UNSPECIFIED\020\000\022\007\n"
+ "\003DAY\020\001\022\t\n"
+ "\005MONTH\020\002\022\010\n"
- + "\004YEAR\020\003Bc\n"
- + "\033com.google.cloud.channel.v1B\013OffersProtoP\001Z5cloud.google.com/go/cha"
- + "nnel/apiv1/channelpb;channelpbb\006proto3"
+ + "\004YEAR\020\003*\226\001\n"
+ + "\014DiscountType\022\035\n"
+ + "\031DISCOUNT_TYPE_UNSPECIFIED\020\000\022\025\n"
+ + "\021REGIONAL_DISCOUNT\020\001\022\030\n"
+ + "\024PROMOTIONAL_DISCOUNT\020\002\022\022\n"
+ + "\016SALES_DISCOUNT\020\003\022\023\n"
+ + "\017RESELLER_MARGIN\020\004\022\r\n"
+ + "\tDEAL_CODE\020\005Bc\n"
+ + "\033com.google.cloud.channel.v1B\013OffersProtoP\001Z5"
+ + "cloud.google.com/go/channel/apiv1/channelpb;channelpbb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -255,7 +275,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_channel_v1_Price_descriptor,
new java.lang.String[] {
- "BasePrice", "Discount", "EffectivePrice", "ExternalPriceUri",
+ "BasePrice",
+ "Discount",
+ "EffectivePrice",
+ "PricePeriod",
+ "ExternalPriceUri",
+ "DiscountComponents",
});
internal_static_google_cloud_channel_v1_PricePhase_descriptor =
getDescriptor().getMessageTypes().get(7);
@@ -281,6 +306,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Duration", "PeriodType",
});
+ internal_static_google_cloud_channel_v1_DiscountComponent_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_cloud_channel_v1_DiscountComponent_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_channel_v1_DiscountComponent_descriptor,
+ new java.lang.String[] {
+ "DiscountPercentage", "DiscountAbsolute", "DiscountType", "DiscountValue",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Price.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Price.java
index ed74dd1b5240..d0650bef04cb 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Price.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Price.java
@@ -41,6 +41,7 @@ private Price(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Price() {
externalPriceUri_ = "";
+ discountComponents_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -183,6 +184,65 @@ public com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder() {
return effectivePrice_ == null ? com.google.type.Money.getDefaultInstance() : effectivePrice_;
}
+ public static final int PRICE_PERIOD_FIELD_NUMBER = 6;
+ private com.google.cloud.channel.v1.Period pricePeriod_;
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ *
+ * @return Whether the pricePeriod field is set.
+ */
+ @java.lang.Override
+ public boolean hasPricePeriod() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ *
+ * @return The pricePeriod.
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.Period getPricePeriod() {
+ return pricePeriod_ == null
+ ? com.google.cloud.channel.v1.Period.getDefaultInstance()
+ : pricePeriod_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.PeriodOrBuilder getPricePeriodOrBuilder() {
+ return pricePeriod_ == null
+ ? com.google.cloud.channel.v1.Period.getDefaultInstance()
+ : pricePeriod_;
+ }
+
public static final int EXTERNAL_PRICE_URI_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
@@ -236,6 +296,88 @@ public com.google.protobuf.ByteString getExternalPriceUriBytes() {
}
}
+ public static final int DISCOUNT_COMPONENTS_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private java.util.List discountComponents_;
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ @java.lang.Override
+ public java.util.List getDiscountComponentsList() {
+ return discountComponents_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.channel.v1.DiscountComponentOrBuilder>
+ getDiscountComponentsOrBuilderList() {
+ return discountComponents_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ @java.lang.Override
+ public int getDiscountComponentsCount() {
+ return discountComponents_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.DiscountComponent getDiscountComponents(int index) {
+ return discountComponents_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.DiscountComponentOrBuilder getDiscountComponentsOrBuilder(
+ int index) {
+ return discountComponents_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -262,6 +404,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalPriceUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, externalPriceUri_);
}
+ for (int i = 0; i < discountComponents_.size(); i++) {
+ output.writeMessage(5, discountComponents_.get(i));
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(6, getPricePeriod());
+ }
getUnknownFields().writeTo(output);
}
@@ -283,6 +431,13 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalPriceUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, externalPriceUri_);
}
+ for (int i = 0; i < discountComponents_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(5, discountComponents_.get(i));
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPricePeriod());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -308,7 +463,12 @@ public boolean equals(final java.lang.Object obj) {
if (hasEffectivePrice()) {
if (!getEffectivePrice().equals(other.getEffectivePrice())) return false;
}
+ if (hasPricePeriod() != other.hasPricePeriod()) return false;
+ if (hasPricePeriod()) {
+ if (!getPricePeriod().equals(other.getPricePeriod())) return false;
+ }
if (!getExternalPriceUri().equals(other.getExternalPriceUri())) return false;
+ if (!getDiscountComponentsList().equals(other.getDiscountComponentsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -333,8 +493,16 @@ public int hashCode() {
hash = (37 * hash) + EFFECTIVE_PRICE_FIELD_NUMBER;
hash = (53 * hash) + getEffectivePrice().hashCode();
}
+ if (hasPricePeriod()) {
+ hash = (37 * hash) + PRICE_PERIOD_FIELD_NUMBER;
+ hash = (53 * hash) + getPricePeriod().hashCode();
+ }
hash = (37 * hash) + EXTERNAL_PRICE_URI_FIELD_NUMBER;
hash = (53 * hash) + getExternalPriceUri().hashCode();
+ if (getDiscountComponentsCount() > 0) {
+ hash = (37 * hash) + DISCOUNT_COMPONENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDiscountComponentsList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -477,6 +645,8 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getBasePriceFieldBuilder();
getEffectivePriceFieldBuilder();
+ getPricePeriodFieldBuilder();
+ getDiscountComponentsFieldBuilder();
}
}
@@ -495,7 +665,19 @@ public Builder clear() {
effectivePriceBuilder_.dispose();
effectivePriceBuilder_ = null;
}
+ pricePeriod_ = null;
+ if (pricePeriodBuilder_ != null) {
+ pricePeriodBuilder_.dispose();
+ pricePeriodBuilder_ = null;
+ }
externalPriceUri_ = "";
+ if (discountComponentsBuilder_ == null) {
+ discountComponents_ = java.util.Collections.emptyList();
+ } else {
+ discountComponents_ = null;
+ discountComponentsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@@ -522,6 +704,7 @@ public com.google.cloud.channel.v1.Price build() {
@java.lang.Override
public com.google.cloud.channel.v1.Price buildPartial() {
com.google.cloud.channel.v1.Price result = new com.google.cloud.channel.v1.Price(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -529,6 +712,18 @@ public com.google.cloud.channel.v1.Price buildPartial() {
return result;
}
+ private void buildPartialRepeatedFields(com.google.cloud.channel.v1.Price result) {
+ if (discountComponentsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
+ discountComponents_ = java.util.Collections.unmodifiableList(discountComponents_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.discountComponents_ = discountComponents_;
+ } else {
+ result.discountComponents_ = discountComponentsBuilder_.build();
+ }
+ }
+
private void buildPartial0(com.google.cloud.channel.v1.Price result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
@@ -545,6 +740,11 @@ private void buildPartial0(com.google.cloud.channel.v1.Price result) {
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.pricePeriod_ =
+ pricePeriodBuilder_ == null ? pricePeriod_ : pricePeriodBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.externalPriceUri_ = externalPriceUri_;
}
result.bitField0_ |= to_bitField0_;
@@ -604,11 +804,41 @@ public Builder mergeFrom(com.google.cloud.channel.v1.Price other) {
if (other.hasEffectivePrice()) {
mergeEffectivePrice(other.getEffectivePrice());
}
+ if (other.hasPricePeriod()) {
+ mergePricePeriod(other.getPricePeriod());
+ }
if (!other.getExternalPriceUri().isEmpty()) {
externalPriceUri_ = other.externalPriceUri_;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
}
+ if (discountComponentsBuilder_ == null) {
+ if (!other.discountComponents_.isEmpty()) {
+ if (discountComponents_.isEmpty()) {
+ discountComponents_ = other.discountComponents_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.addAll(other.discountComponents_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.discountComponents_.isEmpty()) {
+ if (discountComponentsBuilder_.isEmpty()) {
+ discountComponentsBuilder_.dispose();
+ discountComponentsBuilder_ = null;
+ discountComponents_ = other.discountComponents_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ discountComponentsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getDiscountComponentsFieldBuilder()
+ : null;
+ } else {
+ discountComponentsBuilder_.addAllMessages(other.discountComponents_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -656,9 +886,28 @@ public Builder mergeFrom(
case 34:
{
externalPriceUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
break;
} // case 34
+ case 42:
+ {
+ com.google.cloud.channel.v1.DiscountComponent m =
+ input.readMessage(
+ com.google.cloud.channel.v1.DiscountComponent.parser(), extensionRegistry);
+ if (discountComponentsBuilder_ == null) {
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.add(m);
+ } else {
+ discountComponentsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 42
+ case 50:
+ {
+ input.readMessage(getPricePeriodFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1112,6 +1361,218 @@ public com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder() {
return effectivePriceBuilder_;
}
+ private com.google.cloud.channel.v1.Period pricePeriod_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.channel.v1.Period,
+ com.google.cloud.channel.v1.Period.Builder,
+ com.google.cloud.channel.v1.PeriodOrBuilder>
+ pricePeriodBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ *
+ * @return Whether the pricePeriod field is set.
+ */
+ public boolean hasPricePeriod() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ *
+ * @return The pricePeriod.
+ */
+ public com.google.cloud.channel.v1.Period getPricePeriod() {
+ if (pricePeriodBuilder_ == null) {
+ return pricePeriod_ == null
+ ? com.google.cloud.channel.v1.Period.getDefaultInstance()
+ : pricePeriod_;
+ } else {
+ return pricePeriodBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ public Builder setPricePeriod(com.google.cloud.channel.v1.Period value) {
+ if (pricePeriodBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pricePeriod_ = value;
+ } else {
+ pricePeriodBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ public Builder setPricePeriod(com.google.cloud.channel.v1.Period.Builder builderForValue) {
+ if (pricePeriodBuilder_ == null) {
+ pricePeriod_ = builderForValue.build();
+ } else {
+ pricePeriodBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ public Builder mergePricePeriod(com.google.cloud.channel.v1.Period value) {
+ if (pricePeriodBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && pricePeriod_ != null
+ && pricePeriod_ != com.google.cloud.channel.v1.Period.getDefaultInstance()) {
+ getPricePeriodBuilder().mergeFrom(value);
+ } else {
+ pricePeriod_ = value;
+ }
+ } else {
+ pricePeriodBuilder_.mergeFrom(value);
+ }
+ if (pricePeriod_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ public Builder clearPricePeriod() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ pricePeriod_ = null;
+ if (pricePeriodBuilder_ != null) {
+ pricePeriodBuilder_.dispose();
+ pricePeriodBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ public com.google.cloud.channel.v1.Period.Builder getPricePeriodBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getPricePeriodFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ public com.google.cloud.channel.v1.PeriodOrBuilder getPricePeriodOrBuilder() {
+ if (pricePeriodBuilder_ != null) {
+ return pricePeriodBuilder_.getMessageOrBuilder();
+ } else {
+ return pricePeriod_ == null
+ ? com.google.cloud.channel.v1.Period.getDefaultInstance()
+ : pricePeriod_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.channel.v1.Period,
+ com.google.cloud.channel.v1.Period.Builder,
+ com.google.cloud.channel.v1.PeriodOrBuilder>
+ getPricePeriodFieldBuilder() {
+ if (pricePeriodBuilder_ == null) {
+ pricePeriodBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.channel.v1.Period,
+ com.google.cloud.channel.v1.Period.Builder,
+ com.google.cloud.channel.v1.PeriodOrBuilder>(
+ getPricePeriod(), getParentForChildren(), isClean());
+ pricePeriod_ = null;
+ }
+ return pricePeriodBuilder_;
+ }
+
private java.lang.Object externalPriceUri_ = "";
/**
@@ -1177,7 +1638,7 @@ public Builder setExternalPriceUri(java.lang.String value) {
throw new NullPointerException();
}
externalPriceUri_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1195,7 +1656,7 @@ public Builder setExternalPriceUri(java.lang.String value) {
*/
public Builder clearExternalPriceUri() {
externalPriceUri_ = getDefaultInstance().getExternalPriceUri();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -1218,11 +1679,407 @@ public Builder setExternalPriceUriBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
externalPriceUri_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
+ private java.util.List discountComponents_ =
+ java.util.Collections.emptyList();
+
+ private void ensureDiscountComponentsIsMutable() {
+ if (!((bitField0_ & 0x00000020) != 0)) {
+ discountComponents_ =
+ new java.util.ArrayList(
+ discountComponents_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.DiscountComponent,
+ com.google.cloud.channel.v1.DiscountComponent.Builder,
+ com.google.cloud.channel.v1.DiscountComponentOrBuilder>
+ discountComponentsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public java.util.List
+ getDiscountComponentsList() {
+ if (discountComponentsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(discountComponents_);
+ } else {
+ return discountComponentsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public int getDiscountComponentsCount() {
+ if (discountComponentsBuilder_ == null) {
+ return discountComponents_.size();
+ } else {
+ return discountComponentsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public com.google.cloud.channel.v1.DiscountComponent getDiscountComponents(int index) {
+ if (discountComponentsBuilder_ == null) {
+ return discountComponents_.get(index);
+ } else {
+ return discountComponentsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder setDiscountComponents(
+ int index, com.google.cloud.channel.v1.DiscountComponent value) {
+ if (discountComponentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.set(index, value);
+ onChanged();
+ } else {
+ discountComponentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder setDiscountComponents(
+ int index, com.google.cloud.channel.v1.DiscountComponent.Builder builderForValue) {
+ if (discountComponentsBuilder_ == null) {
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ discountComponentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder addDiscountComponents(com.google.cloud.channel.v1.DiscountComponent value) {
+ if (discountComponentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.add(value);
+ onChanged();
+ } else {
+ discountComponentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder addDiscountComponents(
+ int index, com.google.cloud.channel.v1.DiscountComponent value) {
+ if (discountComponentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.add(index, value);
+ onChanged();
+ } else {
+ discountComponentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder addDiscountComponents(
+ com.google.cloud.channel.v1.DiscountComponent.Builder builderForValue) {
+ if (discountComponentsBuilder_ == null) {
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.add(builderForValue.build());
+ onChanged();
+ } else {
+ discountComponentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder addDiscountComponents(
+ int index, com.google.cloud.channel.v1.DiscountComponent.Builder builderForValue) {
+ if (discountComponentsBuilder_ == null) {
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ discountComponentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder addAllDiscountComponents(
+ java.lang.Iterable extends com.google.cloud.channel.v1.DiscountComponent> values) {
+ if (discountComponentsBuilder_ == null) {
+ ensureDiscountComponentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, discountComponents_);
+ onChanged();
+ } else {
+ discountComponentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder clearDiscountComponents() {
+ if (discountComponentsBuilder_ == null) {
+ discountComponents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ discountComponentsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public Builder removeDiscountComponents(int index) {
+ if (discountComponentsBuilder_ == null) {
+ ensureDiscountComponentsIsMutable();
+ discountComponents_.remove(index);
+ onChanged();
+ } else {
+ discountComponentsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public com.google.cloud.channel.v1.DiscountComponent.Builder getDiscountComponentsBuilder(
+ int index) {
+ return getDiscountComponentsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public com.google.cloud.channel.v1.DiscountComponentOrBuilder getDiscountComponentsOrBuilder(
+ int index) {
+ if (discountComponentsBuilder_ == null) {
+ return discountComponents_.get(index);
+ } else {
+ return discountComponentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public java.util.List extends com.google.cloud.channel.v1.DiscountComponentOrBuilder>
+ getDiscountComponentsOrBuilderList() {
+ if (discountComponentsBuilder_ != null) {
+ return discountComponentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(discountComponents_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public com.google.cloud.channel.v1.DiscountComponent.Builder addDiscountComponentsBuilder() {
+ return getDiscountComponentsFieldBuilder()
+ .addBuilder(com.google.cloud.channel.v1.DiscountComponent.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public com.google.cloud.channel.v1.DiscountComponent.Builder addDiscountComponentsBuilder(
+ int index) {
+ return getDiscountComponentsFieldBuilder()
+ .addBuilder(index, com.google.cloud.channel.v1.DiscountComponent.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ public java.util.List
+ getDiscountComponentsBuilderList() {
+ return getDiscountComponentsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.DiscountComponent,
+ com.google.cloud.channel.v1.DiscountComponent.Builder,
+ com.google.cloud.channel.v1.DiscountComponentOrBuilder>
+ getDiscountComponentsFieldBuilder() {
+ if (discountComponentsBuilder_ == null) {
+ discountComponentsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.DiscountComponent,
+ com.google.cloud.channel.v1.DiscountComponent.Builder,
+ com.google.cloud.channel.v1.DiscountComponentOrBuilder>(
+ discountComponents_,
+ ((bitField0_ & 0x00000020) != 0),
+ getParentForChildren(),
+ isClean());
+ discountComponents_ = null;
+ }
+ return discountComponentsBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PriceOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PriceOrBuilder.java
index 0a95116fb7fb..a8824e89ccaa 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PriceOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PriceOrBuilder.java
@@ -112,6 +112,49 @@ public interface PriceOrBuilder
*/
com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder();
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ *
+ * @return Whether the pricePeriod field is set.
+ */
+ boolean hasPricePeriod();
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ *
+ * @return The pricePeriod.
+ */
+ com.google.cloud.channel.v1.Period getPricePeriod();
+
+ /**
+ *
+ *
+ *
+ * The time period with respect to which base and effective prices are
+ * defined.
+ * Example: 1 month, 6 months, 1 year, etc.
+ *
+ *
+ * .google.cloud.channel.v1.Period price_period = 6;
+ */
+ com.google.cloud.channel.v1.PeriodOrBuilder getPricePeriodOrBuilder();
+
/**
*
*
@@ -137,4 +180,65 @@ public interface PriceOrBuilder
* @return The bytes for externalPriceUri.
*/
com.google.protobuf.ByteString getExternalPriceUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ java.util.List getDiscountComponentsList();
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ com.google.cloud.channel.v1.DiscountComponent getDiscountComponents(int index);
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ int getDiscountComponentsCount();
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ java.util.List extends com.google.cloud.channel.v1.DiscountComponentOrBuilder>
+ getDiscountComponentsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Breakdown of the discount into its components.
+ * This will be empty if there is no discount present.
+ *
+ *
+ * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
+ */
+ com.google.cloud.channel.v1.DiscountComponentOrBuilder getDiscountComponentsOrBuilder(int index);
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOffer.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOffer.java
index 7f990e732c3b..bff8b12ef2eb 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOffer.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOffer.java
@@ -40,7 +40,9 @@ private PurchasableOffer(com.google.protobuf.GeneratedMessageV3.Builder> build
super(builder);
}
- private PurchasableOffer() {}
+ private PurchasableOffer() {
+ priceReferenceId_ = "";
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -113,6 +115,63 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder() {
return offer_ == null ? com.google.cloud.channel.v1.Offer.getDefaultInstance() : offer_;
}
+ public static final int PRICE_REFERENCE_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object priceReferenceId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ @java.lang.Override
+ public java.lang.String getPriceReferenceId() {
+ java.lang.Object ref = priceReferenceId_;
+ 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();
+ priceReferenceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPriceReferenceIdBytes() {
+ java.lang.Object ref = priceReferenceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ priceReferenceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -130,6 +189,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getOffer());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, priceReferenceId_);
+ }
getUnknownFields().writeTo(output);
}
@@ -142,6 +204,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOffer());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, priceReferenceId_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -162,6 +227,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasOffer()) {
if (!getOffer().equals(other.getOffer())) return false;
}
+ if (!getPriceReferenceId().equals(other.getPriceReferenceId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -177,6 +243,8 @@ public int hashCode() {
hash = (37 * hash) + OFFER_FIELD_NUMBER;
hash = (53 * hash) + getOffer().hashCode();
}
+ hash = (37 * hash) + PRICE_REFERENCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getPriceReferenceId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -332,6 +400,7 @@ public Builder clear() {
offerBuilder_.dispose();
offerBuilder_ = null;
}
+ priceReferenceId_ = "";
return this;
}
@@ -373,6 +442,9 @@ private void buildPartial0(com.google.cloud.channel.v1.PurchasableOffer result)
result.offer_ = offerBuilder_ == null ? offer_ : offerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.priceReferenceId_ = priceReferenceId_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -424,6 +496,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.PurchasableOffer other) {
if (other.hasOffer()) {
mergeOffer(other.getOffer());
}
+ if (!other.getPriceReferenceId().isEmpty()) {
+ priceReferenceId_ = other.priceReferenceId_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -456,6 +533,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 18:
+ {
+ priceReferenceId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -665,6 +748,127 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder() {
return offerBuilder_;
}
+ private java.lang.Object priceReferenceId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ public java.lang.String getPriceReferenceId() {
+ java.lang.Object ref = priceReferenceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ priceReferenceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ public com.google.protobuf.ByteString getPriceReferenceIdBytes() {
+ java.lang.Object ref = priceReferenceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ priceReferenceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The priceReferenceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriceReferenceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ priceReferenceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPriceReferenceId() {
+ priceReferenceId_ = getDefaultInstance().getPriceReferenceId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for priceReferenceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ priceReferenceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOfferOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOfferOrBuilder.java
index 8a05b280b8eb..af9a3d959cf9 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOfferOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOfferOrBuilder.java
@@ -60,4 +60,34 @@ public interface PurchasableOfferOrBuilder
* .google.cloud.channel.v1.Offer offer = 1;
*/
com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ java.lang.String getPriceReferenceId();
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ com.google.protobuf.ByteString getPriceReferenceIdBytes();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequest.java
index 5279ac40fcf7..e38d47f7b136 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequest.java
@@ -42,6 +42,7 @@ private RegisterSubscriberRequest(com.google.protobuf.GeneratedMessageV3.Builder
private RegisterSubscriberRequest() {
account_ = "";
serviceAccount_ = "";
+ integrator_ = "";
}
@java.lang.Override
@@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.channel.v1.RegisterSubscriberRequest.Builder.class);
}
+ private int bitField0_;
public static final int ACCOUNT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -74,10 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -98,10 +103,13 @@ public java.lang.String getAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -173,6 +181,78 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
}
}
+ public static final int INTEGRATOR_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object integrator_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntegrator() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ @java.lang.Override
+ public java.lang.String getIntegrator() {
+ java.lang.Object ref = integrator_;
+ 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();
+ integrator_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIntegratorBytes() {
+ java.lang.Object ref = integrator_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ integrator_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -193,6 +273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, integrator_);
+ }
getUnknownFields().writeTo(output);
}
@@ -208,6 +291,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, integrator_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -226,6 +312,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getAccount().equals(other.getAccount())) return false;
if (!getServiceAccount().equals(other.getServiceAccount())) return false;
+ if (hasIntegrator() != other.hasIntegrator()) return false;
+ if (hasIntegrator()) {
+ if (!getIntegrator().equals(other.getIntegrator())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -241,6 +331,10 @@ public int hashCode() {
hash = (53 * hash) + getAccount().hashCode();
hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccount().hashCode();
+ if (hasIntegrator()) {
+ hash = (37 * hash) + INTEGRATOR_FIELD_NUMBER;
+ hash = (53 * hash) + getIntegrator().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -384,6 +478,7 @@ public Builder clear() {
bitField0_ = 0;
account_ = "";
serviceAccount_ = "";
+ integrator_ = "";
return this;
}
@@ -426,6 +521,12 @@ private void buildPartial0(com.google.cloud.channel.v1.RegisterSubscriberRequest
if (((from_bitField0_ & 0x00000002) != 0)) {
result.serviceAccount_ = serviceAccount_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.integrator_ = integrator_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -484,6 +585,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.RegisterSubscriberRequest o
bitField0_ |= 0x00000002;
onChanged();
}
+ if (other.hasIntegrator()) {
+ integrator_ = other.integrator_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -522,6 +628,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ integrator_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -547,10 +659,13 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -570,10 +685,13 @@ public java.lang.String getAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -593,10 +711,13 @@ public com.google.protobuf.ByteString getAccountBytes() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @param value The account to set.
* @return This builder for chaining.
@@ -615,10 +736,13 @@ public Builder setAccount(java.lang.String value) {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return This builder for chaining.
*/
@@ -633,10 +757,13 @@ public Builder clearAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @param value The bytes for account to set.
* @return This builder for chaining.
@@ -768,6 +895,138 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object integrator_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ public boolean hasIntegrator() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ public java.lang.String getIntegrator() {
+ java.lang.Object ref = integrator_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ integrator_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ public com.google.protobuf.ByteString getIntegratorBytes() {
+ java.lang.Object ref = integrator_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ integrator_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The integrator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntegrator(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ integrator_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntegrator() {
+ integrator_ = getDefaultInstance().getIntegrator();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for integrator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntegratorBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ integrator_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequestOrBuilder.java
index 5bf243079b7d..a59994952e90 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequestOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequestOrBuilder.java
@@ -28,10 +28,13 @@ public interface RegisterSubscriberRequestOrBuilder
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -41,10 +44,13 @@ public interface RegisterSubscriberRequestOrBuilder
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -77,4 +83,46 @@ public interface RegisterSubscriberRequestOrBuilder
* @return The bytes for serviceAccount.
*/
com.google.protobuf.ByteString getServiceAccountBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ boolean hasIntegrator();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ java.lang.String getIntegrator();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ com.google.protobuf.ByteString getIntegratorBytes();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java
index 34e71f4c8f3e..cef43dd870e0 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java
@@ -1257,7 +1257,7 @@ public GranularityCase getGranularityCase() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -1274,7 +1274,7 @@ public GranularityCase getGranularityCase() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the entitlementGranularity field is set.
@@ -1288,7 +1288,7 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -1305,7 +1305,7 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The entitlementGranularity.
@@ -1323,7 +1323,7 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -1340,7 +1340,7 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
@@ -1371,7 +1371,7 @@ public boolean hasEntitlementGranularity() {
*
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
- * See google/cloud/channel/v1/repricing.proto;l=139
+ * See google/cloud/channel/v1/repricing.proto;l=140
* @return Whether the channelPartnerGranularity field is set.
*/
@java.lang.Override
@@ -1397,7 +1397,7 @@ public boolean hasChannelPartnerGranularity() {
*
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
- * See google/cloud/channel/v1/repricing.proto;l=139
+ * See google/cloud/channel/v1/repricing.proto;l=140
* @return The channelPartnerGranularity.
*/
@java.lang.Override
@@ -2303,7 +2303,7 @@ public Builder clearGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2320,7 +2320,7 @@ public Builder clearGranularity() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the entitlementGranularity field is set.
@@ -2334,7 +2334,7 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2351,7 +2351,7 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The entitlementGranularity.
@@ -2378,7 +2378,7 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2395,7 +2395,7 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setEntitlementGranularity(
@@ -2417,7 +2417,7 @@ public Builder setEntitlementGranularity(
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2434,7 +2434,7 @@ public Builder setEntitlementGranularity(
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setEntitlementGranularity(
@@ -2454,7 +2454,7 @@ public Builder setEntitlementGranularity(
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2471,7 +2471,7 @@ public Builder setEntitlementGranularity(
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeEntitlementGranularity(
@@ -2506,7 +2506,7 @@ public Builder mergeEntitlementGranularity(
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2523,7 +2523,7 @@ public Builder mergeEntitlementGranularity(
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearEntitlementGranularity() {
@@ -2547,7 +2547,7 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2564,7 +2564,7 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.Builder
@@ -2576,7 +2576,7 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2593,7 +2593,7 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
@@ -2614,7 +2614,7 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -2631,7 +2631,7 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
@@ -2683,7 +2683,7 @@ public Builder clearEntitlementGranularity() {
*
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is
- * deprecated. See google/cloud/channel/v1/repricing.proto;l=139
+ * deprecated. See google/cloud/channel/v1/repricing.proto;l=140
* @return Whether the channelPartnerGranularity field is set.
*/
@java.lang.Override
@@ -2709,7 +2709,7 @@ public boolean hasChannelPartnerGranularity() {
*
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is
- * deprecated. See google/cloud/channel/v1/repricing.proto;l=139
+ * deprecated. See google/cloud/channel/v1/repricing.proto;l=140
* @return The channelPartnerGranularity.
*/
@java.lang.Override
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java
index 20d0e7cf6502..373512788160 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java
@@ -28,7 +28,7 @@ public interface RepricingConfigOrBuilder
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -45,7 +45,7 @@ public interface RepricingConfigOrBuilder
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the entitlementGranularity field is set.
@@ -56,7 +56,7 @@ public interface RepricingConfigOrBuilder
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -73,7 +73,7 @@ public interface RepricingConfigOrBuilder
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The entitlementGranularity.
@@ -84,7 +84,7 @@ public interface RepricingConfigOrBuilder
*
*
*
- * Applies the repricing configuration at the entitlement level.
+ * Required. Applies the repricing configuration at the entitlement level.
*
* Note: If a
* [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -101,7 +101,7 @@ public interface RepricingConfigOrBuilder
*
*
*
- * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
+ * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
com.google.cloud.channel.v1.RepricingConfig.EntitlementGranularityOrBuilder
@@ -124,7 +124,7 @@ public interface RepricingConfigOrBuilder
*
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
- * See google/cloud/channel/v1/repricing.proto;l=139
+ * See google/cloud/channel/v1/repricing.proto;l=140
* @return Whether the channelPartnerGranularity field is set.
*/
@java.lang.Deprecated
@@ -147,7 +147,7 @@ public interface RepricingConfigOrBuilder
*
*
* @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
- * See google/cloud/channel/v1/repricing.proto;l=139
+ * See google/cloud/channel/v1/repricing.proto;l=140
* @return The channelPartnerGranularity.
*/
@java.lang.Deprecated
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingProto.java
index c52d0a3f3490..e2053c468ef9 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingProto.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingProto.java
@@ -99,43 +99,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "elPartnerRepricingConfig\022zaccounts/{acco"
+ "unt}/channelPartnerLinks/{channel_partne"
+ "r}/channelPartnerRepricingConfigs/{chann"
- + "el_partner_repricing_config}\"\205\005\n\017Reprici"
- + "ngConfig\022b\n\027entitlement_granularity\030\004 \001("
+ + "el_partner_repricing_config}\"\212\005\n\017Reprici"
+ + "ngConfig\022g\n\027entitlement_granularity\030\004 \001("
+ "\0132?.google.cloud.channel.v1.RepricingCon"
- + "fig.EntitlementGranularityH\000\022m\n\033channel_"
- + "partner_granularity\030\005 \001(\0132B.google.cloud"
- + ".channel.v1.RepricingConfig.ChannelPartn"
- + "erGranularityB\002\030\001H\000\0227\n\027effective_invoice"
- + "_month\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022E\n\n"
- + "adjustment\030\002 \001(\0132,.google.cloud.channel."
- + "v1.RepricingAdjustmentB\003\340A\002\022E\n\017rebilling"
- + "_basis\030\003 \001(\0162\'.google.cloud.channel.v1.R"
- + "ebillingBasisB\003\340A\002\022K\n\025conditional_overri"
- + "des\030\006 \003(\0132,.google.cloud.channel.v1.Cond"
- + "itionalOverride\032[\n\026EntitlementGranularit"
- + "y\022A\n\013entitlement\030\001 \001(\tB,\372A)\n\'cloudchanne"
- + "l.googleapis.com/Entitlement\032\037\n\031ChannelP"
- + "artnerGranularity:\002\030\001B\r\n\013granularity\"s\n\023"
- + "RepricingAdjustment\022N\n\025percentage_adjust"
- + "ment\030\002 \001(\0132-.google.cloud.channel.v1.Per"
- + "centageAdjustmentH\000B\014\n\nadjustment\"@\n\024Per"
- + "centageAdjustment\022(\n\npercentage\030\002 \001(\0132\024."
- + "google.type.Decimal\"\362\001\n\023ConditionalOverr"
- + "ide\022E\n\nadjustment\030\001 \001(\0132,.google.cloud.c"
- + "hannel.v1.RepricingAdjustmentB\003\340A\002\022E\n\017re"
- + "billing_basis\030\002 \001(\0162\'.google.cloud.chann"
- + "el.v1.RebillingBasisB\003\340A\002\022M\n\023repricing_c"
- + "ondition\030\003 \001(\0132+.google.cloud.channel.v1"
- + ".RepricingConditionB\003\340A\002\"l\n\022RepricingCon"
- + "dition\022I\n\023sku_group_condition\030\001 \001(\0132*.go"
- + "ogle.cloud.channel.v1.SkuGroupConditionH"
- + "\000B\013\n\tcondition\"&\n\021SkuGroupCondition\022\021\n\ts"
- + "ku_group\030\001 \001(\t*]\n\016RebillingBasis\022\037\n\033REBI"
- + "LLING_BASIS_UNSPECIFIED\020\000\022\020\n\014COST_AT_LIS"
- + "T\020\001\022\030\n\024DIRECT_CUSTOMER_COST\020\002Bf\n\033com.goo"
- + "gle.cloud.channel.v1B\016RepricingProtoP\001Z5"
- + "cloud.google.com/go/channel/apiv1/channe"
- + "lpb;channelpbb\006proto3"
+ + "fig.EntitlementGranularityB\003\340A\002H\000\022m\n\033cha"
+ + "nnel_partner_granularity\030\005 \001(\0132B.google."
+ + "cloud.channel.v1.RepricingConfig.Channel"
+ + "PartnerGranularityB\002\030\001H\000\0227\n\027effective_in"
+ + "voice_month\030\001 \001(\0132\021.google.type.DateB\003\340A"
+ + "\002\022E\n\nadjustment\030\002 \001(\0132,.google.cloud.cha"
+ + "nnel.v1.RepricingAdjustmentB\003\340A\002\022E\n\017rebi"
+ + "lling_basis\030\003 \001(\0162\'.google.cloud.channel"
+ + ".v1.RebillingBasisB\003\340A\002\022K\n\025conditional_o"
+ + "verrides\030\006 \003(\0132,.google.cloud.channel.v1"
+ + ".ConditionalOverride\032[\n\026EntitlementGranu"
+ + "larity\022A\n\013entitlement\030\001 \001(\tB,\372A)\n\'cloudc"
+ + "hannel.googleapis.com/Entitlement\032\037\n\031Cha"
+ + "nnelPartnerGranularity:\002\030\001B\r\n\013granularit"
+ + "y\"s\n\023RepricingAdjustment\022N\n\025percentage_a"
+ + "djustment\030\002 \001(\0132-.google.cloud.channel.v"
+ + "1.PercentageAdjustmentH\000B\014\n\nadjustment\"@"
+ + "\n\024PercentageAdjustment\022(\n\npercentage\030\002 \001"
+ + "(\0132\024.google.type.Decimal\"\362\001\n\023Conditional"
+ + "Override\022E\n\nadjustment\030\001 \001(\0132,.google.cl"
+ + "oud.channel.v1.RepricingAdjustmentB\003\340A\002\022"
+ + "E\n\017rebilling_basis\030\002 \001(\0162\'.google.cloud."
+ + "channel.v1.RebillingBasisB\003\340A\002\022M\n\023repric"
+ + "ing_condition\030\003 \001(\0132+.google.cloud.chann"
+ + "el.v1.RepricingConditionB\003\340A\002\"l\n\022Reprici"
+ + "ngCondition\022I\n\023sku_group_condition\030\001 \001(\013"
+ + "2*.google.cloud.channel.v1.SkuGroupCondi"
+ + "tionH\000B\013\n\tcondition\"&\n\021SkuGroupCondition"
+ + "\022\021\n\tsku_group\030\001 \001(\t*]\n\016RebillingBasis\022\037\n"
+ + "\033REBILLING_BASIS_UNSPECIFIED\020\000\022\020\n\014COST_A"
+ + "T_LIST\020\001\022\030\n\024DIRECT_CUSTOMER_COST\020\002Bf\n\033co"
+ + "m.google.cloud.channel.v1B\016RepricingProt"
+ + "oP\001Z5cloud.google.com/go/channel/apiv1/c"
+ + "hannelpb;channelpbb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java
index 56abdced3ab0..b53f96b5751c 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java
@@ -468,9 +468,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\036ListTransferableOffersResponse\022G\n"
+ "\023transferable_offers\030\001 "
+ "\003(\0132*.google.cloud.channel.v1.TransferableOffer\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"B\n"
+ + "\017next_page_token\030\002 \001(\t\"c\n"
+ "\021TransferableOffer\022-\n"
- + "\005offer\030\001 \001(\0132\036.google.cloud.channel.v1.Offer\"V\n"
+ + "\005offer\030\001 \001(\0132\036.google.cloud.channel.v1.Offer\022\037\n"
+ + "\022price_reference_id\030\002 \001(\tB\003\340A\001\"V\n"
+ "\025GetEntitlementRequest\022=\n"
+ "\004name\030\001 \001(\tB/\340A\002\372A)\n"
+ "\'cloudchannel.googleapis.com/Entitlement\"\252\001\n"
@@ -478,24 +479,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006parent\030\001 \001(\tB\003\340A\002\022\026\n"
+ "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
+ "page_token\030\003 \001(\tB\003\340A\001\022B\n"
- + "\004view\030\004 \001(\0162/.google.clo"
- + "ud.channel.v1.ChannelPartnerLinkViewB\003\340A\001\"\206\001\n"
+ + "\004view\030\004"
+ + " \001(\0162/.google.cloud.channel.v1.ChannelPartnerLinkViewB\003\340A\001\"\206\001\n"
+ "\037ListChannelPartnerLinksResponse\022J\n"
+ "\025channel_partner_links\030\001"
+ " \003(\0132+.google.cloud.channel.v1.ChannelPartnerLink\022\027\n"
+ "\017next_page_token\030\002 \001(\t\"u\n"
+ "\034GetChannelPartnerLinkRequest\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\022B\n"
- + "\004view\030\002 "
- + "\001(\0162/.google.cloud.channel.v1.ChannelPartnerLinkViewB\003\340A\001\"\206\001\n"
+ + "\004view\030\002 \001(\0162/.g"
+ + "oogle.cloud.channel.v1.ChannelPartnerLinkViewB\003\340A\001\"\206\001\n"
+ "\037CreateChannelPartnerLinkRequest\022\023\n"
+ "\006parent\030\001 \001(\tB\003\340A\002\022N\n"
+ "\024channel_partner_link\030\002"
+ " \001(\0132+.google.cloud.channel.v1.ChannelPartnerLinkB\003\340A\002\"\272\001\n"
+ "\037UpdateChannelPartnerLinkRequest\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\022N\n"
- + "\024channel_partner_link\030\002 \001(\0132"
- + "+.google.cloud.channel.v1.ChannelPartnerLinkB\003\340A\002\0224\n"
+ + "\024channel_partner_link\030\002 \001(\0132+.googl"
+ + "e.cloud.channel.v1.ChannelPartnerLinkB\003\340A\002\0224\n"
+ "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"n\n"
+ "!GetCustomerRepricingConfigRequest\022I\n"
+ "\004name\030\001 \001(\tB;\340A\002\372A5\n"
@@ -513,11 +514,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "$CreateCustomerRepricingConfigRequest\022<\n"
+ "\006parent\030\001 \001(\tB,\340A\002\372A&\n"
+ "$cloudchannel.googleapis.com/Customer\022X\n"
- + "\031customer_repricing_config\030\002 \001(\01320."
- + "google.cloud.channel.v1.CustomerRepricingConfigB\003\340A\002\"\200\001\n"
+ + "\031customer_repricing_config\030\002 \001(\01320.google."
+ + "cloud.channel.v1.CustomerRepricingConfigB\003\340A\002\"\200\001\n"
+ "$UpdateCustomerRepricingConfigRequest\022X\n"
- + "\031customer_repricing_config\030\001"
- + " \001(\01320.google.cloud.channel.v1.CustomerRepricingConfigB\003\340A\002\"q\n"
+ + "\031customer_repricing_config\030\001 \001("
+ + "\01320.google.cloud.channel.v1.CustomerRepricingConfigB\003\340A\002\"q\n"
+ "$DeleteCustomerRepricingConfigRequest\022I\n"
+ "\004name\030\001 \001(\tB;\340A\002\372A5\n"
+ "3cloudchannel.googleapis.com/CustomerRepricingConfig\"z\n"
@@ -527,7 +528,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ")ListChannelPartnerRepricingConfigsRequest\022F\n"
+ "\006parent\030\001 \001(\tB6\340A\002\372A0\n"
+ ".cloudchannel.googleapis.com/ChannelPartnerLink\022\026\n"
- + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
+ + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n"
+ + "\n"
+ "page_token\030\003 \001(\tB\003\340A\001\022\023\n"
+ "\006filter\030\004 \001(\tB\003\340A\001\"\250\001\n"
+ "*ListChannelPartnerRepricingConfigsResponse\022a\n"
@@ -537,8 +539,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "*CreateChannelPartnerRepricingConfigRequest\022F\n"
+ "\006parent\030\001 \001(\tB6\340A\002\372A0\n"
+ ".cloudchannel.googleapis.com/ChannelPartnerLink\022e\n"
- + " channel_partner_repricing_config\030\002 \001(\01326.google.cloud.ch"
- + "annel.v1.ChannelPartnerRepricingConfigB\003\340A\002\"\223\001\n"
+ + " channel_partner_repricing_config\030\002"
+ + " \001(\01326.google.cloud.channel.v1.ChannelPartnerRepricingConfigB\003\340A\002\"\223\001\n"
+ "*UpdateChannelPartnerRepricingConfigRequest\022e\n"
+ " channel_partner_repricing_config\030\001"
+ " \001(\01326.google.cloud.channel.v1.ChannelPartnerRepricingConfigB\003\340A\002\"}\n"
@@ -563,8 +565,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010SkuGroup\022\014\n"
+ "\004name\030\001 \001(\t\022\024\n"
+ "\014display_name\030\002 \001(\t:S\352AP\n"
- + "$cloudchannel.googleapis.com/SkuGroup"
- + "\022(accounts/{account}/skuGroups/{sku_group}\"c\n"
+ + "$cloudchannel.googleapis.com/SkuGroup\022(accounts/{account}/skuGroups/{sku_group}\"c\n"
+ "\013BillableSku\022\013\n"
+ "\003sku\030\001 \001(\t\022\030\n"
+ "\020sku_display_name\030\002 \001(\t\022\017\n"
@@ -578,8 +579,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "request_id\030\005 \001(\tB\003\340A\001\"\240\001\n"
+ "\033TransferEntitlementsRequest\022\023\n"
+ "\006parent\030\001 \001(\tB\003\340A\002\022?\n"
- + "\014entitlements\030\002 \003(\0132$"
- + ".google.cloud.channel.v1.EntitlementB\003\340A\002\022\022\n\n"
+ + "\014entitlements\030\002"
+ + " \003(\0132$.google.cloud.channel.v1.EntitlementB\003\340A\002\022\022\n\n"
+ "auth_token\030\004 \001(\t\022\027\n\n"
+ "request_id\030\006 \001(\tB\003\340A\001\"Z\n"
+ "\034TransferEntitlementsResponse\022:\n"
@@ -592,25 +593,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027ChangeParametersRequest\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\022;\n\n"
+ "parameters\030\002"
- + " \003(\0132\".google.cloud.channel.v1.ParameterB\003\340A\002\022\027\n"
- + "\n"
+ + " \003(\0132\".google.cloud.channel.v1.ParameterB\003\340A\002\022\027\n\n"
+ "request_id\030\004 \001(\tB\003\340A\001\022\036\n"
+ "\021purchase_order_id\030\005 \001(\tB\003\340A\001\"\223\001\n"
+ "\034ChangeRenewalSettingsRequest\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\022G\n"
+ "\020renewal_settings\030\004"
+ " \001(\0132(.google.cloud.channel.v1.RenewalSettingsB\003\340A\002\022\027\n\n"
- + "request_id\030\005 \001(\tB\003\340A\001\"\365\001\n"
+ + "request_id\030\005 \001(\tB\003\340A\001\"\226\002\n"
+ "\022ChangeOfferRequest\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\0228\n"
+ "\005offer\030\002 \001(\tB)\340A\002\372A#\n"
+ "!cloudchannel.googleapis.com/Offer\022;\n\n"
- + "parameters\030\003"
- + " \003(\0132\".google.cloud.channel.v1.ParameterB\003\340A\001\022\036\n"
- + "\021purchase_order_id\030\005 \001(\tB\003\340A\001\022\027\n"
- + "\n"
+ + "parameters\030\003 \003(\0132\"."
+ + "google.cloud.channel.v1.ParameterB\003\340A\001\022\036\n"
+ + "\021purchase_order_id\030\005 \001(\tB\003\340A\001\022\027\n\n"
+ "request_id\030\006 \001(\tB\003\340A\001\022\034\n"
- + "\017billing_account\030\007 \001(\tB\003\340A\001\"E\n"
+ + "\017billing_account\030\007 \001(\tB\003\340A\001\022\037\n"
+ + "\022price_reference_id\030\010 \001(\tB\003\340A\001\"E\n"
+ "\027StartPaidServiceRequest\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\022\027\n\n"
+ "request_id\030\003 \001(\tB\003\340A\001\"F\n"
@@ -621,8 +621,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB\003\340A\002\022\027\n\n"
+ "request_id\030\003 \001(\tB\003\340A\001\"H\n"
+ "\032ActivateEntitlementRequest\022\021\n"
- + "\004name\030\001 \001(\tB\003\340A\002\022\027\n"
- + "\n"
+ + "\004name\030\001 \001(\tB\003\340A\002\022\027\n\n"
+ "request_id\030\003 \001(\tB\003\340A\001\"Z\n"
+ "\022LookupOfferRequest\022D\n"
+ "\013entitlement\030\001 \001(\tB/\340A\002\372A)\n"
@@ -656,10 +655,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006offers\030\001 \003(\0132\036.google.cloud.channel.v1.Offer\022\027\n"
+ "\017next_page_token\030\002 \001(\t\"\266\005\n"
+ "\032ListPurchasableSkusRequest\022t\n"
- + "\033create_entitlement_purchase\030\002 \001(\0132M.google.cloud.c"
- + "hannel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchaseH\000\022h\n"
- + "\025change_offer_purchase\030\003 \001(\0132G.google.cloud.channel.v"
- + "1.ListPurchasableSkusRequest.ChangeOfferPurchaseH\000\022>\n"
+ + "\033create_entitlement_purchase\030\002 \001(\0132M.google.cloud.channel.v1.List"
+ + "PurchasableSkusRequest.CreateEntitlementPurchaseH\000\022h\n"
+ + "\025change_offer_purchase\030\003 \001("
+ + "\0132G.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchaseH\000\022>\n"
+ "\010customer\030\001 \001(\tB,\340A\002\372A&\n"
+ "$cloudchannel.googleapis.com/Customer\022\026\n"
+ "\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\n"
@@ -669,8 +668,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\007product\030\001 \001(\tB\003\340A\002\032\344\001\n"
+ "\023ChangeOfferPurchase\022\030\n"
+ "\013entitlement\030\001 \001(\tB\003\340A\002\022l\n"
- + "\013change_type\030\002 \001(\0162R.google.cloud.channel.v1.ListPurchasableSkusR"
- + "equest.ChangeOfferPurchase.ChangeTypeB\003\340A\002\"E\n\n"
+ + "\013change_type\030\002 \001(\0162R.google.cloud.chann"
+ + "el.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeTypeB\003\340A\002\"E\n\n"
+ "ChangeType\022\033\n"
+ "\027CHANGE_TYPE_UNSPECIFIED\020\000\022\013\n"
+ "\007UPGRADE\020\001\022\r\n"
@@ -683,10 +682,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016PurchasableSku\022)\n"
+ "\003sku\030\001 \001(\0132\034.google.cloud.channel.v1.Sku\"\324\004\n"
+ "\034ListPurchasableOffersRequest\022v\n"
- + "\033create_entitlement_purchase\030\002 \001(\0132O.google.clou"
- + "d.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchaseH\000\022j\n"
- + "\025change_offer_purchase\030\003 \001(\0132I.google.cloud.chan"
- + "nel.v1.ListPurchasableOffersRequest.ChangeOfferPurchaseH\000\022>\n"
+ + "\033create_entitlement_purchase\030\002 \001(\0132O.google.cloud.channel.v1.L"
+ + "istPurchasableOffersRequest.CreateEntitlementPurchaseH\000\022j\n"
+ + "\025change_offer_purchase\030\003 \001(\0132I.google.cloud.channel.v1.ListPur"
+ + "chasableOffersRequest.ChangeOfferPurchaseH\000\022>\n"
+ "\010customer\030\001 \001(\tB,\340A\002\372A&\n"
+ "$cloudchannel.googleapis.com/Customer\022\026\n"
+ "\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\n"
@@ -701,38 +700,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017billing_account\030\003 \001(\tB\003\340A\001B\021\n"
+ "\017purchase_option\"\177\n"
+ "\035ListPurchasableOffersResponse\022E\n"
- + "\022purchasable_offers\030\001"
- + " \003(\0132).google.cloud.channel.v1.PurchasableOffer\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"A\n"
+ + "\022purchasable_offers\030\001 \003"
+ + "(\0132).google.cloud.channel.v1.PurchasableOffer\022\027\n"
+ + "\017next_page_token\030\002 \001(\t\"b\n"
+ "\020PurchasableOffer\022-\n"
- + "\005offer\030\001 \001(\0132\036.google.cloud.channel.v1.Offer\"x\n"
+ + "\005offer\030\001 \001(\0132\036.google.cloud.channel.v1.Offer\022\037\n"
+ + "\022price_reference_id\030\002 \001(\tB\003\340A\001\"x\n"
+ "#QueryEligibleBillingAccountsRequest\022>\n"
+ "\010customer\030\001 \001(\tB,\340A\002\372A&\n"
+ "$cloudchannel.googleapis.com/Customer\022\021\n"
+ "\004skus\030\002 \003(\tB\003\340A\002\"n\n"
+ "$QueryEligibleBillingAccountsResponse\022F\n"
- + "\023sku_purchase_groups\030\001"
- + " \003(\0132).google.cloud.channel.v1.SkuPurchaseGroup\"}\n"
+ + "\023sku_purchase_groups\030\001 \003("
+ + "\0132).google.cloud.channel.v1.SkuPurchaseGroup\"}\n"
+ "\020SkuPurchaseGroup\022\014\n"
+ "\004skus\030\001 \003(\t\022[\n"
- + "\036billing_account_purchase_infos\030\002"
- + " \003(\01323.google.cloud.channel.v1.BillingAccountPurchaseInfo\"^\n"
+ + "\036billing_account_purchase_infos\030\002 \003(\01323"
+ + ".google.cloud.channel.v1.BillingAccountPurchaseInfo\"^\n"
+ "\032BillingAccountPurchaseInfo\022@\n"
- + "\017billing_account\030\001 \001(\0132\'.google.cloud.channel.v1.BillingAccount\"O\n"
- + "\031RegisterSubscriberRequest\022\024\n"
- + "\007account\030\001 \001(\tB\003\340A\002\022\034\n"
- + "\017service_account\030\002 \001(\tB\003\340A\002\"+\n"
+ + "\017billing_account\030\001"
+ + " \001(\0132\'.google.cloud.channel.v1.BillingAccount\"\244\001\n"
+ + "\031RegisterSubscriberRequest\022<\n"
+ + "\007account\030\001 \001(\tB+\340A\001\372A%\n"
+ + "#cloudchannel.googleapis.com/Account\022\034\n"
+ + "\017service_account\030\002 \001(\tB\003\340A\002\022\034\n\n"
+ + "integrator\030\003 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ + "\013_integrator\"+\n"
+ "\032RegisterSubscriberResponse\022\r\n"
- + "\005topic\030\001 \001(\t\"Q\n"
- + "\033UnregisterSubscriberRequest\022\024\n"
- + "\007account\030\001 \001(\tB\003\340A\002\022\034\n"
- + "\017service_account\030\002 \001(\tB\003\340A\002\"-\n"
+ + "\005topic\030\001 \001(\t\"\246\001\n"
+ + "\033UnregisterSubscriberRequest\022<\n"
+ + "\007account\030\001 \001(\tB+\340A\001\372A%\n"
+ + "#cloudchannel.googleapis.com/Account\022\034\n"
+ + "\017service_account\030\002 \001(\tB\003\340A\002\022\034\n\n"
+ + "integrator\030\003 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ + "\013_integrator\"-\n"
+ "\034UnregisterSubscriberResponse\022\r\n"
- + "\005topic\030\001 \001(\t\"_\n"
- + "\026ListSubscribersRequest\022\024\n"
- + "\007account\030\001 \001(\tB\003\340A\002\022\026\n"
+ + "\005topic\030\001 \001(\t\"\264\001\n"
+ + "\026ListSubscribersRequest\022<\n"
+ + "\007account\030\001 \001(\tB+\340A\001\372A%\n"
+ + "#cloudchannel.googleapis.com/Account\022\026\n"
+ "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
- + "page_token\030\003 \001(\tB\003\340A\001\"[\n"
+ + "page_token\030\003 \001(\tB\003\340A\001\022\034\n\n"
+ + "integrator\030\004 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ + "\013_integrator\"[\n"
+ "\027ListSubscribersResponse\022\r\n"
+ "\005topic\030\001 \001(\t\022\030\n"
+ "\020service_accounts\030\002 \003(\t\022\027\n"
@@ -746,255 +756,261 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\036ListEntitlementChangesResponse\022G\n"
+ "\023entitlement_changes\030\001"
+ " \003(\0132*.google.cloud.channel.v1.EntitlementChange\022\027\n"
- + "\017next_page_token\030\002 \001(\t2\305R\n"
+ + "\017next_page_token\030\002 \001(\t2\351S\n"
+ "\023CloudChannelService\022\324\001\n\r"
- + "ListCustomers\022-.google.cloud.channel.v1.ListCustomersRe"
- + "quest\032..google.cloud.channel.v1.ListCust"
- + "omersResponse\"d\202\323\344\223\002^\022!/v1/{parent=accou"
- + "nts/*}/customersZ9\0227/v1/{parent=accounts/*/channelPartnerLinks/*}/customers\022\312\001\n"
- + "\013GetCustomer\022+.google.cloud.channel.v1.Ge"
- + "tCustomerRequest\032!.google.cloud.channel."
- + "v1.Customer\"k\332A\004name\202\323\344\223\002^\022!/v1/{name=ac"
- + "counts/*/customers/*}Z9\0227/v1/{name=accou"
- + "nts/*/channelPartnerLinks/*/customers/*}\022\350\001\n"
- + "\037CheckCloudIdentityAccountsExist\022?.google.cloud.channel.v1.CheckCloudIdentit"
- + "yAccountsExistRequest\032@.google.cloud.channel.v1.CheckCloudIdentityAccountsExistR"
- + "esponse\"B\202\323\344\223\002<\"7/v1/{parent=accounts/*}:checkCloudIdentityAccountsExist:\001*\022\335\001\n"
- + "\016CreateCustomer\022..google.cloud.channel.v1"
- + ".CreateCustomerRequest\032!.google.cloud.ch"
- + "annel.v1.Customer\"x\202\323\344\223\002r\"!/v1/{parent=a"
- + "ccounts/*}/customers:\010customerZC\"7/v1/{p"
- + "arent=accounts/*/channelPartnerLinks/*}/customers:\010customer\022\361\001\n"
- + "\016UpdateCustomer\022..google.cloud.channel.v1.UpdateCustomerR"
- + "equest\032!.google.cloud.channel.v1.Custome"
- + "r\"\213\001\202\323\344\223\002\204\0012*/v1/{customer.name=accounts"
- + "/*/customers/*}:\010customerZL2@/v1/{custom"
- + "er.name=accounts/*/channelPartnerLinks/*/customers/*}:\010customer\022\305\001\n"
- + "\016DeleteCustomer\022..google.cloud.channel.v1.DeleteCusto"
- + "merRequest\032\026.google.protobuf.Empty\"k\332A\004n"
- + "ame\202\323\344\223\002^*!/v1/{name=accounts/*/customer"
- + "s/*}Z9*7/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}\022\335\001\n"
- + "\016ImportCustomer\022..google.cloud.channel.v1.ImportCusto"
- + "merRequest\032!.google.cloud.channel.v1.Cus"
- + "tomer\"x\202\323\344\223\002r\"(/v1/{parent=accounts/*}/c"
- + "ustomers:import:\001*ZC\">/v1/{parent=accoun"
- + "ts/*/channelPartnerLinks/*}/customers:import:\001*\022\330\001\n"
- + "\026ProvisionCloudIdentity\0226.google.cloud.channel.v1.ProvisionCloudIdent"
- + "ityRequest\032\035.google.longrunning.Operation\"g\312A\035\n"
- + "\010Customer\022\021OperationMetadata\202\323\344\223\002"
- + "A\"\"9/"
- + "v1/{name=accounts/*/customers/*/entitlem"
- + "ents/*}:activate:\001*\022\344\001\n\024TransferEntitlem"
- + "ents\0224.google.cloud.channel.v1.TransferE"
- + "ntitlementsRequest\032\035.google.longrunning."
- + "Operation\"w\312A1\n\034TransferEntitlementsResp"
- + "onse\022\021OperationMetadata\202\323\344\223\002=\"8/v1/{pare"
- + "nt=accounts/*/customers/*}:transferEntit"
- + "lements:\001*\022\365\001\n\034TransferEntitlementsToGoo"
- + "gle\022<.google.cloud.channel.v1.TransferEn"
- + "titlementsToGoogleRequest\032\035.google.longr"
- + "unning.Operation\"x\312A*\n\025google.protobuf.E"
- + "mpty\022\021OperationMetadata\202\323\344\223\002E\"@/v1/{pare"
- + "nt=accounts/*/customers/*}:transferEntit"
- + "lementsToGoogle:\001*\022\301\001\n\027ListChannelPartne"
- + "rLinks\0227.google.cloud.channel.v1.ListCha"
- + "nnelPartnerLinksRequest\0328.google.cloud.c"
- + "hannel.v1.ListChannelPartnerLinksRespons"
- + "e\"3\202\323\344\223\002-\022+/v1/{parent=accounts/*}/chann"
- + "elPartnerLinks\022\260\001\n\025GetChannelPartnerLink"
- + "\0225.google.cloud.channel.v1.GetChannelPar"
- + "tnerLinkRequest\032+.google.cloud.channel.v"
- + "1.ChannelPartnerLink\"3\202\323\344\223\002-\022+/v1/{name="
- + "accounts/*/channelPartnerLinks/*}\022\314\001\n\030Cr"
- + "eateChannelPartnerLink\0228.google.cloud.ch"
- + "annel.v1.CreateChannelPartnerLinkRequest"
- + "\032+.google.cloud.channel.v1.ChannelPartne"
- + "rLink\"I\202\323\344\223\002C\"+/v1/{parent=accounts/*}/c"
- + "hannelPartnerLinks:\024channel_partner_link"
- + "\022\271\001\n\030UpdateChannelPartnerLink\0228.google.c"
- + "loud.channel.v1.UpdateChannelPartnerLink"
- + "Request\032+.google.cloud.channel.v1.Channe"
- + "lPartnerLink\"6\202\323\344\223\00202+/v1/{name=accounts"
- + "/*/channelPartnerLinks/*}:\001*\022\327\001\n\032GetCust"
- + "omerRepricingConfig\022:.google.cloud.chann"
- + "el.v1.GetCustomerRepricingConfigRequest\032"
- + "0.google.cloud.channel.v1.CustomerRepric"
- + "ingConfig\"K\332A\004name\202\323\344\223\002>\022\022*<"
- + "/v1/{name=accounts/*/customers/*/custome"
- + "rRepricingConfigs/*}\022\371\001\n GetChannelPartn"
- + "erRepricingConfig\022@.google.cloud.channel"
- + ".v1.GetChannelPartnerRepricingConfigRequ"
- + "est\0326.google.cloud.channel.v1.ChannelPar"
- + "tnerRepricingConfig\"[\332A\004name\202\323\344\223\002N\022L/v1/"
- + "{name=accounts/*/channelPartnerLinks/*/c"
- + "hannelPartnerRepricingConfigs/*}\022\214\002\n\"Lis"
- + "tChannelPartnerRepricingConfigs\022B.google"
- + ".cloud.channel.v1.ListChannelPartnerRepr"
- + "icingConfigsRequest\032C.google.cloud.chann"
- + "el.v1.ListChannelPartnerRepricingConfigs"
- + "Response\"]\332A\006parent\202\323\344\223\002N\022L/v1/{parent=a"
- + "ccounts/*/channelPartnerLinks/*}/channel"
- + "PartnerRepricingConfigs\022\305\002\n#CreateChanne"
+ + "ListCustomers\022-.google.cloud.channel.v1.ListCustomersReque"
+ + "st\032..google.cloud.channel.v1.ListCustome"
+ + "rsResponse\"d\202\323\344\223\002^\022!/v1/{parent=accounts"
+ + "/*}/customersZ9\0227/v1/{parent=accounts/*/channelPartnerLinks/*}/customers\022\312\001\n"
+ + "\013GetCustomer\022+.google.cloud.channel.v1.GetCu"
+ + "stomerRequest\032!.google.cloud.channel.v1."
+ + "Customer\"k\332A\004name\202\323\344\223\002^\022!/v1/{name=accou"
+ + "nts/*/customers/*}Z9\0227/v1/{name=accounts"
+ + "/*/channelPartnerLinks/*/customers/*}\022\350\001\n"
+ + "\037CheckCloudIdentityAccountsExist\022?.google.cloud.channel.v1.CheckCloudIdentityAc"
+ + "countsExistRequest\032@.google.cloud.channel.v1.CheckCloudIdentityAccountsExistResp"
+ + "onse\"B\202\323\344\223\002<\"7/v1/{parent=accounts/*}:checkCloudIdentityAccountsExist:\001*\022\335\001\n"
+ + "\016CreateCustomer\022..google.cloud.channel.v1.Cr"
+ + "eateCustomerRequest\032!.google.cloud.chann"
+ + "el.v1.Customer\"x\202\323\344\223\002r\"!/v1/{parent=acco"
+ + "unts/*}/customers:\010customerZC\"7/v1/{pare"
+ + "nt=accounts/*/channelPartnerLinks/*}/customers:\010customer\022\361\001\n"
+ + "\016UpdateCustomer\022..google.cloud.channel.v1.UpdateCustomerRequ"
+ + "est\032!.google.cloud.channel.v1.Customer\"\213"
+ + "\001\202\323\344\223\002\204\0012*/v1/{customer.name=accounts/*/"
+ + "customers/*}:\010customerZL2@/v1/{customer."
+ + "name=accounts/*/channelPartnerLinks/*/customers/*}:\010customer\022\305\001\n"
+ + "\016DeleteCustomer\022..google.cloud.channel.v1.DeleteCustomer"
+ + "Request\032\026.google.protobuf.Empty\"k\332A\004name"
+ + "\202\323\344\223\002^*!/v1/{name=accounts/*/customers/*"
+ + "}Z9*7/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}\022\335\001\n"
+ + "\016ImportCustomer\022..google.cloud.channel.v1.ImportCustomer"
+ + "Request\032!.google.cloud.channel.v1.Custom"
+ + "er\"x\202\323\344\223\002r\"(/v1/{parent=accounts/*}/cust"
+ + "omers:import:\001*ZC\">/v1/{parent=accounts/"
+ + "*/channelPartnerLinks/*}/customers:import:\001*\022\330\001\n"
+ + "\026ProvisionCloudIdentity\0226.google.cloud.channel.v1.ProvisionCloudIdentity"
+ + "Request\032\035.google.longrunning.Operation\"g\312A\035\n"
+ + "\010Customer\022\021OperationMetadata\202\323\344\223\002A\"<"
+ + "/v1/{customer=accounts/*/customers/*}:provisionCloudIdentity:\001*\022\261\001\n"
+ + "\020ListEntitlements\0220.google.cloud.channel.v1.ListEntit"
+ + "lementsRequest\0321.google.cloud.channel.v1"
+ + ".ListEntitlementsResponse\"8\202\323\344\223\0022\0220/v1/{"
+ + "parent=accounts/*/customers/*}/entitlements\022\274\001\n"
+ + "\024ListTransferableSkus\0224.google.cloud.channel.v1.ListTransferableSkusReque"
+ + "st\0325.google.cloud.channel.v1.ListTransfe"
+ + "rableSkusResponse\"7\202\323\344\223\0021\",/v1/{parent=accounts/*}:listTransferableSkus:\001*\022\304\001\n"
+ + "\026ListTransferableOffers\0226.google.cloud.cha"
+ + "nnel.v1.ListTransferableOffersRequest\0327.google.cloud.channel.v1.ListTransferable"
+ + "OffersResponse\"9\202\323\344\223\0023\"./v1/{parent=accounts/*}:listTransferableOffers:\001*\022\240\001\n"
+ + "\016GetEntitlement\022..google.cloud.channel.v1.G"
+ + "etEntitlementRequest\032$.google.cloud.chan"
+ + "nel.v1.Entitlement\"8\202\323\344\223\0022\0220/v1/{name=accounts/*/customers/*/entitlements/*}\022\305\001\n"
+ + "\021CreateEntitlement\0221.google.cloud.channe"
+ + "l.v1.CreateEntitlementRequest\032\035.google.longrunning.Operation\"^\312A \n"
+ + "\013Entitlement\022\021"
+ + "OperationMetadata\202\323\344\223\0025\"0/v1/{parent=accounts/*/customers/*}/entitlements:\001*\022\324\001\n"
+ + "\020ChangeParameters\0220.google.cloud.channel"
+ + ".v1.ChangeParametersRequest\032\035.google.longrunning.Operation\"o\312A \n"
+ + "\013Entitlement\022\021OperationMetadata\202\323\344\223\002F\"A/v1/{name=account"
+ + "s/*/customers/*/entitlements/*}:changeParameters:\001*\022\343\001\n"
+ + "\025ChangeRenewalSettings\0225.google.cloud.channel.v1.ChangeRenewalSet"
+ + "tingsRequest\032\035.google.longrunning.Operation\"t\312A \n"
+ + "\013Entitlement\022\021OperationMetadata"
+ + "\202\323\344\223\002K\"F/v1/{name=accounts/*/customers/*"
+ + "/entitlements/*}:changeRenewalSettings:\001*\022\305\001\n"
+ + "\013ChangeOffer\022+.google.cloud.channel"
+ + ".v1.ChangeOfferRequest\032\035.google.longrunning.Operation\"j\312A \n"
+ + "\013Entitlement\022\021OperationMetadata\202\323\344\223\002A\"\"9/v1/"
+ + "{name=accounts/*/customers/*/entitlement"
+ + "s/*}:activate:\001*\022\344\001\n\024TransferEntitlement"
+ + "s\0224.google.cloud.channel.v1.TransferEnti"
+ + "tlementsRequest\032\035.google.longrunning.Ope"
+ + "ration\"w\312A1\n\034TransferEntitlementsRespons"
+ + "e\022\021OperationMetadata\202\323\344\223\002=\"8/v1/{parent="
+ + "accounts/*/customers/*}:transferEntitlem"
+ + "ents:\001*\022\365\001\n\034TransferEntitlementsToGoogle"
+ + "\022<.google.cloud.channel.v1.TransferEntit"
+ + "lementsToGoogleRequest\032\035.google.longrunn"
+ + "ing.Operation\"x\312A*\n\025google.protobuf.Empt"
+ + "y\022\021OperationMetadata\202\323\344\223\002E\"@/v1/{parent="
+ + "accounts/*/customers/*}:transferEntitlem"
+ + "entsToGoogle:\001*\022\301\001\n\027ListChannelPartnerLi"
+ + "nks\0227.google.cloud.channel.v1.ListChanne"
+ + "lPartnerLinksRequest\0328.google.cloud.chan"
+ + "nel.v1.ListChannelPartnerLinksResponse\"3"
+ + "\202\323\344\223\002-\022+/v1/{parent=accounts/*}/channelP"
+ + "artnerLinks\022\260\001\n\025GetChannelPartnerLink\0225."
+ + "google.cloud.channel.v1.GetChannelPartne"
+ + "rLinkRequest\032+.google.cloud.channel.v1.C"
+ + "hannelPartnerLink\"3\202\323\344\223\002-\022+/v1/{name=acc"
+ + "ounts/*/channelPartnerLinks/*}\022\314\001\n\030Creat"
+ + "eChannelPartnerLink\0228.google.cloud.chann"
+ + "el.v1.CreateChannelPartnerLinkRequest\032+."
+ + "google.cloud.channel.v1.ChannelPartnerLi"
+ + "nk\"I\202\323\344\223\002C\"+/v1/{parent=accounts/*}/chan"
+ + "nelPartnerLinks:\024channel_partner_link\022\271\001"
+ + "\n\030UpdateChannelPartnerLink\0228.google.clou"
+ + "d.channel.v1.UpdateChannelPartnerLinkReq"
+ + "uest\032+.google.cloud.channel.v1.ChannelPa"
+ + "rtnerLink\"6\202\323\344\223\00202+/v1/{name=accounts/*/"
+ + "channelPartnerLinks/*}:\001*\022\327\001\n\032GetCustome"
+ + "rRepricingConfig\022:.google.cloud.channel."
+ + "v1.GetCustomerRepricingConfigRequest\0320.g"
+ + "oogle.cloud.channel.v1.CustomerRepricing"
+ + "Config\"K\332A\004name\202\323\344\223\002>\022\022* buil
super(builder);
}
- private TransferableOffer() {}
+ private TransferableOffer() {
+ priceReferenceId_ = "";
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -113,6 +115,63 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder() {
return offer_ == null ? com.google.cloud.channel.v1.Offer.getDefaultInstance() : offer_;
}
+ public static final int PRICE_REFERENCE_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object priceReferenceId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ @java.lang.Override
+ public java.lang.String getPriceReferenceId() {
+ java.lang.Object ref = priceReferenceId_;
+ 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();
+ priceReferenceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPriceReferenceIdBytes() {
+ java.lang.Object ref = priceReferenceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ priceReferenceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -130,6 +189,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getOffer());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, priceReferenceId_);
+ }
getUnknownFields().writeTo(output);
}
@@ -142,6 +204,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOffer());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, priceReferenceId_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -162,6 +227,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasOffer()) {
if (!getOffer().equals(other.getOffer())) return false;
}
+ if (!getPriceReferenceId().equals(other.getPriceReferenceId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -177,6 +243,8 @@ public int hashCode() {
hash = (37 * hash) + OFFER_FIELD_NUMBER;
hash = (53 * hash) + getOffer().hashCode();
}
+ hash = (37 * hash) + PRICE_REFERENCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getPriceReferenceId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -332,6 +400,7 @@ public Builder clear() {
offerBuilder_.dispose();
offerBuilder_ = null;
}
+ priceReferenceId_ = "";
return this;
}
@@ -373,6 +442,9 @@ private void buildPartial0(com.google.cloud.channel.v1.TransferableOffer result)
result.offer_ = offerBuilder_ == null ? offer_ : offerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.priceReferenceId_ = priceReferenceId_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -424,6 +496,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.TransferableOffer other) {
if (other.hasOffer()) {
mergeOffer(other.getOffer());
}
+ if (!other.getPriceReferenceId().isEmpty()) {
+ priceReferenceId_ = other.priceReferenceId_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -456,6 +533,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 18:
+ {
+ priceReferenceId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -665,6 +748,127 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder() {
return offerBuilder_;
}
+ private java.lang.Object priceReferenceId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ public java.lang.String getPriceReferenceId() {
+ java.lang.Object ref = priceReferenceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ priceReferenceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ public com.google.protobuf.ByteString getPriceReferenceIdBytes() {
+ java.lang.Object ref = priceReferenceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ priceReferenceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The priceReferenceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriceReferenceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ priceReferenceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPriceReferenceId() {
+ priceReferenceId_ = getDefaultInstance().getPriceReferenceId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for priceReferenceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ priceReferenceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferableOfferOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferableOfferOrBuilder.java
index 0d6ecd3e6343..0043413fa3f2 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferableOfferOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferableOfferOrBuilder.java
@@ -60,4 +60,34 @@ public interface TransferableOfferOrBuilder
* .google.cloud.channel.v1.Offer offer = 1;
*/
com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The priceReferenceId.
+ */
+ java.lang.String getPriceReferenceId();
+
+ /**
+ *
+ *
+ *
+ * Optional. Price reference ID for the offer. Only for offers that require
+ * additional price information. Used to guarantee that the pricing is
+ * consistent between quoting the offer and placing the order.
+ *
+ *
+ * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for priceReferenceId.
+ */
+ com.google.protobuf.ByteString getPriceReferenceIdBytes();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequest.java
index 8f583e25d4d9..3a627d8c0675 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequest.java
@@ -42,6 +42,7 @@ private UnregisterSubscriberRequest(com.google.protobuf.GeneratedMessageV3.Build
private UnregisterSubscriberRequest() {
account_ = "";
serviceAccount_ = "";
+ integrator_ = "";
}
@java.lang.Override
@@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.channel.v1.UnregisterSubscriberRequest.Builder.class);
}
+ private int bitField0_;
public static final int ACCOUNT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -74,10 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -98,10 +103,13 @@ public java.lang.String getAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -173,6 +181,78 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
}
}
+ public static final int INTEGRATOR_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object integrator_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ @java.lang.Override
+ public boolean hasIntegrator() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ @java.lang.Override
+ public java.lang.String getIntegrator() {
+ java.lang.Object ref = integrator_;
+ 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();
+ integrator_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIntegratorBytes() {
+ java.lang.Object ref = integrator_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ integrator_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -193,6 +273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, integrator_);
+ }
getUnknownFields().writeTo(output);
}
@@ -208,6 +291,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, integrator_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -226,6 +312,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getAccount().equals(other.getAccount())) return false;
if (!getServiceAccount().equals(other.getServiceAccount())) return false;
+ if (hasIntegrator() != other.hasIntegrator()) return false;
+ if (hasIntegrator()) {
+ if (!getIntegrator().equals(other.getIntegrator())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -241,6 +331,10 @@ public int hashCode() {
hash = (53 * hash) + getAccount().hashCode();
hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccount().hashCode();
+ if (hasIntegrator()) {
+ hash = (37 * hash) + INTEGRATOR_FIELD_NUMBER;
+ hash = (53 * hash) + getIntegrator().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -384,6 +478,7 @@ public Builder clear() {
bitField0_ = 0;
account_ = "";
serviceAccount_ = "";
+ integrator_ = "";
return this;
}
@@ -426,6 +521,12 @@ private void buildPartial0(com.google.cloud.channel.v1.UnregisterSubscriberReque
if (((from_bitField0_ & 0x00000002) != 0)) {
result.serviceAccount_ = serviceAccount_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.integrator_ = integrator_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -484,6 +585,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.UnregisterSubscriberRequest
bitField0_ |= 0x00000002;
onChanged();
}
+ if (other.hasIntegrator()) {
+ integrator_ = other.integrator_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -522,6 +628,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ integrator_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -547,10 +659,13 @@ public Builder mergeFrom(
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -570,10 +685,13 @@ public java.lang.String getAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -593,10 +711,13 @@ public com.google.protobuf.ByteString getAccountBytes() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @param value The account to set.
* @return This builder for chaining.
@@ -615,10 +736,13 @@ public Builder setAccount(java.lang.String value) {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return This builder for chaining.
*/
@@ -633,10 +757,13 @@ public Builder clearAccount() {
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @param value The bytes for account to set.
* @return This builder for chaining.
@@ -768,6 +895,138 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object integrator_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ public boolean hasIntegrator() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ public java.lang.String getIntegrator() {
+ java.lang.Object ref = integrator_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ integrator_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ public com.google.protobuf.ByteString getIntegratorBytes() {
+ java.lang.Object ref = integrator_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ integrator_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The integrator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntegrator(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ integrator_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIntegrator() {
+ integrator_ = getDefaultInstance().getIntegrator();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for integrator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntegratorBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ integrator_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequestOrBuilder.java
index e52ac0c195f9..fe556a4cb72c 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequestOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequestOrBuilder.java
@@ -28,10 +28,13 @@ public interface UnregisterSubscriberRequestOrBuilder
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The account.
*/
@@ -41,10 +44,13 @@ public interface UnregisterSubscriberRequestOrBuilder
*
*
*
- * Required. Resource name of the account.
+ * Optional. Resource name of the account. Required if integrator is not
+ * provided. Otherwise, leave this field empty/unset.
*
*
- * string account = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
*
* @return The bytes for account.
*/
@@ -77,4 +83,46 @@ public interface UnregisterSubscriberRequestOrBuilder
* @return The bytes for serviceAccount.
*/
com.google.protobuf.ByteString getServiceAccountBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the integrator field is set.
+ */
+ boolean hasIntegrator();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The integrator.
+ */
+ java.lang.String getIntegrator();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the integrator. Required if account is not
+ * provided. Otherwise, leave this field empty/unset.
+ *
+ *
+ * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for integrator.
+ */
+ com.google.protobuf.ByteString getIntegratorBytes();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto
index 9c31f4195aaa..cc4088d8fa19 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto
@@ -34,7 +34,7 @@ message Customer {
pattern: "accounts/{account}/customers/{customer}"
};
- // The enum represents whether a customer belongs to public sector
+ // The enum represents if a customer belongs to public sector
enum CustomerAttestationState {
// Default value if not set yet
CUSTOMER_ATTESTATION_STATE_UNSPECIFIED = 0;
@@ -107,7 +107,7 @@ message Customer {
// Populated only if a CRM ID exists for this customer.
string correlation_id = 14 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Indicate whether a customer is attesting about the correctness of
+ // Optional. Indicate if a customer is attesting about the correctness of
// provided information. Only required if creating a GCP Entitlement.
CustomerAttestationState customer_attestation_state = 16
[(google.api.field_behavior) = OPTIONAL];
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto
index 114e28e1c151..f2501bc2092d 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto
@@ -147,6 +147,11 @@ message Entitlement {
// Optional. The billing account resource name that is used to pay for this
// entitlement.
string billing_account = 28 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Price reference ID for the offer. Only for offers that require
+ // additional price information. Used to guarantee that the pricing is
+ // consistent between quoting the offer and placing the order.
+ string price_reference_id = 29 [(google.api.field_behavior) = OPTIONAL];
}
// Definition for extended entitlement parameters.
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto
index f5301eb649a5..9a5d63afac28 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto
@@ -123,6 +123,27 @@ enum PeriodType {
YEAR = 3;
}
+// Discount Type.
+enum DiscountType {
+ // Not used.
+ DISCOUNT_TYPE_UNSPECIFIED = 0;
+
+ // Regional discount.
+ REGIONAL_DISCOUNT = 1;
+
+ // Promotional discount.
+ PROMOTIONAL_DISCOUNT = 2;
+
+ // Sales-provided discount.
+ SALES_DISCOUNT = 3;
+
+ // Reseller margin.
+ RESELLER_MARGIN = 4;
+
+ // Deal code discount.
+ DEAL_CODE = 5;
+}
+
// Represents an offer made to resellers for purchase.
// An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan
// for payment, a price, and defines the constraints for buying.
@@ -279,8 +300,17 @@ message Price {
// Effective Price after applying the discounts.
google.type.Money effective_price = 3;
+ // The time period with respect to which base and effective prices are
+ // defined.
+ // Example: 1 month, 6 months, 1 year, etc.
+ Period price_period = 6;
+
// Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;
+
+ // Breakdown of the discount into its components.
+ // This will be empty if there is no discount present.
+ repeated DiscountComponent discount_components = 5;
}
// Specifies the price by the duration of months.
@@ -330,3 +360,20 @@ message Period {
// Period Type.
PeriodType period_type = 2;
}
+
+// Represents a single component of the total discount applicable on a Price.
+message DiscountComponent {
+ // Specifies the contribution of this discount component to the total
+ // discount.
+ oneof discount_value {
+ // Discount percentage, represented as decimal.
+ // For example, a 20% discount will be represented as 0.2.
+ double discount_percentage = 3;
+
+ // Fixed value discount.
+ google.type.Money discount_absolute = 4;
+ }
+
+ // Type of the discount.
+ DiscountType discount_type = 2;
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto
index 2c85cf24377a..a3583f8715b6 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto
@@ -115,7 +115,7 @@ message RepricingConfig {
// Required. Defines the granularity for repricing.
oneof granularity {
- // Applies the repricing configuration at the entitlement level.
+ // Required. Applies the repricing configuration at the entitlement level.
//
// Note: If a
// [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
@@ -129,7 +129,8 @@ message RepricingConfig {
// [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
// and
// [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
- EntitlementGranularity entitlement_granularity = 4;
+ EntitlementGranularity entitlement_granularity = 4
+ [(google.api.field_behavior) = REQUIRED];
// Applies the repricing configuration at the channel partner level.
// Only
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto
index 4f1e07a62665..018eba33e23f 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto
@@ -38,6 +38,10 @@ option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb";
option java_multiple_files = true;
option java_outer_classname = "ServiceProto";
option java_package = "com.google.cloud.channel.v1";
+option (google.api.resource_definition) = {
+ type: "cloudchannel.googleapis.com/Account"
+ pattern: "accounts/{account}"
+};
// CloudChannelService lets Google cloud resellers and distributors manage
// their customers, channel partners, entitlements, and reports.
@@ -1361,8 +1365,8 @@ service CloudChannelService {
};
}
- // Registers a service account with subscriber privileges on the Cloud Pub/Sub
- // topic for this Channel Services account. After you create a
+ // Registers a service account with subscriber privileges on the Pub/Sub
+ // topic for this Channel Services account or integrator. After you create a
// subscriber, you get the events through
// [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
//
@@ -1384,13 +1388,17 @@ service CloudChannelService {
option (google.api.http) = {
post: "/v1/{account=accounts/*}:register"
body: "*"
+ additional_bindings {
+ post: "/v1/{integrator=integrators/*}:registerSubscriber"
+ body: "*"
+ }
};
}
- // Unregisters a service account with subscriber privileges on the Cloud
- // Pub/Sub topic created for this Channel Services account. If there are no
- // service accounts left with subscriber privileges, this deletes the topic.
- // You can call ListSubscribers to check for these accounts.
+ // Unregisters a service account with subscriber privileges on the Pub/Sub
+ // topic created for this Channel Services account or integrator. If there are
+ // no service accounts left with subscriber privileges, this deletes the
+ // topic. You can call ListSubscribers to check for these accounts.
//
// Possible error codes:
//
@@ -1413,11 +1421,15 @@ service CloudChannelService {
option (google.api.http) = {
post: "/v1/{account=accounts/*}:unregister"
body: "*"
+ additional_bindings {
+ post: "/v1/{integrator=integrators/*}:unregisterSubscriber"
+ body: "*"
+ }
};
}
- // Lists service accounts with subscriber privileges on the Cloud Pub/Sub
- // topic created for this Channel Services account.
+ // Lists service accounts with subscriber privileges on the Pub/Sub topic
+ // created for this Channel Services account or integrator.
//
// Possible error codes:
//
@@ -1437,6 +1449,9 @@ service CloudChannelService {
returns (ListSubscribersResponse) {
option (google.api.http) = {
get: "/v1/{account=accounts/*}:listSubscribers"
+ additional_bindings {
+ get: "/v1/{integrator=integrators/*}:listSubscribers"
+ }
};
}
@@ -1489,7 +1504,8 @@ message CloudIdentityCustomerAccount {
bool existing = 1;
// Returns true if the Cloud Identity account is associated with a customer
- // of the Channel Services partner.
+ // of the Channel Services partner (with active subscriptions or purchase
+ // consents).
bool owned = 2;
// If owned = true, the name of the customer that owns the Cloud Identity
@@ -1843,6 +1859,11 @@ message ListTransferableOffersResponse {
message TransferableOffer {
// Offer with parameter constraints updated to allow the Transfer.
Offer offer = 1;
+
+ // Optional. Price reference ID for the offer. Only for offers that require
+ // additional price information. Used to guarantee that the pricing is
+ // consistent between quoting the offer and placing the order.
+ string price_reference_id = 2 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
@@ -2167,7 +2188,8 @@ message ListSkuGroupsRequest {
// Optional. A token identifying a page of results beyond the first page.
// Obtained through
- // [ListSkuGroups.next_page_token][] of the previous
+ // [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
+ // of the previous
// [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
// call.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
@@ -2191,7 +2213,8 @@ message ListSkuGroupBillableSkusRequest {
// Optional. A token identifying a page of results beyond the first page.
// Obtained through
- // [ListSkuGroupBillableSkus.next_page_token][] of the previous
+ // [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
+ // of the previous
// [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
// call.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
@@ -2203,8 +2226,9 @@ message ListSkuGroupsResponse {
repeated SkuGroup sku_groups = 1;
// A token to retrieve the next page of results.
- // Pass to [ListSkuGroups.page_token][] to obtain that
- // page.
+ // Pass to
+ // [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
+ // to obtain that page.
string next_page_token = 2;
}
@@ -2214,8 +2238,9 @@ message ListSkuGroupBillableSkusResponse {
repeated BillableSku billable_skus = 1;
// A token to retrieve the next page of results.
- // Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
- // page.
+ // Pass to
+ // [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
+ // to obtain that page.
string next_page_token = 2;
}
@@ -2356,7 +2381,8 @@ message TransferEntitlementsToGoogleRequest {
string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
-// Request message for [CloudChannelService.ChangeParametersRequest][].
+// Request message for
+// [CloudChannelService.ChangeParameters][google.cloud.channel.v1.CloudChannelService.ChangeParameters].
message ChangeParametersRequest {
// Required. The name of the entitlement to update.
// Name uses the format:
@@ -2461,6 +2487,11 @@ message ChangeOfferRequest {
// This field is only relevant for multi-currency accounts. It should be
// left empty for single currency accounts.
string billing_account = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Price reference ID for the offer. Only for offers that require
+ // additional price information. Used to guarantee that the pricing is
+ // consistent between quoting the offer and placing the order.
+ string price_reference_id = 8 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
@@ -2673,6 +2704,9 @@ message ListOffersRequest {
// Response message for ListOffers.
message ListOffersResponse {
// The list of Offers requested.
+ //
+ // The pricing information for each Offer only includes the base price.
+ // Effective prices and discounts aren't populated.
repeated Offer offers = 1;
// A token to retrieve the next page of results.
@@ -2843,6 +2877,11 @@ message ListPurchasableOffersResponse {
message PurchasableOffer {
// Offer.
Offer offer = 1;
+
+ // Optional. Price reference ID for the offer. Only for offers that require
+ // additional price information. Used to guarantee that the pricing is
+ // consistent between quoting the offer and placing the order.
+ string price_reference_id = 2 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for QueryEligibleBillingAccounts.
@@ -2889,12 +2928,22 @@ message BillingAccountPurchaseInfo {
// Request Message for RegisterSubscriber.
message RegisterSubscriberRequest {
- // Required. Resource name of the account.
- string account = 1 [(google.api.field_behavior) = REQUIRED];
+ // Optional. Resource name of the account. Required if integrator is not
+ // provided. Otherwise, leave this field empty/unset.
+ string account = 1 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudchannel.googleapis.com/Account"
+ }
+ ];
// Required. Service account that provides subscriber access to the registered
// topic.
string service_account = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Resource name of the integrator. Required if account is not
+ // provided. Otherwise, leave this field empty/unset.
+ optional string integrator = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Response Message for RegisterSubscriber.
@@ -2905,12 +2954,22 @@ message RegisterSubscriberResponse {
// Request Message for UnregisterSubscriber.
message UnregisterSubscriberRequest {
- // Required. Resource name of the account.
- string account = 1 [(google.api.field_behavior) = REQUIRED];
+ // Optional. Resource name of the account. Required if integrator is not
+ // provided. Otherwise, leave this field empty/unset.
+ string account = 1 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudchannel.googleapis.com/Account"
+ }
+ ];
// Required. Service account to unregister from subscriber access to the
// topic.
string service_account = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Resource name of the integrator. Required if account is not
+ // provided. Otherwise, leave this field empty/unset.
+ optional string integrator = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Response Message for UnregisterSubscriber.
@@ -2921,8 +2980,14 @@ message UnregisterSubscriberResponse {
// Request Message for ListSubscribers.
message ListSubscribersRequest {
- // Required. Resource name of the account.
- string account = 1 [(google.api.field_behavior) = REQUIRED];
+ // Optional. Resource name of the account. Required if integrator is not
+ // provided. Otherwise, leave this field empty/unset.
+ string account = 1 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudchannel.googleapis.com/Account"
+ }
+ ];
// Optional. The maximum number of service accounts to return. The service may
// return fewer than this value. If unspecified, returns at most 100 service
@@ -2936,6 +3001,10 @@ message ListSubscribersRequest {
// When paginating, all other parameters provided to `ListSubscribers` must
// match the call that provided the page token.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Resource name of the integrator. Required if account is not
+ // provided. Otherwise, leave this field empty/unset.
+ optional string integrator = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Response Message for ListSubscribers.
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto
index fffd85d9049c..697d3b4fdac7 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto
@@ -43,7 +43,7 @@ message CustomerEvent {
type: "cloudchannel.googleapis.com/Customer"
}];
- // Type of event which happened on the customer.
+ // Type of event which happened for the customer.
Type event_type = 2;
}
@@ -100,7 +100,7 @@ message EntitlementEvent {
type: "cloudchannel.googleapis.com/Entitlement"
}];
- // Type of event which happened on the entitlement.
+ // Type of event which happened for the entitlement.
Type event_type = 2;
}
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java
index c56357fab88c..9de16c74d963 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java
@@ -46,6 +46,7 @@ public static void asyncChangeOffer() throws Exception {
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
ApiFuture future =
cloudChannelServiceClient.changeOfferCallable().futureCall(request);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java
index 00cddc515d67..d3f989f87c0a 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java
@@ -47,6 +47,7 @@ public static void asyncChangeOfferLRO() throws Exception {
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
OperationFuture future =
cloudChannelServiceClient.changeOfferOperationCallable().futureCall(request);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java
index f95836127e9c..df141466cea5 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java
@@ -45,6 +45,7 @@ public static void syncChangeOffer() throws Exception {
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
.setBillingAccount("billingAccount708726578")
+ .setPriceReferenceId("priceReferenceId-5103427")
.build();
Entitlement response = cloudChannelServiceClient.changeOfferAsync(request).get();
}
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribers.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribers.java
index e2d90d148cbd..7b720465e002 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribers.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribers.java
@@ -18,6 +18,7 @@
// [START cloudchannel_v1_generated_CloudChannelService_ListSubscribers_async]
import com.google.api.core.ApiFuture;
+import com.google.cloud.channel.v1.AccountName;
import com.google.cloud.channel.v1.CloudChannelServiceClient;
import com.google.cloud.channel.v1.ListSubscribersRequest;
@@ -36,9 +37,10 @@ public static void asyncListSubscribers() throws Exception {
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
ListSubscribersRequest request =
ListSubscribersRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
+ .setIntegrator("integrator-1902360937")
.build();
ApiFuture future =
cloudChannelServiceClient.listSubscribersPagedCallable().futureCall(request);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribersPaged.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribersPaged.java
index 39abafde67d5..618c5066c02d 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribersPaged.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribersPaged.java
@@ -17,6 +17,7 @@
package com.google.cloud.channel.v1.samples;
// [START cloudchannel_v1_generated_CloudChannelService_ListSubscribers_Paged_async]
+import com.google.cloud.channel.v1.AccountName;
import com.google.cloud.channel.v1.CloudChannelServiceClient;
import com.google.cloud.channel.v1.ListSubscribersRequest;
import com.google.cloud.channel.v1.ListSubscribersResponse;
@@ -37,9 +38,10 @@ public static void asyncListSubscribersPaged() throws Exception {
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
ListSubscribersRequest request =
ListSubscribersRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
+ .setIntegrator("integrator-1902360937")
.build();
while (true) {
ListSubscribersResponse response =
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/SyncListSubscribers.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/SyncListSubscribers.java
index 74db26be5780..f473cd33496a 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/SyncListSubscribers.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/SyncListSubscribers.java
@@ -17,6 +17,7 @@
package com.google.cloud.channel.v1.samples;
// [START cloudchannel_v1_generated_CloudChannelService_ListSubscribers_sync]
+import com.google.cloud.channel.v1.AccountName;
import com.google.cloud.channel.v1.CloudChannelServiceClient;
import com.google.cloud.channel.v1.ListSubscribersRequest;
@@ -35,9 +36,10 @@ public static void syncListSubscribers() throws Exception {
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
ListSubscribersRequest request =
ListSubscribersRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
+ .setIntegrator("integrator-1902360937")
.build();
for (String element : cloudChannelServiceClient.listSubscribers(request).iterateAll()) {
// doThingsWith(element);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/AsyncRegisterSubscriber.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/AsyncRegisterSubscriber.java
index 11287539c08d..3645b8b693f9 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/AsyncRegisterSubscriber.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/AsyncRegisterSubscriber.java
@@ -18,6 +18,7 @@
// [START cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_async]
import com.google.api.core.ApiFuture;
+import com.google.cloud.channel.v1.AccountName;
import com.google.cloud.channel.v1.CloudChannelServiceClient;
import com.google.cloud.channel.v1.RegisterSubscriberRequest;
import com.google.cloud.channel.v1.RegisterSubscriberResponse;
@@ -37,8 +38,9 @@ public static void asyncRegisterSubscriber() throws Exception {
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
RegisterSubscriberRequest request =
RegisterSubscriberRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
ApiFuture future =
cloudChannelServiceClient.registerSubscriberCallable().futureCall(request);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/SyncRegisterSubscriber.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/SyncRegisterSubscriber.java
index 5655c5451d11..37c58f31cd4a 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/SyncRegisterSubscriber.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/SyncRegisterSubscriber.java
@@ -17,6 +17,7 @@
package com.google.cloud.channel.v1.samples;
// [START cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_sync]
+import com.google.cloud.channel.v1.AccountName;
import com.google.cloud.channel.v1.CloudChannelServiceClient;
import com.google.cloud.channel.v1.RegisterSubscriberRequest;
import com.google.cloud.channel.v1.RegisterSubscriberResponse;
@@ -36,8 +37,9 @@ public static void syncRegisterSubscriber() throws Exception {
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
RegisterSubscriberRequest request =
RegisterSubscriberRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
RegisterSubscriberResponse response = cloudChannelServiceClient.registerSubscriber(request);
}
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/AsyncUnregisterSubscriber.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/AsyncUnregisterSubscriber.java
index 22e96400823f..721c5aa6aff8 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/AsyncUnregisterSubscriber.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/AsyncUnregisterSubscriber.java
@@ -18,6 +18,7 @@
// [START cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_async]
import com.google.api.core.ApiFuture;
+import com.google.cloud.channel.v1.AccountName;
import com.google.cloud.channel.v1.CloudChannelServiceClient;
import com.google.cloud.channel.v1.UnregisterSubscriberRequest;
import com.google.cloud.channel.v1.UnregisterSubscriberResponse;
@@ -37,8 +38,9 @@ public static void asyncUnregisterSubscriber() throws Exception {
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
UnregisterSubscriberRequest request =
UnregisterSubscriberRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
ApiFuture future =
cloudChannelServiceClient.unregisterSubscriberCallable().futureCall(request);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/SyncUnregisterSubscriber.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/SyncUnregisterSubscriber.java
index 8d9929dcb7f4..680d92db6ce8 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/SyncUnregisterSubscriber.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/SyncUnregisterSubscriber.java
@@ -17,6 +17,7 @@
package com.google.cloud.channel.v1.samples;
// [START cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_sync]
+import com.google.cloud.channel.v1.AccountName;
import com.google.cloud.channel.v1.CloudChannelServiceClient;
import com.google.cloud.channel.v1.UnregisterSubscriberRequest;
import com.google.cloud.channel.v1.UnregisterSubscriberResponse;
@@ -36,8 +37,9 @@ public static void syncUnregisterSubscriber() throws Exception {
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
UnregisterSubscriberRequest request =
UnregisterSubscriberRequest.newBuilder()
- .setAccount("account-1177318867")
+ .setAccount(AccountName.of("[ACCOUNT]").toString())
.setServiceAccount("serviceAccount1079137720")
+ .setIntegrator("integrator-1902360937")
.build();
UnregisterSubscriberResponse response =
cloudChannelServiceClient.unregisterSubscriber(request);
diff --git a/java-chat/README.md b/java-chat/README.md
index 7952938d5c84..f284079ae2d4 100644
--- a/java-chat/README.md
+++ b/java-chat/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-chat
- 0.42.0
+ 0.44.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-chat:0.42.0'
+implementation 'com.google.cloud:google-cloud-chat:0.44.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.42.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.44.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.42.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.44.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-chronicle/README.md b/java-chronicle/README.md
index 4f64e6dccd73..ee6e14c8be69 100644
--- a/java-chronicle/README.md
+++ b/java-chronicle/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-chronicle
- 0.16.0
+ 0.18.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-chronicle:0.16.0'
+implementation 'com.google.cloud:google-cloud-chronicle:0.18.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.16.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.18.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chronicle.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.16.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.18.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md
index b71aa72e9fbb..d2e1497d3cdf 100644
--- a/java-cloudbuild/README.md
+++ b/java-cloudbuild/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.71.0
+ 26.72.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-build
- 3.80.0
+ 3.82.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-build:3.80.0'
+implementation 'com.google.cloud:google-cloud-build:3.82.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.80.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.82.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.80.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.82.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java
index 360c89c9342b..202adece4769 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java
+++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java
@@ -33,18 +33,23 @@
import com.google.cloudbuild.v1.ApprovalResult;
import com.google.cloudbuild.v1.ApproveBuildRequest;
import com.google.cloudbuild.v1.Build;
+import com.google.cloudbuild.v1.BuildName;
import com.google.cloudbuild.v1.BuildOperationMetadata;
import com.google.cloudbuild.v1.BuildTrigger;
+import com.google.cloudbuild.v1.BuildTriggerName;
import com.google.cloudbuild.v1.CancelBuildRequest;
import com.google.cloudbuild.v1.CreateBuildRequest;
import com.google.cloudbuild.v1.CreateBuildTriggerRequest;
import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.CreateWorkerPoolRequest;
+import com.google.cloudbuild.v1.DefaultServiceAccount;
+import com.google.cloudbuild.v1.DefaultServiceAccountName;
import com.google.cloudbuild.v1.DeleteBuildTriggerRequest;
import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.DeleteWorkerPoolRequest;
import com.google.cloudbuild.v1.GetBuildRequest;
import com.google.cloudbuild.v1.GetBuildTriggerRequest;
+import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest;
import com.google.cloudbuild.v1.GetWorkerPoolRequest;
import com.google.cloudbuild.v1.ListBuildTriggersRequest;
import com.google.cloudbuild.v1.ListBuildTriggersResponse;
@@ -53,6 +58,7 @@
import com.google.cloudbuild.v1.ListWorkerPoolsRequest;
import com.google.cloudbuild.v1.ListWorkerPoolsResponse;
import com.google.cloudbuild.v1.LocationName;
+import com.google.cloudbuild.v1.ProjectName;
import com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest;
import com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse;
import com.google.cloudbuild.v1.RepoSource;
@@ -92,9 +98,8 @@
* // - 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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
- * String projectId = "projectId-894832108";
- * String id = "id3355";
- * Build response = cloudBuildClient.getBuild(projectId, id);
+ * BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+ * Build response = cloudBuildClient.getBuild(name);
* }
* }
*
@@ -119,6 +124,9 @@
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
+ * createBuildAsync(LocationName parent)
+ *
createBuildAsync(ProjectName parent)
+ *
createBuildAsync(String parent)
*
createBuildAsync(String projectId, Build build)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
@@ -139,6 +147,8 @@
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
+ * getBuild(BuildName name)
+ *
getBuild(String name)
*
getBuild(String projectId, String id)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
@@ -177,6 +187,8 @@
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
+ * cancelBuild(BuildName name)
+ *
cancelBuild(String name)
*
cancelBuild(String projectId, String id)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
@@ -210,6 +222,8 @@
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
+ * retryBuildAsync(BuildName name)
+ *
retryBuildAsync(String name)
*
retryBuildAsync(String projectId, String id)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
@@ -222,7 +236,7 @@
*
* ApproveBuild
* Approves or rejects a pending build.
- *
If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call.
+ *
If approved, the returned long-running operation (LRO) will be analogous to the LRO returned from a CreateBuild call.
*
If rejected, the returned LRO will be immediately done.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -242,8 +256,7 @@
*
*
* CreateBuildTrigger
- * Creates a new `BuildTrigger`.
- *
This API is experimental.
+ * Creates a new `BuildTrigger`.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
@@ -251,6 +264,9 @@
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
+ * createBuildTrigger(LocationName parent)
+ *
createBuildTrigger(ProjectName parent)
+ *
createBuildTrigger(String parent)
*
createBuildTrigger(String projectId, BuildTrigger trigger)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
@@ -261,8 +277,7 @@
*
*
* GetBuildTrigger
- * Returns information about a `BuildTrigger`.
- *
This API is experimental.
+ * Returns information about a `BuildTrigger`.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
@@ -270,6 +285,8 @@
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
+ * getBuildTrigger(BuildTriggerName name)
+ *
getBuildTrigger(String name)
*
getBuildTrigger(String projectId, String triggerId)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
@@ -280,8 +297,7 @@
*
*
* ListBuildTriggers
- * Lists existing `BuildTrigger`s.
- *
This API is experimental.
+ * Lists existing `BuildTrigger`s.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
@@ -300,8 +316,7 @@
*
*
* DeleteBuildTrigger
- * Deletes a `BuildTrigger` by its project ID and trigger ID.
- *
This API is experimental.
+ * Deletes a `BuildTrigger` by its project ID and trigger ID.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
@@ -309,6 +324,8 @@
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
+ * deleteBuildTrigger(BuildTriggerName name)
+ *
deleteBuildTrigger(String name)
*
deleteBuildTrigger(String projectId, String triggerId)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
@@ -319,8 +336,7 @@
*
*
* UpdateBuildTrigger
- * Updates a `BuildTrigger` by its project ID and trigger ID.
- *
This API is experimental.
+ * Updates a `BuildTrigger` by its project ID and trigger ID.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
@@ -468,6 +484,25 @@
*
*
*
+ *
+ * GetDefaultServiceAccount
+ * Returns the `DefaultServiceAccount` used by the project.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getDefaultServiceAccount(GetDefaultServiceAccountRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getDefaultServiceAccount(DefaultServiceAccountName name)
+ *
getDefaultServiceAccount(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.
+ *
+ * getDefaultServiceAccountCallable()
+ *
+ *
+ *
*
*
* See the individual methods for example code.
@@ -595,6 +630,103 @@ public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Starts a build with the specified configuration.
+ *
+ *
This method returns a long-running `Operation`, which includes the build ID. Pass the build
+ * ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).
+ *
+ *
Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Build response = cloudBuildClient.createBuildAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent The parent resource where this build will be created. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBuildAsync(
+ LocationName parent) {
+ CreateBuildRequest request =
+ CreateBuildRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return createBuildAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Starts a build with the specified configuration.
+ *
+ * This method returns a long-running `Operation`, which includes the build ID. Pass the build
+ * ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).
+ *
+ *
Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * Build response = cloudBuildClient.createBuildAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent The parent resource where this build will be created. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBuildAsync(ProjectName parent) {
+ CreateBuildRequest request =
+ CreateBuildRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return createBuildAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Starts a build with the specified configuration.
+ *
+ * This method returns a long-running `Operation`, which includes the build ID. Pass the build
+ * ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).
+ *
+ *
Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * String parent = ProjectName.of("[PROJECT]").toString();
+ * Build response = cloudBuildClient.createBuildAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent The parent resource where this build will be created. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBuildAsync(String parent) {
+ CreateBuildRequest request = CreateBuildRequest.newBuilder().setParent(parent).build();
+ return createBuildAsync(request);
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Starts a build with the specified configuration.
@@ -646,7 +778,7 @@ public final OperationFuture createBuildAsync(
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setBuild(Build.newBuilder().build())
* .build();
@@ -680,7 +812,7 @@ public final OperationFuture createBuildAsync(
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setBuild(Build.newBuilder().build())
* .build();
@@ -714,7 +846,7 @@ public final OperationFuture createBuildAsync(
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setBuild(Build.newBuilder().build())
* .build();
@@ -728,6 +860,67 @@ public final UnaryCallable createBuildCallable()
return stub.createBuildCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns information about a previously requested build.
+ *
+ * The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or
+ * `WORKING`), and timing information.
+ *
+ *
Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+ * Build response = cloudBuildClient.getBuild(name);
+ * }
+ * }
+ *
+ * @param name The name of the `Build` to retrieve. Format:
+ * `projects/{project}/locations/{location}/builds/{build}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Build getBuild(BuildName name) {
+ GetBuildRequest request =
+ GetBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getBuild(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns information about a previously requested build.
+ *
+ * The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or
+ * `WORKING`), and timing information.
+ *
+ *
Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString();
+ * Build response = cloudBuildClient.getBuild(name);
+ * }
+ * }
+ *
+ * @param name The name of the `Build` to retrieve. Format:
+ * `projects/{project}/locations/{location}/builds/{build}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Build getBuild(String name) {
+ GetBuildRequest request = GetBuildRequest.newBuilder().setName(name).build();
+ return getBuild(request);
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns information about a previously requested build.
@@ -877,7 +1070,7 @@ public final ListBuildsPagedResponse listBuilds(String projectId, String filter)
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -914,7 +1107,7 @@ public final ListBuildsPagedResponse listBuilds(ListBuildsRequest request) {
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -950,7 +1143,7 @@ public final UnaryCallable listBuild
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -975,6 +1168,61 @@ public final UnaryCallable listBuildsCall
return stub.listBuildsCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Cancels a build in progress.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+ * Build response = cloudBuildClient.cancelBuild(name);
+ * }
+ * }
+ *
+ * @param name The name of the `Build` to cancel. Format:
+ * `projects/{project}/locations/{location}/builds/{build}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Build cancelBuild(BuildName name) {
+ CancelBuildRequest request =
+ CancelBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return cancelBuild(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Cancels a build in progress.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString();
+ * Build response = cloudBuildClient.cancelBuild(name);
+ * }
+ * }
+ *
+ * @param name The name of the `Build` to cancel. Format:
+ * `projects/{project}/locations/{location}/builds/{build}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Build cancelBuild(String name) {
+ CancelBuildRequest request = CancelBuildRequest.newBuilder().setName(name).build();
+ return cancelBuild(request);
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Cancels a build in progress.
@@ -1063,6 +1311,121 @@ public final UnaryCallable cancelBuildCallable() {
return stub.cancelBuildCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new build based on the specified build.
+ *
+ * This method creates a new build using the original build request, which may or may not
+ * result in an identical build.
+ *
+ *
For triggered builds:
+ *
+ *
+ * - Triggered builds resolve to a precise revision; therefore a retry of a triggered build
+ * will result in a build that uses the same revision.
+ *
+ *
+ * For non-triggered builds that specify `RepoSource`:
+ *
+ *
+ * - If the original build built from the tip of a branch, the retried build will build from
+ * the tip of that branch, which may not be the same revision as the original build.
+ *
- If the original build specified a commit sha or revision ID, the retried build will use
+ * the identical source.
+ *
+ *
+ * For builds that specify `StorageSource`:
+ *
+ *
+ * - If the original build pulled source from Cloud Storage without specifying the generation
+ * of the object, the new build will use the current object, which may be different from the
+ * original build source.
+ *
- If the original build pulled source from Cloud Storage and specified the generation of
+ * the object, the new build will attempt to use the same object, which may or may not be
+ * available depending on the bucket's lifecycle management settings.
+ *
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+ * Build response = cloudBuildClient.retryBuildAsync(name).get();
+ * }
+ * }
+ *
+ * @param name The name of the `Build` to retry. Format:
+ * `projects/{project}/locations/{location}/builds/{build}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture retryBuildAsync(BuildName name) {
+ RetryBuildRequest request =
+ RetryBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return retryBuildAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new build based on the specified build.
+ *
+ * This method creates a new build using the original build request, which may or may not
+ * result in an identical build.
+ *
+ *
For triggered builds:
+ *
+ *
+ * - Triggered builds resolve to a precise revision; therefore a retry of a triggered build
+ * will result in a build that uses the same revision.
+ *
+ *
+ * For non-triggered builds that specify `RepoSource`:
+ *
+ *
+ * - If the original build built from the tip of a branch, the retried build will build from
+ * the tip of that branch, which may not be the same revision as the original build.
+ *
- If the original build specified a commit sha or revision ID, the retried build will use
+ * the identical source.
+ *
+ *
+ * For builds that specify `StorageSource`:
+ *
+ *
+ * - If the original build pulled source from Cloud Storage without specifying the generation
+ * of the object, the new build will use the current object, which may be different from the
+ * original build source.
+ *
- If the original build pulled source from Cloud Storage and specified the generation of
+ * the object, the new build will attempt to use the same object, which may or may not be
+ * available depending on the bucket's lifecycle management settings.
+ *
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString();
+ * Build response = cloudBuildClient.retryBuildAsync(name).get();
+ * }
+ * }
+ *
+ * @param name The name of the `Build` to retry. Format:
+ * `projects/{project}/locations/{location}/builds/{build}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture retryBuildAsync(String name) {
+ RetryBuildRequest request = RetryBuildRequest.newBuilder().setName(name).build();
+ return retryBuildAsync(request);
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new build based on the specified build.
@@ -1308,7 +1671,8 @@ public final UnaryCallable retryBuildCallable() {
/**
* Approves or rejects a pending build.
*
- * If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call.
+ *
If approved, the returned long-running operation (LRO) will be analogous to the LRO returned
+ * from a CreateBuild call.
*
*
If rejected, the returned LRO will be immediately done.
*
@@ -1343,7 +1707,8 @@ public final OperationFuture approveBuildAsync(
/**
* Approves or rejects a pending build.
*
- * If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call.
+ *
If approved, the returned long-running operation (LRO) will be analogous to the LRO returned
+ * from a CreateBuild call.
*
*
If rejected, the returned LRO will be immediately done.
*
@@ -1377,7 +1742,8 @@ public final OperationFuture approveBuildAsync(
/**
* Approves or rejects a pending build.
*
- * If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call.
+ *
If approved, the returned long-running operation (LRO) will be analogous to the LRO returned
+ * from a CreateBuild call.
*
*
If rejected, the returned LRO will be immediately done.
*
@@ -1411,7 +1777,8 @@ public final OperationFuture approveBuildAsync(
/**
* Approves or rejects a pending build.
*
- * If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call.
+ *
If approved, the returned long-running operation (LRO) will be analogous to the LRO returned
+ * from a CreateBuild call.
*
*
If rejected, the returned LRO will be immediately done.
*
@@ -1443,7 +1810,93 @@ public final UnaryCallable approveBuildCallable(
/**
* Creates a new `BuildTrigger`.
*
- * This API is experimental.
+ *
Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * BuildTrigger response = cloudBuildClient.createBuildTrigger(parent);
+ * }
+ * }
+ *
+ * @param parent The parent resource where this trigger will be created. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BuildTrigger createBuildTrigger(LocationName parent) {
+ CreateBuildTriggerRequest request =
+ CreateBuildTriggerRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return createBuildTrigger(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new `BuildTrigger`.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * BuildTrigger response = cloudBuildClient.createBuildTrigger(parent);
+ * }
+ * }
+ *
+ * @param parent The parent resource where this trigger will be created. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BuildTrigger createBuildTrigger(ProjectName parent) {
+ CreateBuildTriggerRequest request =
+ CreateBuildTriggerRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return createBuildTrigger(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new `BuildTrigger`.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * String parent = ProjectName.of("[PROJECT]").toString();
+ * BuildTrigger response = cloudBuildClient.createBuildTrigger(parent);
+ * }
+ * }
+ *
+ * @param parent The parent resource where this trigger will be created. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BuildTrigger createBuildTrigger(String parent) {
+ CreateBuildTriggerRequest request =
+ CreateBuildTriggerRequest.newBuilder().setParent(parent).build();
+ return createBuildTrigger(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new `BuildTrigger`.
*
* Sample code:
*
@@ -1474,8 +1927,6 @@ public final BuildTrigger createBuildTrigger(String projectId, BuildTrigger trig
/**
* Creates a new `BuildTrigger`.
*
- *
This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1487,7 +1938,7 @@ public final BuildTrigger createBuildTrigger(String projectId, BuildTrigger trig
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildTriggerRequest request =
* CreateBuildTriggerRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setTrigger(BuildTrigger.newBuilder().build())
* .build();
@@ -1506,8 +1957,6 @@ public final BuildTrigger createBuildTrigger(CreateBuildTriggerRequest request)
/**
* Creates a new `BuildTrigger`.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1519,7 +1968,7 @@ public final BuildTrigger createBuildTrigger(CreateBuildTriggerRequest request)
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildTriggerRequest request =
* CreateBuildTriggerRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setTrigger(BuildTrigger.newBuilder().build())
* .build();
@@ -1538,7 +1987,60 @@ public final UnaryCallable createBuildT
/**
* Returns information about a `BuildTrigger`.
*
- * This API is experimental.
+ *
Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]");
+ * BuildTrigger response = cloudBuildClient.getBuildTrigger(name);
+ * }
+ * }
+ *
+ * @param name The name of the `Trigger` to retrieve. Format:
+ * `projects/{project}/locations/{location}/triggers/{trigger}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BuildTrigger getBuildTrigger(BuildTriggerName name) {
+ GetBuildTriggerRequest request =
+ GetBuildTriggerRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getBuildTrigger(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns information about a `BuildTrigger`.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * String name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString();
+ * BuildTrigger response = cloudBuildClient.getBuildTrigger(name);
+ * }
+ * }
+ *
+ * @param name The name of the `Trigger` to retrieve. Format:
+ * `projects/{project}/locations/{location}/triggers/{trigger}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BuildTrigger getBuildTrigger(String name) {
+ GetBuildTriggerRequest request = GetBuildTriggerRequest.newBuilder().setName(name).build();
+ return getBuildTrigger(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns information about a `BuildTrigger`.
*
* Sample code:
*
@@ -1569,8 +2071,6 @@ public final BuildTrigger getBuildTrigger(String projectId, String triggerId) {
/**
* Returns information about a `BuildTrigger`.
*
- *
This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1601,8 +2101,6 @@ public final BuildTrigger getBuildTrigger(GetBuildTriggerRequest request) {
/**
* Returns information about a `BuildTrigger`.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1633,8 +2131,6 @@ public final UnaryCallable getBuildTrigger
/**
* Lists existing `BuildTrigger`s.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1664,8 +2160,6 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(String projectId)
/**
* Lists existing `BuildTrigger`s.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1677,7 +2171,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(String projectId)
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -1699,8 +2193,6 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
/**
* Lists existing `BuildTrigger`s.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1712,7 +2204,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -1735,8 +2227,6 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
/**
* Lists existing `BuildTrigger`s.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1748,7 +2238,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setParent(ProjectName.of("[PROJECT]").toString())
* .setProjectId("projectId-894832108")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -1778,7 +2268,63 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
/**
* Deletes a `BuildTrigger` by its project ID and trigger ID.
*
- * This API is experimental.
+ *
Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]");
+ * cloudBuildClient.deleteBuildTrigger(name);
+ * }
+ * }
+ *
+ * @param name The name of the `Trigger` to delete. Format:
+ * `projects/{project}/locations/{location}/triggers/{trigger}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteBuildTrigger(BuildTriggerName name) {
+ DeleteBuildTriggerRequest request =
+ DeleteBuildTriggerRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteBuildTrigger(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a `BuildTrigger` by its project ID and trigger ID.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * String name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString();
+ * cloudBuildClient.deleteBuildTrigger(name);
+ * }
+ * }
+ *
+ * @param name The name of the `Trigger` to delete. Format:
+ * `projects/{project}/locations/{location}/triggers/{trigger}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteBuildTrigger(String name) {
+ DeleteBuildTriggerRequest request =
+ DeleteBuildTriggerRequest.newBuilder().setName(name).build();
+ deleteBuildTrigger(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a `BuildTrigger` by its project ID and trigger ID.
*
* Sample code:
*
@@ -1812,8 +2358,6 @@ public final void deleteBuildTrigger(String projectId, String triggerId) {
/**
* Deletes a `BuildTrigger` by its project ID and trigger ID.
*
- *
This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1844,8 +2388,6 @@ public final void deleteBuildTrigger(DeleteBuildTriggerRequest request) {
/**
* Deletes a `BuildTrigger` by its project ID and trigger ID.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1875,8 +2417,6 @@ public final UnaryCallable deleteBuildTriggerC
/**
* Updates a `BuildTrigger` by its project ID and trigger ID.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1913,8 +2453,6 @@ public final BuildTrigger updateBuildTrigger(
/**
* Updates a `BuildTrigger` by its project ID and trigger ID.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -1946,8 +2484,6 @@ public final BuildTrigger updateBuildTrigger(UpdateBuildTriggerRequest request)
/**
* Updates a `BuildTrigger` by its project ID and trigger ID.
*
- * This API is experimental.
- *
*
Sample code:
*
*
{@code
@@ -2652,7 +3188,7 @@ public final UnaryCallable deleteWorkerPoolC
* @param workerPool Required. The `WorkerPool` to update.
* The `name` field is used to identify the `WorkerPool` to update. Format:
* `projects/{project}/locations/{location}/workerPools/{workerPool}`.
- * @param updateMask A mask specifying which fields in `worker_pool` to update.
+ * @param updateMask Optional. A mask specifying which fields in `worker_pool` to update.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture updateWorkerPoolAsync(
@@ -2922,6 +3458,122 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest
return stub.listWorkerPoolsCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the `DefaultServiceAccount` used by the project.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * DefaultServiceAccountName name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]");
+ * DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the `DefaultServiceAccount` to retrieve. Format:
+ * `projects/{project}/locations/{location}/defaultServiceAccount`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DefaultServiceAccount getDefaultServiceAccount(DefaultServiceAccountName name) {
+ GetDefaultServiceAccountRequest request =
+ GetDefaultServiceAccountRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getDefaultServiceAccount(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the `DefaultServiceAccount` used by the project.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * String name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString();
+ * DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the `DefaultServiceAccount` to retrieve. Format:
+ * `projects/{project}/locations/{location}/defaultServiceAccount`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DefaultServiceAccount getDefaultServiceAccount(String name) {
+ GetDefaultServiceAccountRequest request =
+ GetDefaultServiceAccountRequest.newBuilder().setName(name).build();
+ return getDefaultServiceAccount(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the `DefaultServiceAccount` used by the project.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * GetDefaultServiceAccountRequest request =
+ * GetDefaultServiceAccountRequest.newBuilder()
+ * .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString())
+ * .build();
+ * DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(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 DefaultServiceAccount getDefaultServiceAccount(
+ GetDefaultServiceAccountRequest request) {
+ return getDefaultServiceAccountCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the `DefaultServiceAccount` used by the project.
+ *
+ * Sample code:
+ *
+ *
{@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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
+ * GetDefaultServiceAccountRequest request =
+ * GetDefaultServiceAccountRequest.newBuilder()
+ * .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString())
+ * .build();
+ * ApiFuture future =
+ * cloudBuildClient.getDefaultServiceAccountCallable().futureCall(request);
+ * // Do something.
+ * DefaultServiceAccount response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getDefaultServiceAccountCallable() {
+ return stub.getDefaultServiceAccountCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
index 2ee468284e35..4620b4720195 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
+++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
@@ -43,11 +43,13 @@
import com.google.cloudbuild.v1.CreateBuildTriggerRequest;
import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.CreateWorkerPoolRequest;
+import com.google.cloudbuild.v1.DefaultServiceAccount;
import com.google.cloudbuild.v1.DeleteBuildTriggerRequest;
import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.DeleteWorkerPoolRequest;
import com.google.cloudbuild.v1.GetBuildRequest;
import com.google.cloudbuild.v1.GetBuildTriggerRequest;
+import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest;
import com.google.cloudbuild.v1.GetWorkerPoolRequest;
import com.google.cloudbuild.v1.ListBuildTriggersRequest;
import com.google.cloudbuild.v1.ListBuildTriggersResponse;
@@ -286,6 +288,12 @@ public UnaryCallSettings updateWorkerPoolSet
return ((CloudBuildStubSettings) getStubSettings()).listWorkerPoolsSettings();
}
+ /** Returns the object with the settings used for calls to getDefaultServiceAccount. */
+ public UnaryCallSettings
+ getDefaultServiceAccountSettings() {
+ return ((CloudBuildStubSettings) getStubSettings()).getDefaultServiceAccountSettings();
+ }
+
public static final CloudBuildSettings create(CloudBuildStubSettings stub) throws IOException {
return new CloudBuildSettings.Builder(stub.toBuilder()).build();
}
@@ -545,6 +553,12 @@ public UnaryCallSettings.Builder getWorkerPool
return getStubSettingsBuilder().listWorkerPoolsSettings();
}
+ /** Returns the builder for the settings used for calls to getDefaultServiceAccount. */
+ public UnaryCallSettings.Builder
+ getDefaultServiceAccountSettings() {
+ return getStubSettingsBuilder().getDefaultServiceAccountSettings();
+ }
+
@Override
public CloudBuildSettings build() throws IOException {
return new CloudBuildSettings(this);
diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json
index 1b680cf9b072..d39b7f899da6 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json
+++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json
@@ -14,28 +14,31 @@
"methods": ["approveBuildAsync", "approveBuildAsync", "approveBuildOperationCallable", "approveBuildCallable"]
},
"CancelBuild": {
- "methods": ["cancelBuild", "cancelBuild", "cancelBuildCallable"]
+ "methods": ["cancelBuild", "cancelBuild", "cancelBuild", "cancelBuild", "cancelBuildCallable"]
},
"CreateBuild": {
- "methods": ["createBuildAsync", "createBuildAsync", "createBuildOperationCallable", "createBuildCallable"]
+ "methods": ["createBuildAsync", "createBuildAsync", "createBuildAsync", "createBuildAsync", "createBuildAsync", "createBuildOperationCallable", "createBuildCallable"]
},
"CreateBuildTrigger": {
- "methods": ["createBuildTrigger", "createBuildTrigger", "createBuildTriggerCallable"]
+ "methods": ["createBuildTrigger", "createBuildTrigger", "createBuildTrigger", "createBuildTrigger", "createBuildTrigger", "createBuildTriggerCallable"]
},
"CreateWorkerPool": {
"methods": ["createWorkerPoolAsync", "createWorkerPoolAsync", "createWorkerPoolAsync", "createWorkerPoolOperationCallable", "createWorkerPoolCallable"]
},
"DeleteBuildTrigger": {
- "methods": ["deleteBuildTrigger", "deleteBuildTrigger", "deleteBuildTriggerCallable"]
+ "methods": ["deleteBuildTrigger", "deleteBuildTrigger", "deleteBuildTrigger", "deleteBuildTrigger", "deleteBuildTriggerCallable"]
},
"DeleteWorkerPool": {
"methods": ["deleteWorkerPoolAsync", "deleteWorkerPoolAsync", "deleteWorkerPoolAsync", "deleteWorkerPoolOperationCallable", "deleteWorkerPoolCallable"]
},
"GetBuild": {
- "methods": ["getBuild", "getBuild", "getBuildCallable"]
+ "methods": ["getBuild", "getBuild", "getBuild", "getBuild", "getBuildCallable"]
},
"GetBuildTrigger": {
- "methods": ["getBuildTrigger", "getBuildTrigger", "getBuildTriggerCallable"]
+ "methods": ["getBuildTrigger", "getBuildTrigger", "getBuildTrigger", "getBuildTrigger", "getBuildTriggerCallable"]
+ },
+ "GetDefaultServiceAccount": {
+ "methods": ["getDefaultServiceAccount", "getDefaultServiceAccount", "getDefaultServiceAccount", "getDefaultServiceAccountCallable"]
},
"GetWorkerPool": {
"methods": ["getWorkerPool", "getWorkerPool", "getWorkerPool", "getWorkerPoolCallable"]
@@ -53,7 +56,7 @@
"methods": ["receiveTriggerWebhook", "receiveTriggerWebhookCallable"]
},
"RetryBuild": {
- "methods": ["retryBuildAsync", "retryBuildAsync", "retryBuildOperationCallable", "retryBuildCallable"]
+ "methods": ["retryBuildAsync", "retryBuildAsync", "retryBuildAsync", "retryBuildAsync", "retryBuildOperationCallable", "retryBuildCallable"]
},
"RunBuildTrigger": {
"methods": ["runBuildTriggerAsync", "runBuildTriggerAsync", "runBuildTriggerOperationCallable", "runBuildTriggerCallable"]
diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
index 1187bb060929..9eb55aac4646 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
+++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
@@ -38,9 +38,8 @@
* // - 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 (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
- * String projectId = "projectId-894832108";
- * String id = "id3355";
- * Build response = cloudBuildClient.getBuild(projectId, id);
+ * BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+ * Build response = cloudBuildClient.getBuild(name);
* }
* }
*/
diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java
index 68d388f666ee..1dac05229d69 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java
+++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java
@@ -32,11 +32,13 @@
import com.google.cloudbuild.v1.CreateBuildTriggerRequest;
import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.CreateWorkerPoolRequest;
+import com.google.cloudbuild.v1.DefaultServiceAccount;
import com.google.cloudbuild.v1.DeleteBuildTriggerRequest;
import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.DeleteWorkerPoolRequest;
import com.google.cloudbuild.v1.GetBuildRequest;
import com.google.cloudbuild.v1.GetBuildTriggerRequest;
+import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest;
import com.google.cloudbuild.v1.GetWorkerPoolRequest;
import com.google.cloudbuild.v1.ListBuildTriggersRequest;
import com.google.cloudbuild.v1.ListBuildTriggersResponse;
@@ -197,6 +199,11 @@ public UnaryCallable listWorker
throw new UnsupportedOperationException("Not implemented: listWorkerPoolsCallable()");
}
+ public UnaryCallable
+ getDefaultServiceAccountCallable() {
+ throw new UnsupportedOperationException("Not implemented: getDefaultServiceAccountCallable()");
+ }
+
@Override
public abstract void close();
}
diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
index 35325bb4804d..fa76db1d5bb4 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
+++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
@@ -59,11 +59,13 @@
import com.google.cloudbuild.v1.CreateBuildTriggerRequest;
import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.CreateWorkerPoolRequest;
+import com.google.cloudbuild.v1.DefaultServiceAccount;
import com.google.cloudbuild.v1.DeleteBuildTriggerRequest;
import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.DeleteWorkerPoolRequest;
import com.google.cloudbuild.v1.GetBuildRequest;
import com.google.cloudbuild.v1.GetBuildTriggerRequest;
+import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest;
import com.google.cloudbuild.v1.GetWorkerPoolRequest;
import com.google.cloudbuild.v1.ListBuildTriggersRequest;
import com.google.cloudbuild.v1.ListBuildTriggersResponse;
@@ -213,6 +215,8 @@ public class CloudBuildStubSettings extends StubSettings
private final PagedCallSettings<
ListWorkerPoolsRequest, ListWorkerPoolsResponse, ListWorkerPoolsPagedResponse>
listWorkerPoolsSettings;
+ private final UnaryCallSettings
+ getDefaultServiceAccountSettings;
private static final PagedListDescriptor
LIST_BUILDS_PAGE_STR_DESC =
@@ -518,6 +522,12 @@ public UnaryCallSettings updateWorkerPoolSet
return listWorkerPoolsSettings;
}
+ /** Returns the object with the settings used for calls to getDefaultServiceAccount. */
+ public UnaryCallSettings
+ getDefaultServiceAccountSettings() {
+ return getDefaultServiceAccountSettings;
+ }
+
public CloudBuildStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
@@ -654,6 +664,7 @@ protected CloudBuildStubSettings(Builder settingsBuilder) throws IOException {
updateWorkerPoolSettings = settingsBuilder.updateWorkerPoolSettings().build();
updateWorkerPoolOperationSettings = settingsBuilder.updateWorkerPoolOperationSettings().build();
listWorkerPoolsSettings = settingsBuilder.listWorkerPoolsSettings().build();
+ getDefaultServiceAccountSettings = settingsBuilder.getDefaultServiceAccountSettings().build();
}
/** Builder for CloudBuildStubSettings. */
@@ -711,6 +722,8 @@ public static class Builder extends StubSettings.Builder
listWorkerPoolsSettings;
+ private final UnaryCallSettings.Builder
+ getDefaultServiceAccountSettings;
private static final ImmutableMap>
RETRYABLE_CODE_DEFINITIONS;
@@ -789,6 +802,7 @@ protected Builder(ClientContext clientContext) {
updateWorkerPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
updateWorkerPoolOperationSettings = OperationCallSettings.newBuilder();
listWorkerPoolsSettings = PagedCallSettings.newBuilder(LIST_WORKER_POOLS_PAGE_STR_FACT);
+ getDefaultServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
@@ -809,7 +823,8 @@ protected Builder(ClientContext clientContext) {
getWorkerPoolSettings,
deleteWorkerPoolSettings,
updateWorkerPoolSettings,
- listWorkerPoolsSettings);
+ listWorkerPoolsSettings,
+ getDefaultServiceAccountSettings);
initDefaults(this);
}
@@ -841,6 +856,7 @@ protected Builder(CloudBuildStubSettings settings) {
updateWorkerPoolSettings = settings.updateWorkerPoolSettings.toBuilder();
updateWorkerPoolOperationSettings = settings.updateWorkerPoolOperationSettings.toBuilder();
listWorkerPoolsSettings = settings.listWorkerPoolsSettings.toBuilder();
+ getDefaultServiceAccountSettings = settings.getDefaultServiceAccountSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
@@ -861,7 +877,8 @@ protected Builder(CloudBuildStubSettings settings) {
getWorkerPoolSettings,
deleteWorkerPoolSettings,
updateWorkerPoolSettings,
- listWorkerPoolsSettings);
+ listWorkerPoolsSettings,
+ getDefaultServiceAccountSettings);
}
private static Builder createDefault() {
@@ -979,6 +996,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+ builder
+ .getDefaultServiceAccountSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
builder
.createBuildOperationSettings()
.setInitialCallSettings(
@@ -1314,6 +1336,12 @@ public UnaryCallSettings.Builder getWorkerPool
return listWorkerPoolsSettings;
}
+ /** Returns the builder for the settings used for calls to getDefaultServiceAccount. */
+ public UnaryCallSettings.Builder
+ getDefaultServiceAccountSettings() {
+ return getDefaultServiceAccountSettings;
+ }
+
@Override
public CloudBuildStubSettings build() throws IOException {
return new CloudBuildStubSettings(this);
diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java
index 57d73fd77e52..9f33d98bbf6f 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java
+++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java
@@ -38,11 +38,13 @@
import com.google.cloudbuild.v1.CreateBuildTriggerRequest;
import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.CreateWorkerPoolRequest;
+import com.google.cloudbuild.v1.DefaultServiceAccount;
import com.google.cloudbuild.v1.DeleteBuildTriggerRequest;
import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.DeleteWorkerPoolRequest;
import com.google.cloudbuild.v1.GetBuildRequest;
import com.google.cloudbuild.v1.GetBuildTriggerRequest;
+import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest;
import com.google.cloudbuild.v1.GetWorkerPoolRequest;
import com.google.cloudbuild.v1.ListBuildTriggersRequest;
import com.google.cloudbuild.v1.ListBuildTriggersResponse;
@@ -266,6 +268,19 @@ public class GrpcCloudBuildStub extends CloudBuildStub {
.setSampledToLocalTracing(true)
.build();
+ private static final MethodDescriptor
+ getDefaultServiceAccountMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.devtools.cloudbuild.v1.CloudBuild/GetDefaultServiceAccount")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetDefaultServiceAccountRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DefaultServiceAccount.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
private final UnaryCallable createBuildCallable;
private final OperationCallable
createBuildOperationCallable;
@@ -308,6 +323,8 @@ public class GrpcCloudBuildStub extends CloudBuildStub {
listWorkerPoolsCallable;
private final UnaryCallable
listWorkerPoolsPagedCallable;
+ private final UnaryCallable
+ getDefaultServiceAccountCallable;
private final BackgroundResource backgroundResources;
private final GrpcOperationsStub operationsStub;
@@ -347,6 +364,8 @@ public class GrpcCloudBuildStub extends CloudBuildStub {
PathTemplate.create("projects/*/locations/{location=*}/workerPools/*");
private static final PathTemplate LIST_WORKER_POOLS_0_PATH_TEMPLATE =
PathTemplate.create("projects/*/locations/{location=*}");
+ private static final PathTemplate GET_DEFAULT_SERVICE_ACCOUNT_0_PATH_TEMPLATE =
+ PathTemplate.create("projects/*/locations/{location=*}/defaultServiceAccount");
public static final GrpcCloudBuildStub create(CloudBuildStubSettings settings)
throws IOException {
@@ -585,6 +604,20 @@ protected GrpcCloudBuildStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ getDefaultServiceAccountTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getDefaultServiceAccountMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add(
+ request.getName(),
+ "location",
+ GET_DEFAULT_SERVICE_ACCOUNT_0_PATH_TEMPLATE);
+ return builder.build();
+ })
+ .build();
this.createBuildCallable =
callableFactory.createUnaryCallable(
@@ -703,6 +736,11 @@ protected GrpcCloudBuildStub(
this.listWorkerPoolsPagedCallable =
callableFactory.createPagedCallable(
listWorkerPoolsTransportSettings, settings.listWorkerPoolsSettings(), clientContext);
+ this.getDefaultServiceAccountCallable =
+ callableFactory.createUnaryCallable(
+ getDefaultServiceAccountTransportSettings,
+ settings.getDefaultServiceAccountSettings(),
+ clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -863,6 +901,12 @@ public UnaryCallable listWorker
return listWorkerPoolsPagedCallable;
}
+ @Override
+ public UnaryCallable
+ getDefaultServiceAccountCallable() {
+ return getDefaultServiceAccountCallable;
+ }
+
@Override
public final void close() {
try {
diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
index d61c69f49baf..21d00a3b8a30 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
+++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
@@ -46,11 +46,13 @@
import com.google.cloudbuild.v1.CreateBuildTriggerRequest;
import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.CreateWorkerPoolRequest;
+import com.google.cloudbuild.v1.DefaultServiceAccount;
import com.google.cloudbuild.v1.DeleteBuildTriggerRequest;
import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata;
import com.google.cloudbuild.v1.DeleteWorkerPoolRequest;
import com.google.cloudbuild.v1.GetBuildRequest;
import com.google.cloudbuild.v1.GetBuildTriggerRequest;
+import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest;
import com.google.cloudbuild.v1.GetWorkerPoolRequest;
import com.google.cloudbuild.v1.ListBuildTriggersRequest;
import com.google.cloudbuild.v1.ListBuildTriggersResponse;
@@ -832,6 +834,41 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.build())
.build();
+ private static final ApiMethodDescriptor
+ getDefaultServiceAccountMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.devtools.cloudbuild.v1.CloudBuild/GetDefaultServiceAccount")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/defaultServiceAccount}",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(DefaultServiceAccount.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private final UnaryCallable createBuildCallable;
private final OperationCallable
createBuildOperationCallable;
@@ -874,6 +911,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
listWorkerPoolsCallable;
private final UnaryCallable
listWorkerPoolsPagedCallable;
+ private final UnaryCallable
+ getDefaultServiceAccountCallable;
private final BackgroundResource backgroundResources;
private final HttpJsonOperationsStub httpJsonOperationsStub;
@@ -913,6 +952,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
PathTemplate.create("projects/*/locations/{location=*}/workerPools/*");
private static final PathTemplate LIST_WORKER_POOLS_0_PATH_TEMPLATE =
PathTemplate.create("projects/*/locations/{location=*}");
+ private static final PathTemplate GET_DEFAULT_SERVICE_ACCOUNT_0_PATH_TEMPLATE =
+ PathTemplate.create("projects/*/locations/{location=*}/defaultServiceAccount");
public static final HttpJsonCloudBuildStub create(CloudBuildStubSettings settings)
throws IOException {
@@ -1197,6 +1238,22 @@ protected HttpJsonCloudBuildStub(
return builder.build();
})
.build();
+ HttpJsonCallSettings
+ getDefaultServiceAccountTransportSettings =
+ HttpJsonCallSettings
+ .newBuilder()
+ .setMethodDescriptor(getDefaultServiceAccountMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add(
+ request.getName(),
+ "location",
+ GET_DEFAULT_SERVICE_ACCOUNT_0_PATH_TEMPLATE);
+ return builder.build();
+ })
+ .build();
this.createBuildCallable =
callableFactory.createUnaryCallable(
@@ -1315,6 +1372,11 @@ protected HttpJsonCloudBuildStub(
this.listWorkerPoolsPagedCallable =
callableFactory.createPagedCallable(
listWorkerPoolsTransportSettings, settings.listWorkerPoolsSettings(), clientContext);
+ this.getDefaultServiceAccountCallable =
+ callableFactory.createUnaryCallable(
+ getDefaultServiceAccountTransportSettings,
+ settings.getDefaultServiceAccountSettings(),
+ clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1341,6 +1403,7 @@ public static List getMethodDescriptors() {
methodDescriptors.add(deleteWorkerPoolMethodDescriptor);
methodDescriptors.add(updateWorkerPoolMethodDescriptor);
methodDescriptors.add(listWorkerPoolsMethodDescriptor);
+ methodDescriptors.add(getDefaultServiceAccountMethodDescriptor);
return methodDescriptors;
}
@@ -1499,6 +1562,12 @@ public UnaryCallable listWorker
return listWorkerPoolsPagedCallable;
}
+ @Override
+ public UnaryCallable
+ getDefaultServiceAccountCallable() {
+ return getDefaultServiceAccountCallable;
+ }
+
@Override
public final void close() {
try {
diff --git a/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json b/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json
index 2a710d002cd0..f56ef70bdd0f 100644
--- a/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json
+++ b/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json
@@ -944,6 +944,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloudbuild.v1.ConnectedRepository",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloudbuild.v1.ConnectedRepository$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloudbuild.v1.CreateBuildRequest",
"queryAllDeclaredConstructors": true,
@@ -1016,6 +1034,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloudbuild.v1.DefaultServiceAccount",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloudbuild.v1.DefaultServiceAccount$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloudbuild.v1.DeleteBuildTriggerRequest",
"queryAllDeclaredConstructors": true,
@@ -1178,6 +1214,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloudbuild.v1.GetDefaultServiceAccountRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloudbuild.v1.GetDefaultServiceAccountRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloudbuild.v1.GetWorkerPoolRequest",
"queryAllDeclaredConstructors": true,
diff --git a/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientHttpJsonTest.java b/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientHttpJsonTest.java
index e9a9b4dae5bd..a2850ad726cf 100644
--- a/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientHttpJsonTest.java
+++ b/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientHttpJsonTest.java
@@ -40,6 +40,8 @@
import com.google.cloudbuild.v1.BuildStep;
import com.google.cloudbuild.v1.BuildTrigger;
import com.google.cloudbuild.v1.BuildTriggerName;
+import com.google.cloudbuild.v1.DefaultServiceAccount;
+import com.google.cloudbuild.v1.DefaultServiceAccountName;
import com.google.cloudbuild.v1.Dependency;
import com.google.cloudbuild.v1.GitConfig;
import com.google.cloudbuild.v1.GitHubEventsConfig;
@@ -48,6 +50,7 @@
import com.google.cloudbuild.v1.ListBuildsResponse;
import com.google.cloudbuild.v1.ListWorkerPoolsResponse;
import com.google.cloudbuild.v1.LocationName;
+import com.google.cloudbuild.v1.ProjectName;
import com.google.cloudbuild.v1.PubsubConfig;
import com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest;
import com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse;
@@ -160,10 +163,9 @@ public void createBuildTest() throws Exception {
.build();
mockService.addResponse(resultOperation);
- String projectId = "projectId-1530";
- Build build = Build.newBuilder().build();
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- Build actualResponse = client.createBuildAsync(projectId, build).get();
+ Build actualResponse = client.createBuildAsync(parent).get();
Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockService.getRequestPaths();
@@ -189,16 +191,15 @@ public void createBuildExceptionTest() throws Exception {
mockService.addException(exception);
try {
- String projectId = "projectId-1530";
- Build build = Build.newBuilder().build();
- client.createBuildAsync(projectId, build).get();
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ client.createBuildAsync(parent).get();
Assert.fail("No exception raised");
} catch (ExecutionException e) {
}
}
@Test
- public void getBuildTest() throws Exception {
+ public void createBuildTest2() throws Exception {
Build expectedResponse =
Build.newBuilder()
.setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
@@ -232,12 +233,17 @@ public void getBuildTest() throws Exception {
.setFailureInfo(Build.FailureInfo.newBuilder().build())
.addAllDependencies(new ArrayList())
.build();
- mockService.addResponse(expectedResponse);
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("createBuildTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
- String projectId = "projectId-1530";
- String id = "id-4047";
+ ProjectName parent = ProjectName.of("[PROJECT]");
- Build actualResponse = client.getBuild(projectId, id);
+ Build actualResponse = client.createBuildAsync(parent).get();
Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockService.getRequestPaths();
@@ -256,41 +262,146 @@ public void getBuildTest() throws Exception {
}
@Test
- public void getBuildExceptionTest() throws Exception {
+ public void createBuildExceptionTest2() throws Exception {
ApiException exception =
ApiExceptionFactory.createException(
new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
mockService.addException(exception);
try {
- String projectId = "projectId-1530";
- String id = "id-4047";
- client.getBuild(projectId, id);
+ ProjectName parent = ProjectName.of("[PROJECT]");
+ client.createBuildAsync(parent).get();
Assert.fail("No exception raised");
- } catch (InvalidArgumentException e) {
- // Expected exception.
+ } catch (ExecutionException e) {
}
}
@Test
- public void listBuildsTest() throws Exception {
- Build responsesElement = Build.newBuilder().build();
- ListBuildsResponse expectedResponse =
- ListBuildsResponse.newBuilder()
- .setNextPageToken("")
- .addAllBuilds(Arrays.asList(responsesElement))
+ public void createBuildTest3() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
.build();
- mockService.addResponse(expectedResponse);
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("createBuildTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
- String projectId = "projectId-1530";
- String filter = "filter-1274492040";
+ String parent = "parent-995424086";
- ListBuildsPagedResponse pagedListResponse = client.listBuilds(projectId, filter);
+ Build actualResponse = client.createBuildAsync(parent).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
- List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
- Assert.assertEquals(1, resources.size());
- Assert.assertEquals(expectedResponse.getBuildsList().get(0), resources.get(0));
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void createBuildExceptionTest3() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ client.createBuildAsync(parent).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+
+ @Test
+ public void createBuildTest4() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("createBuildTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ String projectId = "projectId-1530";
+ Build build = Build.newBuilder().build();
+
+ Build actualResponse = client.createBuildAsync(projectId, build).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockService.getRequestPaths();
Assert.assertEquals(1, actualRequests.size());
@@ -308,7 +419,7 @@ public void listBuildsTest() throws Exception {
}
@Test
- public void listBuildsExceptionTest() throws Exception {
+ public void createBuildExceptionTest4() throws Exception {
ApiException exception =
ApiExceptionFactory.createException(
new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
@@ -316,8 +427,80 @@ public void listBuildsExceptionTest() throws Exception {
try {
String projectId = "projectId-1530";
- String filter = "filter-1274492040";
- client.listBuilds(projectId, filter);
+ Build build = Build.newBuilder().build();
+ client.createBuildAsync(projectId, build).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+
+ @Test
+ public void getBuildTest() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+
+ Build actualResponse = client.getBuild(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void getBuildExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+ client.getBuild(name);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -325,7 +508,7 @@ public void listBuildsExceptionTest() throws Exception {
}
@Test
- public void cancelBuildTest() throws Exception {
+ public void getBuildTest2() throws Exception {
Build expectedResponse =
Build.newBuilder()
.setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
@@ -361,10 +544,9 @@ public void cancelBuildTest() throws Exception {
.build();
mockService.addResponse(expectedResponse);
- String projectId = "projectId-1530";
- String id = "id-4047";
+ String name = "name3373707";
- Build actualResponse = client.cancelBuild(projectId, id);
+ Build actualResponse = client.getBuild(name);
Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockService.getRequestPaths();
@@ -383,16 +565,15 @@ public void cancelBuildTest() throws Exception {
}
@Test
- public void cancelBuildExceptionTest() throws Exception {
+ public void getBuildExceptionTest2() throws Exception {
ApiException exception =
ApiExceptionFactory.createException(
new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
mockService.addException(exception);
try {
- String projectId = "projectId-1530";
- String id = "id-4047";
- client.cancelBuild(projectId, id);
+ String name = "name3373707";
+ client.getBuild(name);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -400,7 +581,7 @@ public void cancelBuildExceptionTest() throws Exception {
}
@Test
- public void retryBuildTest() throws Exception {
+ public void getBuildTest3() throws Exception {
Build expectedResponse =
Build.newBuilder()
.setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
@@ -424,28 +605,857 @@ public void retryBuildTest() throws Exception {
.setLogUrl("logUrl-1097354357")
.putAllSubstitutions(new HashMap())
.addAllTags(new ArrayList())
- .addAllSecrets(new ArrayList())
- .putAllTiming(new HashMap())
- .setApproval(BuildApproval.newBuilder().build())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String projectId = "projectId-1530";
+ String id = "id-4047";
+
+ Build actualResponse = client.getBuild(projectId, id);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void getBuildExceptionTest3() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String projectId = "projectId-1530";
+ String id = "id-4047";
+ client.getBuild(projectId, id);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listBuildsTest() throws Exception {
+ Build responsesElement = Build.newBuilder().build();
+ ListBuildsResponse expectedResponse =
+ ListBuildsResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllBuilds(Arrays.asList(responsesElement))
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String projectId = "projectId-1530";
+ String filter = "filter-1274492040";
+
+ ListBuildsPagedResponse pagedListResponse = client.listBuilds(projectId, filter);
+
+ List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(expectedResponse.getBuildsList().get(0), resources.get(0));
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void listBuildsExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String projectId = "projectId-1530";
+ String filter = "filter-1274492040";
+ client.listBuilds(projectId, filter);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void cancelBuildTest() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+
+ Build actualResponse = client.cancelBuild(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void cancelBuildExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+ client.cancelBuild(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void cancelBuildTest2() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String name = "name3373707";
+
+ Build actualResponse = client.cancelBuild(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void cancelBuildExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.cancelBuild(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void cancelBuildTest3() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String projectId = "projectId-1530";
+ String id = "id-4047";
+
+ Build actualResponse = client.cancelBuild(projectId, id);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void cancelBuildExceptionTest3() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String projectId = "projectId-1530";
+ String id = "id-4047";
+ client.cancelBuild(projectId, id);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void retryBuildTest() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("retryBuildTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+
+ Build actualResponse = client.retryBuildAsync(name).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void retryBuildExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
+ client.retryBuildAsync(name).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+
+ @Test
+ public void retryBuildTest2() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("retryBuildTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ String name = "name3373707";
+
+ Build actualResponse = client.retryBuildAsync(name).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void retryBuildExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.retryBuildAsync(name).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+
+ @Test
+ public void retryBuildTest3() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("retryBuildTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ String projectId = "projectId-1530";
+ String id = "id-4047";
+
+ Build actualResponse = client.retryBuildAsync(projectId, id).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void retryBuildExceptionTest3() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String projectId = "projectId-1530";
+ String id = "id-4047";
+ client.retryBuildAsync(projectId, id).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+
+ @Test
+ public void approveBuildTest() throws Exception {
+ Build expectedResponse =
+ Build.newBuilder()
+ .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ .setId("id3355")
+ .setProjectId("projectId-894832108")
+ .setStatusDetail("statusDetail1651087075")
+ .setSource(Source.newBuilder().build())
+ .addAllSteps(new ArrayList())
+ .setResults(Results.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setStartTime(Timestamp.newBuilder().build())
+ .setFinishTime(Timestamp.newBuilder().build())
+ .setTimeout(Duration.newBuilder().build())
+ .addAllImages(new ArrayList())
+ .setQueueTtl(Duration.newBuilder().build())
+ .setArtifacts(Artifacts.newBuilder().build())
+ .setLogsBucket("logsBucket1592573049")
+ .setSourceProvenance(SourceProvenance.newBuilder().build())
+ .setBuildTriggerId("buildTriggerId781747749")
+ .setOptions(BuildOptions.newBuilder().build())
+ .setLogUrl("logUrl-1097354357")
+ .putAllSubstitutions(new HashMap())
+ .addAllTags(new ArrayList())
+ .addAllSecrets(new ArrayList())
+ .putAllTiming(new HashMap())
+ .setApproval(BuildApproval.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setAvailableSecrets(Secrets.newBuilder().build())
+ .addAllWarnings(new ArrayList())
+ .setGitConfig(GitConfig.newBuilder().build())
+ .setFailureInfo(Build.FailureInfo.newBuilder().build())
+ .addAllDependencies(new ArrayList())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("approveBuildTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ String name = "projects/project-3679/builds/build-3679";
+ ApprovalResult approvalResult = ApprovalResult.newBuilder().build();
+
+ Build actualResponse = client.approveBuildAsync(name, approvalResult).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void approveBuildExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String name = "projects/project-3679/builds/build-3679";
+ ApprovalResult approvalResult = ApprovalResult.newBuilder().build();
+ client.approveBuildAsync(name, approvalResult).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+
+ @Test
+ public void createBuildTriggerTest() throws Exception {
+ BuildTrigger expectedResponse =
+ BuildTrigger.newBuilder()
+ .setResourceName("resourceName-384566343")
+ .setId("id3355")
+ .setDescription("description-1724546052")
+ .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString())
+ .addAllTags(new ArrayList())
+ .setTriggerTemplate(RepoSource.newBuilder().build())
+ .setGithub(GitHubEventsConfig.newBuilder().build())
+ .setPubsubConfig(PubsubConfig.newBuilder().build())
+ .setWebhookConfig(WebhookConfig.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setDisabled(true)
+ .putAllSubstitutions(new HashMap())
+ .addAllIgnoredFiles(new ArrayList())
+ .addAllIncludedFiles(new ArrayList())
+ .setFilter("filter-1274492040")
+ .setSourceToBuild(GitRepoSource.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+
+ BuildTrigger actualResponse = client.createBuildTrigger(parent);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void createBuildTriggerExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ client.createBuildTrigger(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createBuildTriggerTest2() throws Exception {
+ BuildTrigger expectedResponse =
+ BuildTrigger.newBuilder()
+ .setResourceName("resourceName-384566343")
+ .setId("id3355")
+ .setDescription("description-1724546052")
+ .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString())
+ .addAllTags(new ArrayList())
+ .setTriggerTemplate(RepoSource.newBuilder().build())
+ .setGithub(GitHubEventsConfig.newBuilder().build())
+ .setPubsubConfig(PubsubConfig.newBuilder().build())
+ .setWebhookConfig(WebhookConfig.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setDisabled(true)
+ .putAllSubstitutions(new HashMap())
+ .addAllIgnoredFiles(new ArrayList())
+ .addAllIncludedFiles(new ArrayList())
+ .setFilter("filter-1274492040")
+ .setSourceToBuild(GitRepoSource.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ ProjectName parent = ProjectName.of("[PROJECT]");
+
+ BuildTrigger actualResponse = client.createBuildTrigger(parent);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void createBuildTriggerExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ ProjectName parent = ProjectName.of("[PROJECT]");
+ client.createBuildTrigger(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createBuildTriggerTest3() throws Exception {
+ BuildTrigger expectedResponse =
+ BuildTrigger.newBuilder()
+ .setResourceName("resourceName-384566343")
+ .setId("id3355")
+ .setDescription("description-1724546052")
+ .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString())
+ .addAllTags(new ArrayList())
+ .setTriggerTemplate(RepoSource.newBuilder().build())
+ .setGithub(GitHubEventsConfig.newBuilder().build())
+ .setPubsubConfig(PubsubConfig.newBuilder().build())
+ .setWebhookConfig(WebhookConfig.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setDisabled(true)
+ .putAllSubstitutions(new HashMap())
+ .addAllIgnoredFiles(new ArrayList())
+ .addAllIncludedFiles(new ArrayList())
+ .setFilter("filter-1274492040")
+ .setSourceToBuild(GitRepoSource.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
+ .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String parent = "parent-995424086";
+
+ BuildTrigger actualResponse = client.createBuildTrigger(parent);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void createBuildTriggerExceptionTest3() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ client.createBuildTrigger(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createBuildTriggerTest4() throws Exception {
+ BuildTrigger expectedResponse =
+ BuildTrigger.newBuilder()
+ .setResourceName("resourceName-384566343")
+ .setId("id3355")
+ .setDescription("description-1724546052")
+ .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString())
+ .addAllTags(new ArrayList())
+ .setTriggerTemplate(RepoSource.newBuilder().build())
+ .setGithub(GitHubEventsConfig.newBuilder().build())
+ .setPubsubConfig(PubsubConfig.newBuilder().build())
+ .setWebhookConfig(WebhookConfig.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setDisabled(true)
+ .putAllSubstitutions(new HashMap())
+ .addAllIgnoredFiles(new ArrayList())
+ .addAllIncludedFiles(new ArrayList())
+ .setFilter("filter-1274492040")
+ .setSourceToBuild(GitRepoSource.newBuilder().build())
.setServiceAccount("serviceAccount1079137720")
- .setAvailableSecrets(Secrets.newBuilder().build())
- .addAllWarnings(new ArrayList())
- .setGitConfig(GitConfig.newBuilder().build())
- .setFailureInfo(Build.FailureInfo.newBuilder().build())
- .addAllDependencies(new ArrayList())
- .build();
- Operation resultOperation =
- Operation.newBuilder()
- .setName("retryBuildTest")
- .setDone(true)
- .setResponse(Any.pack(expectedResponse))
+ .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build())
.build();
- mockService.addResponse(resultOperation);
+ mockService.addResponse(expectedResponse);
String projectId = "projectId-1530";
- String id = "id-4047";
+ BuildTrigger trigger = BuildTrigger.newBuilder().build();
- Build actualResponse = client.retryBuildAsync(projectId, id).get();
+ BuildTrigger actualResponse = client.createBuildTrigger(projectId, trigger);
Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockService.getRequestPaths();
@@ -464,7 +1474,7 @@ public void retryBuildTest() throws Exception {
}
@Test
- public void retryBuildExceptionTest() throws Exception {
+ public void createBuildTriggerExceptionTest4() throws Exception {
ApiException exception =
ApiExceptionFactory.createException(
new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
@@ -472,60 +1482,42 @@ public void retryBuildExceptionTest() throws Exception {
try {
String projectId = "projectId-1530";
- String id = "id-4047";
- client.retryBuildAsync(projectId, id).get();
+ BuildTrigger trigger = BuildTrigger.newBuilder().build();
+ client.createBuildTrigger(projectId, trigger);
Assert.fail("No exception raised");
- } catch (ExecutionException e) {
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
}
}
@Test
- public void approveBuildTest() throws Exception {
- Build expectedResponse =
- Build.newBuilder()
- .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString())
+ public void getBuildTriggerTest() throws Exception {
+ BuildTrigger expectedResponse =
+ BuildTrigger.newBuilder()
+ .setResourceName("resourceName-384566343")
.setId("id3355")
- .setProjectId("projectId-894832108")
- .setStatusDetail("statusDetail1651087075")
- .setSource(Source.newBuilder().build())
- .addAllSteps(new ArrayList())
- .setResults(Results.newBuilder().build())
+ .setDescription("description-1724546052")
+ .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString())
+ .addAllTags(new ArrayList())
+ .setTriggerTemplate(RepoSource.newBuilder().build())
+ .setGithub(GitHubEventsConfig.newBuilder().build())
+ .setPubsubConfig(PubsubConfig.newBuilder().build())
+ .setWebhookConfig(WebhookConfig.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
- .setStartTime(Timestamp.newBuilder().build())
- .setFinishTime(Timestamp.newBuilder().build())
- .setTimeout(Duration.newBuilder().build())
- .addAllImages(new ArrayList())
- .setQueueTtl(Duration.newBuilder().build())
- .setArtifacts(Artifacts.newBuilder().build())
- .setLogsBucket("logsBucket1592573049")
- .setSourceProvenance(SourceProvenance.newBuilder().build())
- .setBuildTriggerId("buildTriggerId781747749")
- .setOptions(BuildOptions.newBuilder().build())
- .setLogUrl("logUrl-1097354357")
+ .setDisabled(true)
.putAllSubstitutions(new HashMap