+ * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogprobsResult() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.LogprobsResult getLogprobsResult() {
+ return logprobsResult_ == null
+ ? com.google.cloud.aiplatform.v1.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.LogprobsResultOrBuilder getLogprobsResultOrBuilder() {
+ return logprobsResult_ == null
+ ? com.google.cloud.aiplatform.v1.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+
public static final int FINISH_REASON_FIELD_NUMBER = 3;
private int finishReason_ = 0;
/**
@@ -652,7 +708,7 @@ public com.google.cloud.aiplatform.v1.SafetyRatingOrBuilder getSafetyRatingsOrBu
*/
@java.lang.Override
public boolean hasFinishMessage() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -720,7 +776,7 @@ public com.google.protobuf.ByteString getFinishMessageBytes() {
*/
@java.lang.Override
public boolean hasCitationMetadata() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -776,7 +832,7 @@ public com.google.cloud.aiplatform.v1.CitationMetadataOrBuilder getCitationMetad
*/
@java.lang.Override
public boolean hasGroundingMetadata() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -843,13 +899,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < safetyRatings_.size(); i++) {
output.writeMessage(4, safetyRatings_.get(i));
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, finishMessage_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getCitationMetadata());
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(7, getGroundingMetadata());
}
if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
@@ -858,6 +914,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (java.lang.Double.doubleToRawLongBits(avgLogprobs_) != 0) {
output.writeDouble(9, avgLogprobs_);
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(10, getLogprobsResult());
+ }
getUnknownFields().writeTo(output);
}
@@ -881,13 +940,13 @@ public int getSerializedSize() {
for (int i = 0; i < safetyRatings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, safetyRatings_.get(i));
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, finishMessage_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCitationMetadata());
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGroundingMetadata());
}
if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
@@ -896,6 +955,9 @@ public int getSerializedSize() {
if (java.lang.Double.doubleToRawLongBits(avgLogprobs_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, avgLogprobs_);
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLogprobsResult());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -920,6 +982,10 @@ public boolean equals(final java.lang.Object obj) {
!= java.lang.Double.doubleToLongBits(other.getScore())) return false;
if (java.lang.Double.doubleToLongBits(getAvgLogprobs())
!= java.lang.Double.doubleToLongBits(other.getAvgLogprobs())) return false;
+ if (hasLogprobsResult() != other.hasLogprobsResult()) return false;
+ if (hasLogprobsResult()) {
+ if (!getLogprobsResult().equals(other.getLogprobsResult())) return false;
+ }
if (finishReason_ != other.finishReason_) return false;
if (!getSafetyRatingsList().equals(other.getSafetyRatingsList())) return false;
if (hasFinishMessage() != other.hasFinishMessage()) return false;
@@ -960,6 +1026,10 @@ public int hashCode() {
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAvgLogprobs()));
+ if (hasLogprobsResult()) {
+ hash = (37 * hash) + LOGPROBS_RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getLogprobsResult().hashCode();
+ }
hash = (37 * hash) + FINISH_REASON_FIELD_NUMBER;
hash = (53 * hash) + finishReason_;
if (getSafetyRatingsCount() > 0) {
@@ -1119,6 +1189,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getContentFieldBuilder();
+ getLogprobsResultFieldBuilder();
getSafetyRatingsFieldBuilder();
getCitationMetadataFieldBuilder();
getGroundingMetadataFieldBuilder();
@@ -1137,6 +1208,11 @@ public Builder clear() {
}
score_ = 0D;
avgLogprobs_ = 0D;
+ logprobsResult_ = null;
+ if (logprobsResultBuilder_ != null) {
+ logprobsResultBuilder_.dispose();
+ logprobsResultBuilder_ = null;
+ }
finishReason_ = 0;
if (safetyRatingsBuilder_ == null) {
safetyRatings_ = java.util.Collections.emptyList();
@@ -1144,7 +1220,7 @@ public Builder clear() {
safetyRatings_ = null;
safetyRatingsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
finishMessage_ = "";
citationMetadata_ = null;
if (citationMetadataBuilder_ != null) {
@@ -1193,9 +1269,9 @@ public com.google.cloud.aiplatform.v1.Candidate buildPartial() {
private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Candidate result) {
if (safetyRatingsBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
safetyRatings_ = java.util.Collections.unmodifiableList(safetyRatings_);
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
}
result.safetyRatings_ = safetyRatings_;
} else {
@@ -1220,23 +1296,28 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Candidate result) {
result.avgLogprobs_ = avgLogprobs_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.logprobsResult_ =
+ logprobsResultBuilder_ == null ? logprobsResult_ : logprobsResultBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.finishReason_ = finishReason_;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.finishMessage_ = finishMessage_;
- to_bitField0_ |= 0x00000002;
+ to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.citationMetadata_ =
citationMetadataBuilder_ == null ? citationMetadata_ : citationMetadataBuilder_.build();
- to_bitField0_ |= 0x00000004;
+ to_bitField0_ |= 0x00000008;
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
result.groundingMetadata_ =
groundingMetadataBuilder_ == null
? groundingMetadata_
: groundingMetadataBuilder_.build();
- to_bitField0_ |= 0x00000008;
+ to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1298,6 +1379,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
if (other.getAvgLogprobs() != 0D) {
setAvgLogprobs(other.getAvgLogprobs());
}
+ if (other.hasLogprobsResult()) {
+ mergeLogprobsResult(other.getLogprobsResult());
+ }
if (other.finishReason_ != 0) {
setFinishReasonValue(other.getFinishReasonValue());
}
@@ -1305,7 +1389,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
if (!other.safetyRatings_.isEmpty()) {
if (safetyRatings_.isEmpty()) {
safetyRatings_ = other.safetyRatings_;
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureSafetyRatingsIsMutable();
safetyRatings_.addAll(other.safetyRatings_);
@@ -1318,7 +1402,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
safetyRatingsBuilder_.dispose();
safetyRatingsBuilder_ = null;
safetyRatings_ = other.safetyRatings_;
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
safetyRatingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSafetyRatingsFieldBuilder()
@@ -1330,7 +1414,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
}
if (other.hasFinishMessage()) {
finishMessage_ = other.finishMessage_;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasCitationMetadata()) {
@@ -1380,7 +1464,7 @@ public Builder mergeFrom(
case 24:
{
finishReason_ = input.readEnum();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 24
case 34:
@@ -1399,21 +1483,21 @@ public Builder mergeFrom(
case 42:
{
finishMessage_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 42
case 50:
{
input.readMessage(
getCitationMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 50
case 58:
{
input.readMessage(
getGroundingMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 58
case 65:
@@ -1428,6 +1512,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 73
+ case 82:
+ {
+ input.readMessage(getLogprobsResultFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 82
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1809,6 +1899,211 @@ public Builder clearAvgLogprobs() {
return this;
}
+ private com.google.cloud.aiplatform.v1.LogprobsResult logprobsResult_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.LogprobsResult,
+ com.google.cloud.aiplatform.v1.LogprobsResult.Builder,
+ com.google.cloud.aiplatform.v1.LogprobsResultOrBuilder>
+ logprobsResultBuilder_;
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ public boolean hasLogprobsResult() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult getLogprobsResult() {
+ if (logprobsResultBuilder_ == null) {
+ return logprobsResult_ == null
+ ? com.google.cloud.aiplatform.v1.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ } else {
+ return logprobsResultBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLogprobsResult(com.google.cloud.aiplatform.v1.LogprobsResult value) {
+ if (logprobsResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ logprobsResult_ = value;
+ } else {
+ logprobsResultBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLogprobsResult(
+ com.google.cloud.aiplatform.v1.LogprobsResult.Builder builderForValue) {
+ if (logprobsResultBuilder_ == null) {
+ logprobsResult_ = builderForValue.build();
+ } else {
+ logprobsResultBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeLogprobsResult(com.google.cloud.aiplatform.v1.LogprobsResult value) {
+ if (logprobsResultBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && logprobsResult_ != null
+ && logprobsResult_
+ != com.google.cloud.aiplatform.v1.LogprobsResult.getDefaultInstance()) {
+ getLogprobsResultBuilder().mergeFrom(value);
+ } else {
+ logprobsResult_ = value;
+ }
+ } else {
+ logprobsResultBuilder_.mergeFrom(value);
+ }
+ if (logprobsResult_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearLogprobsResult() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ logprobsResult_ = null;
+ if (logprobsResultBuilder_ != null) {
+ logprobsResultBuilder_.dispose();
+ logprobsResultBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Builder getLogprobsResultBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getLogprobsResultFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResultOrBuilder getLogprobsResultOrBuilder() {
+ if (logprobsResultBuilder_ != null) {
+ return logprobsResultBuilder_.getMessageOrBuilder();
+ } else {
+ return logprobsResult_ == null
+ ? com.google.cloud.aiplatform.v1.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.LogprobsResult,
+ com.google.cloud.aiplatform.v1.LogprobsResult.Builder,
+ com.google.cloud.aiplatform.v1.LogprobsResultOrBuilder>
+ getLogprobsResultFieldBuilder() {
+ if (logprobsResultBuilder_ == null) {
+ logprobsResultBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.LogprobsResult,
+ com.google.cloud.aiplatform.v1.LogprobsResult.Builder,
+ com.google.cloud.aiplatform.v1.LogprobsResultOrBuilder>(
+ getLogprobsResult(), getParentForChildren(), isClean());
+ logprobsResult_ = null;
+ }
+ return logprobsResultBuilder_;
+ }
+
private int finishReason_ = 0;
/**
*
@@ -1845,7 +2140,7 @@ public int getFinishReasonValue() {
*/
public Builder setFinishReasonValue(int value) {
finishReason_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1890,7 +2185,7 @@ public Builder setFinishReason(com.google.cloud.aiplatform.v1.Candidate.FinishRe
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
finishReason_ = value.getNumber();
onChanged();
return this;
@@ -1910,7 +2205,7 @@ public Builder setFinishReason(com.google.cloud.aiplatform.v1.Candidate.FinishRe
* @return This builder for chaining.
*/
public Builder clearFinishReason() {
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
finishReason_ = 0;
onChanged();
return this;
@@ -1920,10 +2215,10 @@ public Builder clearFinishReason() {
java.util.Collections.emptyList();
private void ensureSafetyRatingsIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
+ if (!((bitField0_ & 0x00000040) != 0)) {
safetyRatings_ =
new java.util.ArrayList+ * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ boolean hasLogprobsResult();
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ com.google.cloud.aiplatform.v1.LogprobsResult getLogprobsResult();
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1.LogprobsResultOrBuilder getLogprobsResultOrBuilder();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
index 59f26e146a66..ca9d0c9e2bdb 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
@@ -84,6 +84,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_Candidate_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_Candidate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_Candidate_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_Candidate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_TopCandidates_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_TopCandidates_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_Segment_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -145,123 +157,138 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "VideoMetadata\0224\n\014start_offset\030\001 \001(\0132\031.go"
+ "ogle.protobuf.DurationB\003\340A\001\0222\n\nend_offse"
+ "t\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\""
- + "\335\t\n\020GenerationConfig\022\035\n\013temperature\030\001 \001("
+ + "\301\n\n\020GenerationConfig\022\035\n\013temperature\030\001 \001("
+ "\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005"
+ "top_k\030\003 \001(\002B\003\340A\001H\002\210\001\001\022!\n\017candidate_count"
+ "\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021max_output_tokens\030\005 "
+ "\001(\005B\003\340A\001H\004\210\001\001\022\033\n\016stop_sequences\030\006 \003(\tB\003\340"
- + "A\001\022\"\n\020presence_penalty\030\010 \001(\002B\003\340A\001H\005\210\001\001\022#"
- + "\n\021frequency_penalty\030\t \001(\002B\003\340A\001H\006\210\001\001\022\026\n\004s"
- + "eed\030\014 \001(\005B\003\340A\001H\007\210\001\001\022\037\n\022response_mime_typ"
- + "e\030\r \001(\tB\003\340A\001\022E\n\017response_schema\030\020 \001(\0132\"."
- + "google.cloud.aiplatform.v1.SchemaB\003\340A\001H\010"
- + "\210\001\001\022\\\n\016routing_config\030\021 \001(\0132:.google.clo"
- + "ud.aiplatform.v1.GenerationConfig.Routin"
- + "gConfigB\003\340A\001H\t\210\001\001\032\302\004\n\rRoutingConfig\022_\n\ta"
- + "uto_mode\030\001 \001(\0132J.google.cloud.aiplatform"
- + ".v1.GenerationConfig.RoutingConfig.AutoR"
- + "outingModeH\000\022c\n\013manual_mode\030\002 \001(\0132L.goog"
+ + "A\001\022#\n\021response_logprobs\030\022 \001(\010B\003\340A\001H\005\210\001\001\022"
+ + "\032\n\010logprobs\030\007 \001(\005B\003\340A\001H\006\210\001\001\022\"\n\020presence_"
+ + "penalty\030\010 \001(\002B\003\340A\001H\007\210\001\001\022#\n\021frequency_pen"
+ + "alty\030\t \001(\002B\003\340A\001H\010\210\001\001\022\026\n\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\022E\n"
+ + "\017response_schema\030\020 \001(\0132\".google.cloud.ai"
+ + "platform.v1.SchemaB\003\340A\001H\n\210\001\001\022\\\n\016routing_"
+ + "config\030\021 \001(\0132:.google.cloud.aiplatform.v"
+ + "1.GenerationConfig.RoutingConfigB\003\340A\001H\013\210"
+ + "\001\001\032\302\004\n\rRoutingConfig\022_\n\tauto_mode\030\001 \001(\0132"
+ + "J.google.cloud.aiplatform.v1.GenerationC"
+ + "onfig.RoutingConfig.AutoRoutingModeH\000\022c\n"
+ + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplat"
+ + "form.v1.GenerationConfig.RoutingConfig.M"
+ + "anualRoutingModeH\000\032\233\002\n\017AutoRoutingMode\022\210"
+ + "\001\n\030model_routing_preference\030\001 \001(\0162a.goog"
+ "le.cloud.aiplatform.v1.GenerationConfig."
- + "RoutingConfig.ManualRoutingModeH\000\032\233\002\n\017Au"
- + "toRoutingMode\022\210\001\n\030model_routing_preferen"
- + "ce\030\001 \001(\0162a.google.cloud.aiplatform.v1.Ge"
- + "nerationConfig.RoutingConfig.AutoRouting"
- + "Mode.ModelRoutingPreferenceH\000\210\001\001\"`\n\026Mode"
- + "lRoutingPreference\022\013\n\007UNKNOWN\020\000\022\026\n\022PRIOR"
- + "ITIZE_QUALITY\020\001\022\014\n\010BALANCED\020\002\022\023\n\017PRIORIT"
- + "IZE_COST\020\003B\033\n\031_model_routing_preference\032"
- + ";\n\021ManualRoutingMode\022\027\n\nmodel_name\030\001 \001(\t"
- + "H\000\210\001\001B\r\n\013_model_nameB\020\n\016routing_configB\016"
- + "\n\014_temperatureB\010\n\006_top_pB\010\n\006_top_kB\022\n\020_c"
- + "andidate_countB\024\n\022_max_output_tokensB\023\n\021"
- + "_presence_penaltyB\024\n\022_frequency_penaltyB"
- + "\007\n\005_seedB\022\n\020_response_schemaB\021\n\017_routing"
- + "_config\"\353\003\n\rSafetySetting\022?\n\010category\030\001 "
- + "\001(\0162(.google.cloud.aiplatform.v1.HarmCat"
- + "egoryB\003\340A\002\022T\n\tthreshold\030\002 \001(\0162<.google.c"
- + "loud.aiplatform.v1.SafetySetting.HarmBlo"
- + "ckThresholdB\003\340A\002\022N\n\006method\030\004 \001(\01629.googl"
- + "e.cloud.aiplatform.v1.SafetySetting.Harm"
- + "BlockMethodB\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\026BLOCK_MEDIUM_A"
- + "ND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK"
- + "_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017HarmBlockMethod\022!\n\035H"
- + "ARM_BLOCK_METHOD_UNSPECIFIED\020\000\022\014\n\010SEVERI"
- + "TY\020\001\022\017\n\013PROBABILITY\020\002\"\277\004\n\014SafetyRating\022?"
- + "\n\010category\030\001 \001(\0162(.google.cloud.aiplatfo"
- + "rm.v1.HarmCategoryB\003\340A\003\022R\n\013probability\030\002"
- + " \001(\01628.google.cloud.aiplatform.v1.Safety"
- + "Rating.HarmProbabilityB\003\340A\003\022\036\n\021probabili"
- + "ty_score\030\005 \001(\002B\003\340A\003\022L\n\010severity\030\006 \001(\01625."
- + "google.cloud.aiplatform.v1.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\017HarmProb"
- + "ability\022 \n\034HARM_PROBABILITY_UNSPECIFIED\020"
- + "\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010"
- + "\n\004HIGH\020\004\"\224\001\n\014HarmSeverity\022\035\n\031HARM_SEVERI"
- + "TY_UNSPECIFIED\020\000\022\034\n\030HARM_SEVERITY_NEGLIG"
- + "IBLE\020\001\022\025\n\021HARM_SEVERITY_LOW\020\002\022\030\n\024HARM_SE"
- + "VERITY_MEDIUM\020\003\022\026\n\022HARM_SEVERITY_HIGH\020\004\""
- + "P\n\020CitationMetadata\022<\n\tcitations\030\001 \003(\0132$"
- + ".google.cloud.aiplatform.v1.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\003uri\030\003 \001(\tB\003\340"
- + "A\003\022\022\n\005title\030\004 \001(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB"
- + "\003\340A\003\0220\n\020publication_date\030\006 \001(\0132\021.google."
- + "type.DateB\003\340A\003\"\262\005\n\tCandidate\022\022\n\005index\030\001 "
- + "\001(\005B\003\340A\003\0229\n\007content\030\002 \001(\0132#.google.cloud"
- + ".aiplatform.v1.ContentB\003\340A\003\022\022\n\005score\030\010 \001"
- + "(\001B\003\340A\003\022\031\n\014avg_logprobs\030\t \001(\001B\003\340A\003\022N\n\rfi"
- + "nish_reason\030\003 \001(\01622.google.cloud.aiplatf"
- + "orm.v1.Candidate.FinishReasonB\003\340A\003\022E\n\016sa"
- + "fety_ratings\030\004 \003(\0132(.google.cloud.aiplat"
- + "form.v1.SafetyRatingB\003\340A\003\022 \n\016finish_mess"
- + "age\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n\021citation_metadata"
- + "\030\006 \001(\0132,.google.cloud.aiplatform.v1.Cita"
- + "tionMetadataB\003\340A\003\022N\n\022grounding_metadata\030"
- + "\007 \001(\0132-.google.cloud.aiplatform.v1.Groun"
- + "dingMetadataB\003\340A\003\"\274\001\n\014FinishReason\022\035\n\031FI"
- + "NISH_REASON_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nM"
- + "AX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022"
- + "\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITED_"
- + "CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MALFORMED_FUNCTIO"
- + "N_CALL\020\tB\021\n\017_finish_message\"g\n\007Segment\022\027"
- + "\n\npart_index\030\001 \001(\005B\003\340A\003\022\030\n\013start_index\030\002"
- + " \001(\005B\003\340A\003\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022\021\n\004tex"
- + "t\030\004 \001(\tB\003\340A\003\"\302\002\n\016GroundingChunk\022=\n\003web\030\001"
- + " \001(\0132..google.cloud.aiplatform.v1.Ground"
- + "ingChunk.WebH\000\022X\n\021retrieved_context\030\002 \001("
- + "\0132;.google.cloud.aiplatform.v1.Grounding"
- + "Chunk.RetrievedContextH\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\004_uriB\010\n"
- + "\006_title\032J\n\020RetrievedContext\022\020\n\003uri\030\001 \001(\t"
- + "H\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_ti"
- + "tleB\014\n\nchunk_type\"\225\001\n\020GroundingSupport\0229"
- + "\n\007segment\030\001 \001(\0132#.google.cloud.aiplatfor"
- + "m.v1.SegmentH\000\210\001\001\022\037\n\027grounding_chunk_ind"
- + "ices\030\002 \003(\005\022\031\n\021confidence_scores\030\003 \003(\002B\n\n"
- + "\010_segment\"\264\002\n\021GroundingMetadata\022\037\n\022web_s"
- + "earch_queries\030\001 \003(\tB\003\340A\001\022R\n\022search_entry"
- + "_point\030\004 \001(\0132,.google.cloud.aiplatform.v"
- + "1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n\020groundin"
- + "g_chunks\030\005 \003(\0132*.google.cloud.aiplatform"
- + ".v1.GroundingChunk\022M\n\022grounding_supports"
- + "\030\006 \003(\0132,.google.cloud.aiplatform.v1.Grou"
- + "ndingSupportB\003\340A\001B\025\n\023_search_entry_point"
- + "\"H\n\020SearchEntryPoint\022\035\n\020rendered_content"
- + "\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001*\327\001\n\014H"
- + "armCategory\022\035\n\031HARM_CATEGORY_UNSPECIFIED"
- + "\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HAR"
- + "M_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_C"
- + "ATEGORY_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SE"
- + "XUALLY_EXPLICIT\020\004\022!\n\035HARM_CATEGORY_CIVIC"
- + "_INTEGRITY\020\005B\312\001\n\036com.google.cloud.aiplat"
- + "form.v1B\014ContentProtoP\001Z>cloud.google.co"
- + "m/go/aiplatform/apiv1/aiplatformpb;aipla"
- + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G"
- + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou"
- + "d::AIPlatform::V1b\006proto3"
+ + "RoutingConfig.AutoRoutingMode.ModelRouti"
+ + "ngPreferenceH\000\210\001\001\"`\n\026ModelRoutingPrefere"
+ + "nce\022\013\n\007UNKNOWN\020\000\022\026\n\022PRIORITIZE_QUALITY\020\001"
+ + "\022\014\n\010BALANCED\020\002\022\023\n\017PRIORITIZE_COST\020\003B\033\n\031_"
+ + "model_routing_preference\032;\n\021ManualRoutin"
+ + "gMode\022\027\n\nmodel_name\030\001 \001(\tH\000\210\001\001B\r\n\013_model"
+ + "_nameB\020\n\016routing_configB\016\n\014_temperatureB"
+ + "\010\n\006_top_pB\010\n\006_top_kB\022\n\020_candidate_countB"
+ + "\024\n\022_max_output_tokensB\024\n\022_response_logpr"
+ + "obsB\013\n\t_logprobsB\023\n\021_presence_penaltyB\024\n"
+ + "\022_frequency_penaltyB\007\n\005_seedB\022\n\020_respons"
+ + "e_schemaB\021\n\017_routing_config\"\353\003\n\rSafetySe"
+ + "tting\022?\n\010category\030\001 \001(\0162(.google.cloud.a"
+ + "iplatform.v1.HarmCategoryB\003\340A\002\022T\n\tthresh"
+ + "old\030\002 \001(\0162<.google.cloud.aiplatform.v1.S"
+ + "afetySetting.HarmBlockThresholdB\003\340A\002\022N\n\006"
+ + "method\030\004 \001(\01629.google.cloud.aiplatform.v"
+ + "1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n"
+ + "\022HarmBlockThreshold\022$\n HARM_BLOCK_THRESH"
+ + "OLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE"
+ + "\020\001\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020\002\022\023\n\017BLOCK_"
+ + "ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017"
+ + "HarmBlockMethod\022!\n\035HARM_BLOCK_METHOD_UNS"
+ + "PECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBABILITY\020"
+ + "\002\"\277\004\n\014SafetyRating\022?\n\010category\030\001 \001(\0162(.g"
+ + "oogle.cloud.aiplatform.v1.HarmCategoryB\003"
+ + "\340A\003\022R\n\013probability\030\002 \001(\01628.google.cloud."
+ + "aiplatform.v1.SafetyRating.HarmProbabili"
+ + "tyB\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340A\003\022"
+ + "L\n\010severity\030\006 \001(\01625.google.cloud.aiplatf"
+ + "orm.v1.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_PROB"
+ + "ABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n"
+ + "\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSev"
+ + "erity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n\030"
+ + "HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVER"
+ + "ITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026\n\022H"
+ + "ARM_SEVERITY_HIGH\020\004\"P\n\020CitationMetadata\022"
+ + "<\n\tcitations\030\001 \003(\0132$.google.cloud.aiplat"
+ + "form.v1.CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013st"
+ + "art_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001(\005B"
+ + "\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340"
+ + "A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publication_"
+ + "date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\374\005\n\tC"
+ + "andidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0229\n\007content\030"
+ + "\002 \001(\0132#.google.cloud.aiplatform.v1.Conte"
+ + "ntB\003\340A\003\022\022\n\005score\030\010 \001(\001B\003\340A\003\022\031\n\014avg_logpr"
+ + "obs\030\t \001(\001B\003\340A\003\022H\n\017logprobs_result\030\n \001(\0132"
+ + "*.google.cloud.aiplatform.v1.LogprobsRes"
+ + "ultB\003\340A\003\022N\n\rfinish_reason\030\003 \001(\01622.google"
+ + ".cloud.aiplatform.v1.Candidate.FinishRea"
+ + "sonB\003\340A\003\022E\n\016safety_ratings\030\004 \003(\0132(.googl"
+ + "e.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022"
+ + " \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n\021cit"
+ + "ation_metadata\030\006 \001(\0132,.google.cloud.aipl"
+ + "atform.v1.CitationMetadataB\003\340A\003\022N\n\022groun"
+ + "ding_metadata\030\007 \001(\0132-.google.cloud.aipla"
+ + "tform.v1.GroundingMetadataB\003\340A\003\"\274\001\n\014Fini"
+ + "shReason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022"
+ + "\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n"
+ + "\nRECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022"
+ + "\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MAL"
+ + "FORMED_FUNCTION_CALL\020\tB\021\n\017_finish_messag"
+ + "e\"\217\003\n\016LogprobsResult\022P\n\016top_candidates\030\001"
+ + " \003(\01328.google.cloud.aiplatform.v1.Logpro"
+ + "bsResult.TopCandidates\022O\n\021chosen_candida"
+ + "tes\030\002 \003(\01324.google.cloud.aiplatform.v1.L"
+ + "ogprobsResult.Candidate\032\177\n\tCandidate\022\022\n\005"
+ + "token\030\001 \001(\tH\000\210\001\001\022\025\n\010token_id\030\003 \001(\005H\001\210\001\001\022"
+ + "\034\n\017log_probability\030\002 \001(\002H\002\210\001\001B\010\n\006_tokenB"
+ + "\013\n\t_token_idB\022\n\020_log_probability\032Y\n\rTopC"
+ + "andidates\022H\n\ncandidates\030\001 \003(\01324.google.c"
+ + "loud.aiplatform.v1.LogprobsResult.Candid"
+ + "ate\"g\n\007Segment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022"
+ + "\030\n\013start_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003"
+ + " \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003\340A\003\"\302\002\n\016Groundi"
+ + "ngChunk\022=\n\003web\030\001 \001(\0132..google.cloud.aipl"
+ + "atform.v1.GroundingChunk.WebH\000\022X\n\021retrie"
+ + "ved_context\030\002 \001(\0132;.google.cloud.aiplatf"
+ + "orm.v1.GroundingChunk.RetrievedContextH\000"
+ + "\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\t"
+ + "H\001\210\001\001B\006\n\004_uriB\010\n\006_title\032J\n\020RetrievedCont"
+ + "ext\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\004_uriB\010\n\006_titleB\014\n\nchunk_type\"\225\001\n\020Gr"
+ + "oundingSupport\0229\n\007segment\030\001 \001(\0132#.google"
+ + ".cloud.aiplatform.v1.SegmentH\000\210\001\001\022\037\n\027gro"
+ + "unding_chunk_indices\030\002 \003(\005\022\031\n\021confidence"
+ + "_scores\030\003 \003(\002B\n\n\010_segment\"\264\002\n\021GroundingM"
+ + "etadata\022\037\n\022web_search_queries\030\001 \003(\tB\003\340A\001"
+ + "\022R\n\022search_entry_point\030\004 \001(\0132,.google.cl"
+ + "oud.aiplatform.v1.SearchEntryPointB\003\340A\001H"
+ + "\000\210\001\001\022D\n\020grounding_chunks\030\005 \003(\0132*.google."
+ + "cloud.aiplatform.v1.GroundingChunk\022M\n\022gr"
+ + "ounding_supports\030\006 \003(\0132,.google.cloud.ai"
+ + "platform.v1.GroundingSupportB\003\340A\001B\025\n\023_se"
+ + "arch_entry_point\"H\n\020SearchEntryPoint\022\035\n\020"
+ + "rendered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030"
+ + "\002 \001(\014B\003\340A\001*\327\001\n\014HarmCategory\022\035\n\031HARM_CATE"
+ + "GORY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE"
+ + "_SPEECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CON"
+ + "TENT\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037"
+ + "HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\022!\n\035HAR"
+ + "M_CATEGORY_CIVIC_INTEGRITY\020\005B\312\001\n\036com.goo"
+ + "gle.cloud.aiplatform.v1B\014ContentProtoP\001Z"
+ + ">cloud.google.com/go/aiplatform/apiv1/ai"
+ + "platformpb;aiplatformpb\252\002\032Google.Cloud.A"
+ + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V"
+ + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto"
+ + "3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -332,6 +359,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CandidateCount",
"MaxOutputTokens",
"StopSequences",
+ "ResponseLogprobs",
+ "Logprobs",
"PresencePenalty",
"FrequencyPenalty",
"Seed",
@@ -411,14 +440,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Content",
"Score",
"AvgLogprobs",
+ "LogprobsResult",
"FinishReason",
"SafetyRatings",
"FinishMessage",
"CitationMetadata",
"GroundingMetadata",
});
- internal_static_google_cloud_aiplatform_v1_Segment_descriptor =
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_descriptor =
getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_descriptor,
+ new java.lang.String[] {
+ "TopCandidates", "ChosenCandidates",
+ });
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_Candidate_descriptor =
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_Candidate_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_Candidate_descriptor,
+ new java.lang.String[] {
+ "Token", "TokenId", "LogProbability",
+ });
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_TopCandidates_descriptor =
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_TopCandidates_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_LogprobsResult_TopCandidates_descriptor,
+ new java.lang.String[] {
+ "Candidates",
+ });
+ internal_static_google_cloud_aiplatform_v1_Segment_descriptor =
+ getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_Segment_descriptor,
@@ -426,7 +484,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PartIndex", "StartIndex", "EndIndex", "Text",
});
internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(13);
internal_static_google_cloud_aiplatform_v1_GroundingChunk_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor,
@@ -454,7 +512,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Uri", "Title",
});
internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_aiplatform_v1_GroundingSupport_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor,
@@ -462,7 +520,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Segment", "GroundingChunkIndices", "ConfidenceScores",
});
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor,
@@ -470,7 +528,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"WebSearchQueries", "SearchEntryPoint", "GroundingChunks", "GroundingSupports",
});
internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java
index e231d4302891..ece1b134b5df 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java
@@ -40,6 +40,7 @@ private GenerateContentResponse(com.google.protobuf.GeneratedMessageV3.Builder
private GenerateContentResponse() {
candidates_ = java.util.Collections.emptyList();
+ modelVersion_ = "";
}
@java.lang.Override
@@ -2606,6 +2607,57 @@ public com.google.cloud.aiplatform.v1.CandidateOrBuilder getCandidatesOrBuilder(
return candidates_.get(index);
}
+ public static final int MODEL_VERSION_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object modelVersion_ = "";
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The modelVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getModelVersion() {
+ java.lang.Object ref = modelVersion_;
+ 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();
+ modelVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for modelVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getModelVersionBytes() {
+ java.lang.Object ref = modelVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ modelVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PROMPT_FEEDBACK_FIELD_NUMBER = 3;
private com.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback promptFeedback_;
/**
@@ -2746,6 +2798,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getUsageMetadata());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, modelVersion_);
+ }
getUnknownFields().writeTo(output);
}
@@ -2764,6 +2819,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUsageMetadata());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, modelVersion_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2781,6 +2839,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.aiplatform.v1.GenerateContentResponse) obj;
if (!getCandidatesList().equals(other.getCandidatesList())) return false;
+ if (!getModelVersion().equals(other.getModelVersion())) return false;
if (hasPromptFeedback() != other.hasPromptFeedback()) return false;
if (hasPromptFeedback()) {
if (!getPromptFeedback().equals(other.getPromptFeedback())) return false;
@@ -2804,6 +2863,8 @@ public int hashCode() {
hash = (37 * hash) + CANDIDATES_FIELD_NUMBER;
hash = (53 * hash) + getCandidatesList().hashCode();
}
+ hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getModelVersion().hashCode();
if (hasPromptFeedback()) {
hash = (37 * hash) + PROMPT_FEEDBACK_FIELD_NUMBER;
hash = (53 * hash) + getPromptFeedback().hashCode();
@@ -2970,6 +3031,7 @@ public Builder clear() {
candidatesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
+ modelVersion_ = "";
promptFeedback_ = null;
if (promptFeedbackBuilder_ != null) {
promptFeedbackBuilder_.dispose();
@@ -3030,13 +3092,16 @@ private void buildPartialRepeatedFields(
private void buildPartial0(com.google.cloud.aiplatform.v1.GenerateContentResponse result) {
int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.modelVersion_ = modelVersion_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
result.promptFeedback_ =
promptFeedbackBuilder_ == null ? promptFeedback_ : promptFeedbackBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.usageMetadata_ =
usageMetadataBuilder_ == null ? usageMetadata_ : usageMetadataBuilder_.build();
to_bitField0_ |= 0x00000002;
@@ -3117,6 +3182,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerateContentResponse
}
}
}
+ if (!other.getModelVersion().isEmpty()) {
+ modelVersion_ = other.modelVersion_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
if (other.hasPromptFeedback()) {
mergePromptFeedback(other.getPromptFeedback());
}
@@ -3165,15 +3235,21 @@ public Builder mergeFrom(
case 26:
{
input.readMessage(getPromptFeedbackFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getUsageMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 34
+ case 90:
+ {
+ modelVersion_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 90
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3579,6 +3655,112 @@ public com.google.cloud.aiplatform.v1.Candidate.Builder addCandidatesBuilder(int
return candidatesBuilder_;
}
+ private java.lang.Object modelVersion_ = "";
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The modelVersion.
+ */
+ public java.lang.String getModelVersion() {
+ java.lang.Object ref = modelVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ modelVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for modelVersion.
+ */
+ public com.google.protobuf.ByteString getModelVersionBytes() {
+ java.lang.Object ref = modelVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ modelVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The modelVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ modelVersion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearModelVersion() {
+ modelVersion_ = getDefaultInstance().getModelVersion();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for modelVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ modelVersion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
private com.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback promptFeedback_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback,
@@ -3601,7 +3783,7 @@ public com.google.cloud.aiplatform.v1.Candidate.Builder addCandidatesBuilder(int
* @return Whether the promptFeedback field is set.
*/
public boolean hasPromptFeedback() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -3652,7 +3834,7 @@ public Builder setPromptFeedback(
} else {
promptFeedbackBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3677,7 +3859,7 @@ public Builder setPromptFeedback(
} else {
promptFeedbackBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3697,7 +3879,7 @@ public Builder setPromptFeedback(
public Builder mergePromptFeedback(
com.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback value) {
if (promptFeedbackBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
+ if (((bitField0_ & 0x00000004) != 0)
&& promptFeedback_ != null
&& promptFeedback_
!= com.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback
@@ -3710,7 +3892,7 @@ public Builder mergePromptFeedback(
promptFeedbackBuilder_.mergeFrom(value);
}
if (promptFeedback_ != null) {
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
}
return this;
@@ -3729,7 +3911,7 @@ public Builder mergePromptFeedback(
*
*/
public Builder clearPromptFeedback() {
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
promptFeedback_ = null;
if (promptFeedbackBuilder_ != null) {
promptFeedbackBuilder_.dispose();
@@ -3753,7 +3935,7 @@ public Builder clearPromptFeedback() {
*/
public com.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.Builder
getPromptFeedbackBuilder() {
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return getPromptFeedbackFieldBuilder().getBuilder();
}
@@ -3830,7 +4012,7 @@ public Builder clearPromptFeedback() {
* @return Whether the usageMetadata field is set.
*/
public boolean hasUsageMetadata() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -3874,7 +4056,7 @@ public Builder setUsageMetadata(
} else {
usageMetadataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -3896,7 +4078,7 @@ public Builder setUsageMetadata(
} else {
usageMetadataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -3913,7 +4095,7 @@ public Builder setUsageMetadata(
public Builder mergeUsageMetadata(
com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata value) {
if (usageMetadataBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
+ if (((bitField0_ & 0x00000008) != 0)
&& usageMetadata_ != null
&& usageMetadata_
!= com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata
@@ -3926,7 +4108,7 @@ public Builder mergeUsageMetadata(
usageMetadataBuilder_.mergeFrom(value);
}
if (usageMetadata_ != null) {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
return this;
@@ -3942,7 +4124,7 @@ public Builder mergeUsageMetadata(
*
*/
public Builder clearUsageMetadata() {
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
usageMetadata_ = null;
if (usageMetadataBuilder_ != null) {
usageMetadataBuilder_.dispose();
@@ -3963,7 +4145,7 @@ public Builder clearUsageMetadata() {
*/
public com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata.Builder
getUsageMetadataBuilder() {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return getUsageMetadataFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponseOrBuilder.java
index 3c9d410c0980..1be0ac79470b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponseOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponseOrBuilder.java
@@ -86,6 +86,31 @@ public interface GenerateContentResponseOrBuilder
*/
com.google.cloud.aiplatform.v1.CandidateOrBuilder getCandidatesOrBuilder(int index);
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The modelVersion.
+ */
+ java.lang.String getModelVersion();
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for modelVersion.
+ */
+ com.google.protobuf.ByteString getModelVersionBytes();
+
/**
*
*
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 83b2bea42bd8..304d6b1a7099 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
@@ -3282,6 +3282,72 @@ public com.google.protobuf.ByteString getStopSequencesBytes(int index) {
return stopSequences_.getByteString(index);
}
+ public static final int RESPONSE_LOGPROBS_FIELD_NUMBER = 18;
+ private boolean responseLogprobs_ = false;
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the responseLogprobs field is set.
+ */
+ @java.lang.Override
+ public boolean hasResponseLogprobs() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The responseLogprobs.
+ */
+ @java.lang.Override
+ public boolean getResponseLogprobs() {
+ return responseLogprobs_;
+ }
+
+ public static final int LOGPROBS_FIELD_NUMBER = 7;
+ private int logprobs_ = 0;
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the logprobs field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogprobs() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The logprobs.
+ */
+ @java.lang.Override
+ public int getLogprobs() {
+ return logprobs_;
+ }
+
public static final int PRESENCE_PENALTY_FIELD_NUMBER = 8;
private float presencePenalty_ = 0F;
/**
@@ -3297,7 +3363,7 @@ public com.google.protobuf.ByteString getStopSequencesBytes(int index) {
*/
@java.lang.Override
public boolean hasPresencePenalty() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -3330,7 +3396,7 @@ public float getPresencePenalty() {
*/
@java.lang.Override
public boolean hasFrequencyPenalty() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -3363,7 +3429,7 @@ public float getFrequencyPenalty() {
*/
@java.lang.Override
public boolean hasSeed() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
@@ -3467,7 +3533,7 @@ public com.google.protobuf.ByteString getResponseMimeTypeBytes() {
*/
@java.lang.Override
public boolean hasResponseSchema() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
@@ -3535,7 +3601,7 @@ public com.google.cloud.aiplatform.v1.SchemaOrBuilder getResponseSchemaOrBuilder
*/
@java.lang.Override
public boolean hasRoutingConfig() {
- return ((bitField0_ & 0x00000200) != 0);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
*
@@ -3607,24 +3673,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < stopSequences_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stopSequences_.getRaw(i));
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeInt32(7, logprobs_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
output.writeFloat(8, presencePenalty_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
output.writeFloat(9, frequencyPenalty_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt32(12, seed_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, responseMimeType_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(16, getResponseSchema());
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(17, getRoutingConfig());
}
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeBool(18, responseLogprobs_);
+ }
getUnknownFields().writeTo(output);
}
@@ -3657,24 +3729,30 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getStopSequencesList().size();
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, logprobs_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, presencePenalty_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, frequencyPenalty_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, seed_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, responseMimeType_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getResponseSchema());
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getRoutingConfig());
}
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3715,6 +3793,14 @@ public boolean equals(final java.lang.Object obj) {
if (getMaxOutputTokens() != other.getMaxOutputTokens()) return false;
}
if (!getStopSequencesList().equals(other.getStopSequencesList())) return false;
+ if (hasResponseLogprobs() != other.hasResponseLogprobs()) return false;
+ if (hasResponseLogprobs()) {
+ if (getResponseLogprobs() != other.getResponseLogprobs()) return false;
+ }
+ if (hasLogprobs() != other.hasLogprobs()) return false;
+ if (hasLogprobs()) {
+ if (getLogprobs() != other.getLogprobs()) return false;
+ }
if (hasPresencePenalty() != other.hasPresencePenalty()) return false;
if (hasPresencePenalty()) {
if (java.lang.Float.floatToIntBits(getPresencePenalty())
@@ -3773,6 +3859,14 @@ public int hashCode() {
hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER;
hash = (53 * hash) + getStopSequencesList().hashCode();
}
+ if (hasResponseLogprobs()) {
+ hash = (37 * hash) + RESPONSE_LOGPROBS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResponseLogprobs());
+ }
+ if (hasLogprobs()) {
+ hash = (37 * hash) + LOGPROBS_FIELD_NUMBER;
+ hash = (53 * hash) + getLogprobs();
+ }
if (hasPresencePenalty()) {
hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getPresencePenalty());
@@ -3950,6 +4044,8 @@ public Builder clear() {
candidateCount_ = 0;
maxOutputTokens_ = 0;
stopSequences_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ responseLogprobs_ = false;
+ logprobs_ = 0;
presencePenalty_ = 0F;
frequencyPenalty_ = 0F;
seed_ = 0;
@@ -4026,29 +4122,37 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GenerationConfig resul
result.stopSequences_ = stopSequences_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
- result.presencePenalty_ = presencePenalty_;
+ result.responseLogprobs_ = responseLogprobs_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
- result.frequencyPenalty_ = frequencyPenalty_;
+ result.logprobs_ = logprobs_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
- result.seed_ = seed_;
+ result.presencePenalty_ = presencePenalty_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
- result.responseMimeType_ = responseMimeType_;
+ result.frequencyPenalty_ = frequencyPenalty_;
+ to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.seed_ = seed_;
+ to_bitField0_ |= 0x00000200;
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.responseMimeType_ = responseMimeType_;
+ }
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.responseSchema_ =
responseSchemaBuilder_ == null ? responseSchema_ : responseSchemaBuilder_.build();
- to_bitField0_ |= 0x00000100;
+ to_bitField0_ |= 0x00000400;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
result.routingConfig_ =
routingConfigBuilder_ == null ? routingConfig_ : routingConfigBuilder_.build();
- to_bitField0_ |= 0x00000200;
+ to_bitField0_ |= 0x00000800;
}
result.bitField0_ |= to_bitField0_;
}
@@ -4124,6 +4228,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerationConfig other)
}
onChanged();
}
+ if (other.hasResponseLogprobs()) {
+ setResponseLogprobs(other.getResponseLogprobs());
+ }
+ if (other.hasLogprobs()) {
+ setLogprobs(other.getLogprobs());
+ }
if (other.hasPresencePenalty()) {
setPresencePenalty(other.getPresencePenalty());
}
@@ -4135,7 +4245,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerationConfig other)
}
if (!other.getResponseMimeType().isEmpty()) {
responseMimeType_ = other.responseMimeType_;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000800;
onChanged();
}
if (other.hasResponseSchema()) {
@@ -4207,42 +4317,54 @@ public Builder mergeFrom(
stopSequences_.add(s);
break;
} // case 50
+ case 56:
+ {
+ logprobs_ = input.readInt32();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 56
case 69:
{
presencePenalty_ = input.readFloat();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000100;
break;
} // case 69
case 77:
{
frequencyPenalty_ = input.readFloat();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000200;
break;
} // case 77
case 96:
{
seed_ = input.readInt32();
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000400;
break;
} // case 96
case 106:
{
responseMimeType_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000800;
break;
} // case 106
case 130:
{
input.readMessage(getResponseSchemaFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
break;
} // case 130
case 138:
{
input.readMessage(getRoutingConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
break;
} // case 138
+ case 144:
+ {
+ responseLogprobs_ = input.readBool();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 144
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4776,6 +4898,142 @@ public Builder addStopSequencesBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private boolean responseLogprobs_;
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the responseLogprobs field is set.
+ */
+ @java.lang.Override
+ public boolean hasResponseLogprobs() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The responseLogprobs.
+ */
+ @java.lang.Override
+ public boolean getResponseLogprobs() {
+ return responseLogprobs_;
+ }
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The responseLogprobs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseLogprobs(boolean value) {
+
+ responseLogprobs_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResponseLogprobs() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ responseLogprobs_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int logprobs_;
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the logprobs field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogprobs() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The logprobs.
+ */
+ @java.lang.Override
+ public int getLogprobs() {
+ return logprobs_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The logprobs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLogprobs(int value) {
+
+ logprobs_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLogprobs() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ logprobs_ = 0;
+ onChanged();
+ return this;
+ }
+
private float presencePenalty_;
/**
*
@@ -4790,7 +5048,7 @@ public Builder addStopSequencesBytes(com.google.protobuf.ByteString value) {
*/
@java.lang.Override
public boolean hasPresencePenalty() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -4822,7 +5080,7 @@ public float getPresencePenalty() {
public Builder setPresencePenalty(float value) {
presencePenalty_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -4838,7 +5096,7 @@ public Builder setPresencePenalty(float value) {
* @return This builder for chaining.
*/
public Builder clearPresencePenalty() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000100);
presencePenalty_ = 0F;
onChanged();
return this;
@@ -4858,7 +5116,7 @@ public Builder clearPresencePenalty() {
*/
@java.lang.Override
public boolean hasFrequencyPenalty() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
@@ -4890,7 +5148,7 @@ public float getFrequencyPenalty() {
public Builder setFrequencyPenalty(float value) {
frequencyPenalty_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -4906,7 +5164,7 @@ public Builder setFrequencyPenalty(float value) {
* @return This builder for chaining.
*/
public Builder clearFrequencyPenalty() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000200);
frequencyPenalty_ = 0F;
onChanged();
return this;
@@ -4926,7 +5184,7 @@ public Builder clearFrequencyPenalty() {
*/
@java.lang.Override
public boolean hasSeed() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
@@ -4958,7 +5216,7 @@ public int getSeed() {
public Builder setSeed(int value) {
seed_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -4974,7 +5232,7 @@ public Builder setSeed(int value) {
* @return This builder for chaining.
*/
public Builder clearSeed() {
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000400);
seed_ = 0;
onChanged();
return this;
@@ -5060,7 +5318,7 @@ public Builder setResponseMimeType(java.lang.String value) {
throw new NullPointerException();
}
responseMimeType_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -5083,7 +5341,7 @@ public Builder setResponseMimeType(java.lang.String value) {
*/
public Builder clearResponseMimeType() {
responseMimeType_ = getDefaultInstance().getResponseMimeType();
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
@@ -5111,7 +5369,7 @@ public Builder setResponseMimeTypeBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
responseMimeType_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -5142,7 +5400,7 @@ public Builder setResponseMimeTypeBytes(com.google.protobuf.ByteString value) {
* @return Whether the responseSchema field is set.
*/
public boolean hasResponseSchema() {
- return ((bitField0_ & 0x00000400) != 0);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
*
@@ -5198,7 +5456,7 @@ public Builder setResponseSchema(com.google.cloud.aiplatform.v1.Schema value) {
} else {
responseSchemaBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -5226,7 +5484,7 @@ public Builder setResponseSchema(
} else {
responseSchemaBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -5249,7 +5507,7 @@ public Builder setResponseSchema(
*/
public Builder mergeResponseSchema(com.google.cloud.aiplatform.v1.Schema value) {
if (responseSchemaBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0)
+ if (((bitField0_ & 0x00001000) != 0)
&& responseSchema_ != null
&& responseSchema_ != com.google.cloud.aiplatform.v1.Schema.getDefaultInstance()) {
getResponseSchemaBuilder().mergeFrom(value);
@@ -5260,7 +5518,7 @@ public Builder mergeResponseSchema(com.google.cloud.aiplatform.v1.Schema value)
responseSchemaBuilder_.mergeFrom(value);
}
if (responseSchema_ != null) {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
onChanged();
}
return this;
@@ -5283,7 +5541,7 @@ public Builder mergeResponseSchema(com.google.cloud.aiplatform.v1.Schema value)
*
*/
public Builder clearResponseSchema() {
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00001000);
responseSchema_ = null;
if (responseSchemaBuilder_ != null) {
responseSchemaBuilder_.dispose();
@@ -5310,7 +5568,7 @@ public Builder clearResponseSchema() {
*
*/
public com.google.cloud.aiplatform.v1.Schema.Builder getResponseSchemaBuilder() {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
onChanged();
return getResponseSchemaFieldBuilder().getBuilder();
}
@@ -5394,7 +5652,7 @@ public com.google.cloud.aiplatform.v1.SchemaOrBuilder getResponseSchemaOrBuilder
* @return Whether the routingConfig field is set.
*/
public boolean hasRoutingConfig() {
- return ((bitField0_ & 0x00000800) != 0);
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
*
@@ -5439,7 +5697,7 @@ public Builder setRoutingConfig(
} else {
routingConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -5461,7 +5719,7 @@ public Builder setRoutingConfig(
} else {
routingConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -5479,7 +5737,7 @@ public Builder setRoutingConfig(
public Builder mergeRoutingConfig(
com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
if (routingConfigBuilder_ == null) {
- if (((bitField0_ & 0x00000800) != 0)
+ if (((bitField0_ & 0x00002000) != 0)
&& routingConfig_ != null
&& routingConfig_
!= com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig
@@ -5492,7 +5750,7 @@ public Builder mergeRoutingConfig(
routingConfigBuilder_.mergeFrom(value);
}
if (routingConfig_ != null) {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
onChanged();
}
return this;
@@ -5509,7 +5767,7 @@ public Builder mergeRoutingConfig(
*
*/
public Builder clearRoutingConfig() {
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00002000);
routingConfig_ = null;
if (routingConfigBuilder_ != null) {
routingConfigBuilder_.dispose();
@@ -5531,7 +5789,7 @@ public Builder clearRoutingConfig() {
*/
public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder
getRoutingConfigBuilder() {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
onChanged();
return getRoutingConfigFieldBuilder().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 b9b21401b777..1852a4a34aab 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
@@ -200,6 +200,56 @@ public interface GenerationConfigOrBuilder
*/
com.google.protobuf.ByteString getStopSequencesBytes(int index);
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the responseLogprobs field is set.
+ */
+ boolean hasResponseLogprobs();
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The responseLogprobs.
+ */
+ boolean getResponseLogprobs();
+
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the logprobs field is set.
+ */
+ boolean hasLogprobs();
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The logprobs.
+ */
+ int getLogprobs();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LogprobsResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LogprobsResult.java
new file mode 100644
index 000000000000..992ed8f61ad3
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LogprobsResult.java
@@ -0,0 +1,3546 @@
+/*
+ * Copyright 2024 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.4
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Logprobs Result + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.LogprobsResult} + */ +public final class LogprobsResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.LogprobsResult) + LogprobsResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogprobsResult.newBuilder() to construct. + private LogprobsResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LogprobsResult() { + topCandidates_ = java.util.Collections.emptyList(); + chosenCandidates_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogprobsResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_LogprobsResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_LogprobsResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.LogprobsResult.class, + com.google.cloud.aiplatform.v1.LogprobsResult.Builder.class); + } + + public interface CandidateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.LogprobsResult.Candidate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return Whether the token field is set.
+ */
+ boolean hasToken();
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The token.
+ */
+ java.lang.String getToken();
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ com.google.protobuf.ByteString getTokenBytes();
+
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return Whether the tokenId field is set.
+ */
+ boolean hasTokenId();
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return The tokenId.
+ */
+ int getTokenId();
+
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return Whether the logProbability field is set.
+ */
+ boolean hasLogProbability();
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return The logProbability.
+ */
+ float getLogProbability();
+ }
+ /**
+ *
+ *
+ * + * Candidate for the logprobs token and score. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.LogprobsResult.Candidate} + */ + public static final class Candidate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.LogprobsResult.Candidate) + CandidateOrBuilder { + private static final long serialVersionUID = 0L; + // Use Candidate.newBuilder() to construct. + private Candidate(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Candidate() { + token_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Candidate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_LogprobsResult_Candidate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_LogprobsResult_Candidate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.class, + com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + * + * + *
+ * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return Whether the token field is set.
+ */
+ @java.lang.Override
+ public boolean hasToken() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The token.
+ */
+ @java.lang.Override
+ public java.lang.String getToken() {
+ java.lang.Object ref = token_;
+ 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();
+ token_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTokenBytes() {
+ java.lang.Object ref = token_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ token_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TOKEN_ID_FIELD_NUMBER = 3;
+ private int tokenId_ = 0;
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return Whether the tokenId field is set.
+ */
+ @java.lang.Override
+ public boolean hasTokenId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return The tokenId.
+ */
+ @java.lang.Override
+ public int getTokenId() {
+ return tokenId_;
+ }
+
+ public static final int LOG_PROBABILITY_FIELD_NUMBER = 2;
+ private float logProbability_ = 0F;
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return Whether the logProbability field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogProbability() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return The logProbability.
+ */
+ @java.lang.Override
+ public float getLogProbability() {
+ return logProbability_;
+ }
+
+ 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, token_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeFloat(2, logProbability_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt32(3, tokenId_);
+ }
+ 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, token_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, logProbability_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, tokenId_);
+ }
+ 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.LogprobsResult.Candidate)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate other =
+ (com.google.cloud.aiplatform.v1.LogprobsResult.Candidate) obj;
+
+ if (hasToken() != other.hasToken()) return false;
+ if (hasToken()) {
+ if (!getToken().equals(other.getToken())) return false;
+ }
+ if (hasTokenId() != other.hasTokenId()) return false;
+ if (hasTokenId()) {
+ if (getTokenId() != other.getTokenId()) return false;
+ }
+ if (hasLogProbability() != other.hasLogProbability()) return false;
+ if (hasLogProbability()) {
+ if (java.lang.Float.floatToIntBits(getLogProbability())
+ != java.lang.Float.floatToIntBits(other.getLogProbability())) 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 (hasToken()) {
+ hash = (37 * hash) + TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getToken().hashCode();
+ }
+ if (hasTokenId()) {
+ hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTokenId();
+ }
+ if (hasLogProbability()) {
+ hash = (37 * hash) + LOG_PROBABILITY_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getLogProbability());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.Candidate parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.Candidate 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.LogprobsResult.Candidate parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.Candidate 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.LogprobsResult.Candidate parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.Candidate 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.LogprobsResult.Candidate parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.Candidate 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.LogprobsResult.Candidate parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.Candidate 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.LogprobsResult.Candidate 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.LogprobsResult.Candidate 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.LogprobsResult.Candidate 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;
+ }
+ /**
+ *
+ *
+ * + * Candidate for the logprobs token and score. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.LogprobsResult.Candidate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return Whether the token field is set.
+ */
+ public boolean hasToken() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The token.
+ */
+ public java.lang.String getToken() {
+ java.lang.Object ref = token_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ token_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ public com.google.protobuf.ByteString getTokenBytes() {
+ java.lang.Object ref = token_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ token_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @param value The token to set.
+ * @return This builder for chaining.
+ */
+ public Builder setToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ token_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearToken() {
+ token_ = getDefaultInstance().getToken();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @param value The bytes for token to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ token_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int tokenId_;
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return Whether the tokenId field is set.
+ */
+ @java.lang.Override
+ public boolean hasTokenId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return The tokenId.
+ */
+ @java.lang.Override
+ public int getTokenId() {
+ return tokenId_;
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @param value The tokenId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTokenId(int value) {
+
+ tokenId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTokenId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ tokenId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private float logProbability_;
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return Whether the logProbability field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogProbability() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return The logProbability.
+ */
+ @java.lang.Override
+ public float getLogProbability() {
+ return logProbability_;
+ }
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @param value The logProbability to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLogProbability(float value) {
+
+ logProbability_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLogProbability() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ logProbability_ = 0F;
+ 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.LogprobsResult.Candidate)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.LogprobsResult.Candidate)
+ private static final com.google.cloud.aiplatform.v1.LogprobsResult.Candidate DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.LogprobsResult.Candidate();
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.Candidate getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ java.util.List+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate getCandidates(int index);
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ int getCandidatesCount();
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder>
+ getCandidatesOrBuilderList();
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder getCandidatesOrBuilder(
+ int index);
+ }
+ /**
+ *
+ *
+ * + * Candidates with top log probabilities at each decoding step. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.LogprobsResult.TopCandidates} + */ + public static final class TopCandidates extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.LogprobsResult.TopCandidates) + TopCandidatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TopCandidates.newBuilder() to construct. + private TopCandidates(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private TopCandidates() { + candidates_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TopCandidates(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_LogprobsResult_TopCandidates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_LogprobsResult_TopCandidates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.class, + com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.Builder.class); + } + + public static final int CANDIDATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder>
+ getCandidatesOrBuilderList() {
+ return candidates_;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ @java.lang.Override
+ public int getCandidatesCount() {
+ return candidates_.size();
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate getCandidates(int index) {
+ return candidates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder getCandidatesOrBuilder(
+ int index) {
+ return candidates_.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 < candidates_.size(); i++) {
+ output.writeMessage(1, candidates_.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 < candidates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, candidates_.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.LogprobsResult.TopCandidates)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates other =
+ (com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates) obj;
+
+ if (!getCandidatesList().equals(other.getCandidatesList())) 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 (getCandidatesCount() > 0) {
+ hash = (37 * hash) + CANDIDATES_FIELD_NUMBER;
+ hash = (53 * hash) + getCandidatesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates 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;
+ }
+ /**
+ *
+ *
+ * + * Candidates with top log probabilities at each decoding step. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.LogprobsResult.TopCandidates} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public java.util.List+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public int getCandidatesCount() {
+ if (candidatesBuilder_ == null) {
+ return candidates_.size();
+ } else {
+ return candidatesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate getCandidates(int index) {
+ if (candidatesBuilder_ == null) {
+ return candidates_.get(index);
+ } else {
+ return candidatesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder setCandidates(
+ int index, com.google.cloud.aiplatform.v1.LogprobsResult.Candidate value) {
+ if (candidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCandidatesIsMutable();
+ candidates_.set(index, value);
+ onChanged();
+ } else {
+ candidatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder setCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ candidates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ candidatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder addCandidates(com.google.cloud.aiplatform.v1.LogprobsResult.Candidate value) {
+ if (candidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCandidatesIsMutable();
+ candidates_.add(value);
+ onChanged();
+ } else {
+ candidatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder addCandidates(
+ int index, com.google.cloud.aiplatform.v1.LogprobsResult.Candidate value) {
+ if (candidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCandidatesIsMutable();
+ candidates_.add(index, value);
+ onChanged();
+ } else {
+ candidatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder addCandidates(
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ candidates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ candidatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder addCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ candidates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ candidatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder addAllCandidates(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.LogprobsResult.Candidate>
+ values) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, candidates_);
+ onChanged();
+ } else {
+ candidatesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder clearCandidates() {
+ if (candidatesBuilder_ == null) {
+ candidates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ candidatesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public Builder removeCandidates(int index) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ candidates_.remove(index);
+ onChanged();
+ } else {
+ candidatesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder getCandidatesBuilder(
+ int index) {
+ return getCandidatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder
+ getCandidatesOrBuilder(int index) {
+ if (candidatesBuilder_ == null) {
+ return candidates_.get(index);
+ } else {
+ return candidatesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder>
+ getCandidatesOrBuilderList() {
+ if (candidatesBuilder_ != null) {
+ return candidatesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(candidates_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder
+ addCandidatesBuilder() {
+ return getCandidatesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder addCandidatesBuilder(
+ int index) {
+ return getCandidatesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate candidates = 1;
+ */
+ public java.util.List+ * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidatesOrBuilder>
+ getTopCandidatesOrBuilderList() {
+ return topCandidates_;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public int getTopCandidatesCount() {
+ return topCandidates_.size();
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates getTopCandidates(int index) {
+ return topCandidates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidatesOrBuilder
+ getTopCandidatesOrBuilder(int index) {
+ return topCandidates_.get(index);
+ }
+
+ public static final int CHOSEN_CANDIDATES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder>
+ getChosenCandidatesOrBuilderList() {
+ return chosenCandidates_;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public int getChosenCandidatesCount() {
+ return chosenCandidates_.size();
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate getChosenCandidates(int index) {
+ return chosenCandidates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder
+ getChosenCandidatesOrBuilder(int index) {
+ return chosenCandidates_.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 < topCandidates_.size(); i++) {
+ output.writeMessage(1, topCandidates_.get(i));
+ }
+ for (int i = 0; i < chosenCandidates_.size(); i++) {
+ output.writeMessage(2, chosenCandidates_.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 < topCandidates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topCandidates_.get(i));
+ }
+ for (int i = 0; i < chosenCandidates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, chosenCandidates_.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.LogprobsResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.LogprobsResult other =
+ (com.google.cloud.aiplatform.v1.LogprobsResult) obj;
+
+ if (!getTopCandidatesList().equals(other.getTopCandidatesList())) return false;
+ if (!getChosenCandidatesList().equals(other.getChosenCandidatesList())) 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 (getTopCandidatesCount() > 0) {
+ hash = (37 * hash) + TOP_CANDIDATES_FIELD_NUMBER;
+ hash = (53 * hash) + getTopCandidatesList().hashCode();
+ }
+ if (getChosenCandidatesCount() > 0) {
+ hash = (37 * hash) + CHOSEN_CANDIDATES_FIELD_NUMBER;
+ hash = (53 * hash) + getChosenCandidatesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult 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.LogprobsResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult 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.LogprobsResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult 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.LogprobsResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult 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.LogprobsResult parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.LogprobsResult 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.LogprobsResult 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.LogprobsResult 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.LogprobsResult 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;
+ }
+ /**
+ *
+ *
+ * + * Logprobs Result + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.LogprobsResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public int getTopCandidatesCount() {
+ if (topCandidatesBuilder_ == null) {
+ return topCandidates_.size();
+ } else {
+ return topCandidatesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates getTopCandidates(int index) {
+ if (topCandidatesBuilder_ == null) {
+ return topCandidates_.get(index);
+ } else {
+ return topCandidatesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder setTopCandidates(
+ int index, com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates value) {
+ if (topCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopCandidatesIsMutable();
+ topCandidates_.set(index, value);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder setTopCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.Builder builderForValue) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ topCandidates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ topCandidatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addTopCandidates(
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates value) {
+ if (topCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopCandidatesIsMutable();
+ topCandidates_.add(value);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addTopCandidates(
+ int index, com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates value) {
+ if (topCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopCandidatesIsMutable();
+ topCandidates_.add(index, value);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addTopCandidates(
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.Builder builderForValue) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ topCandidates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addTopCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.Builder builderForValue) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ topCandidates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addAllTopCandidates(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates>
+ values) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topCandidates_);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder clearTopCandidates() {
+ if (topCandidatesBuilder_ == null) {
+ topCandidates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder removeTopCandidates(int index) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ topCandidates_.remove(index);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.Builder
+ getTopCandidatesBuilder(int index) {
+ return getTopCandidatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidatesOrBuilder
+ getTopCandidatesOrBuilder(int index) {
+ if (topCandidatesBuilder_ == null) {
+ return topCandidates_.get(index);
+ } else {
+ return topCandidatesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidatesOrBuilder>
+ getTopCandidatesOrBuilderList() {
+ if (topCandidatesBuilder_ != null) {
+ return topCandidatesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(topCandidates_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.Builder
+ addTopCandidatesBuilder() {
+ return getTopCandidatesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.Builder
+ addTopCandidatesBuilder(int index) {
+ return getTopCandidatesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public int getChosenCandidatesCount() {
+ if (chosenCandidatesBuilder_ == null) {
+ return chosenCandidates_.size();
+ } else {
+ return chosenCandidatesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate getChosenCandidates(int index) {
+ if (chosenCandidatesBuilder_ == null) {
+ return chosenCandidates_.get(index);
+ } else {
+ return chosenCandidatesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder setChosenCandidates(
+ int index, com.google.cloud.aiplatform.v1.LogprobsResult.Candidate value) {
+ if (chosenCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.set(index, value);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder setChosenCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addChosenCandidates(
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate value) {
+ if (chosenCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.add(value);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addChosenCandidates(
+ int index, com.google.cloud.aiplatform.v1.LogprobsResult.Candidate value) {
+ if (chosenCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.add(index, value);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addChosenCandidates(
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addChosenCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addAllChosenCandidates(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.LogprobsResult.Candidate>
+ values) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chosenCandidates_);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder clearChosenCandidates() {
+ if (chosenCandidatesBuilder_ == null) {
+ chosenCandidates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder removeChosenCandidates(int index) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.remove(index);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder
+ getChosenCandidatesBuilder(int index) {
+ return getChosenCandidatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder
+ getChosenCandidatesOrBuilder(int index) {
+ if (chosenCandidatesBuilder_ == null) {
+ return chosenCandidates_.get(index);
+ } else {
+ return chosenCandidatesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder>
+ getChosenCandidatesOrBuilderList() {
+ if (chosenCandidatesBuilder_ != null) {
+ return chosenCandidatesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(chosenCandidates_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder
+ addChosenCandidatesBuilder() {
+ return getChosenCandidatesFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.Builder
+ addChosenCandidatesBuilder(int index) {
+ return getChosenCandidatesFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.aiplatform.v1.LogprobsResult.Candidate.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ java.util.List+ * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates getTopCandidates(int index);
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ int getTopCandidatesCount();
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidatesOrBuilder>
+ getTopCandidatesOrBuilderList();
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidatesOrBuilder getTopCandidatesOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ com.google.cloud.aiplatform.v1.LogprobsResult.Candidate getChosenCandidates(int index);
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ int getChosenCandidatesCount();
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder>
+ getChosenCandidatesOrBuilderList();
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder getChosenCandidatesOrBuilder(
+ int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OpenApiProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OpenApiProto.java
index 7e4fc525c700..50309960fe57 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OpenApiProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OpenApiProto.java
@@ -48,7 +48,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n(google/cloud/aiplatform/v1/openapi.pro"
+ "to\022\032google.cloud.aiplatform.v1\032\037google/a"
+ "pi/field_behavior.proto\032\034google/protobuf"
- + "/struct.proto\"\367\005\n\006Schema\0223\n\004type\030\001 \001(\0162 "
+ + "/struct.proto\"\260\006\n\006Schema\0223\n\004type\030\001 \001(\0162 "
+ ".google.cloud.aiplatform.v1.TypeB\003\340A\001\022\023\n"
+ "\006format\030\007 \001(\tB\003\340A\001\022\022\n\005title\030\030 \001(\tB\003\340A\001\022\030"
+ "\n\013description\030\010 \001(\tB\003\340A\001\022\025\n\010nullable\030\006 \001"
@@ -65,17 +65,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021 \001(\001B\003\340A\001\022\027\n\nmin_length\030\022 \001(\003B\003\340A\001\022\027\n\nm"
+ "ax_length\030\023 \001(\003B\003\340A\001\022\024\n\007pattern\030\024 \001(\tB\003\340"
+ "A\001\022,\n\007example\030\004 \001(\0132\026.google.protobuf.Va"
- + "lueB\003\340A\001\032U\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t"
- + "\0221\n\005value\030\002 \001(\0132\".google.cloud.aiplatfor"
- + "m.v1.Schema:\0028\001*e\n\004Type\022\024\n\020TYPE_UNSPECIF"
- + "IED\020\000\022\n\n\006STRING\020\001\022\n\n\006NUMBER\020\002\022\013\n\007INTEGER"
- + "\020\003\022\013\n\007BOOLEAN\020\004\022\t\n\005ARRAY\020\005\022\n\n\006OBJECT\020\006B\312"
- + "\001\n\036com.google.cloud.aiplatform.v1B\014OpenA"
- + "piProtoP\001Z>cloud.google.com/go/aiplatfor"
- + "m/apiv1/aiplatformpb;aiplatformpb\252\002\032Goog"
- + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI"
- + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:"
- + ":V1b\006proto3"
+ + "lueB\003\340A\001\0227\n\006any_of\030\013 \003(\0132\".google.cloud."
+ + "aiplatform.v1.SchemaB\003\340A\001\032U\n\017PropertiesE"
+ + "ntry\022\013\n\003key\030\001 \001(\t\0221\n\005value\030\002 \001(\0132\".googl"
+ + "e.cloud.aiplatform.v1.Schema:\0028\001*e\n\004Type"
+ + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\n\n\006NU"
+ + "MBER\020\002\022\013\n\007INTEGER\020\003\022\013\n\007BOOLEAN\020\004\022\t\n\005ARRA"
+ + "Y\020\005\022\n\n\006OBJECT\020\006B\312\001\n\036com.google.cloud.aip"
+ + "latform.v1B\014OpenApiProtoP\001Z>cloud.google"
+ + ".com/go/aiplatform/apiv1/aiplatformpb;ai"
+ + "platformpb\252\002\032Google.Cloud.AIPlatform.V1\312"
+ + "\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::C"
+ + "loud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -111,6 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MaxLength",
"Pattern",
"Example",
+ "AnyOf",
});
internal_static_google_cloud_aiplatform_v1_Schema_PropertiesEntry_descriptor =
internal_static_google_cloud_aiplatform_v1_Schema_descriptor.getNestedTypes().get(0);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
index 4bd4d4da79f9..cc4acebcc12a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
@@ -243,114 +243,114 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "neration_config\030\004 \001(\0132,.google.cloud.aip"
+ "latform.v1.GenerationConfigB\003\340A\001\032-\n\013Labe"
+ "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B"
- + "\025\n\023_system_instruction\"\327\005\n\027GenerateConte"
+ + "\025\n\023_system_instruction\"\363\005\n\027GenerateConte"
+ "ntResponse\022>\n\ncandidates\030\002 \003(\0132%.google."
- + "cloud.aiplatform.v1.CandidateB\003\340A\003\022`\n\017pr"
- + "ompt_feedback\030\003 \001(\0132B.google.cloud.aipla"
- + "tform.v1.GenerateContentResponse.PromptF"
- + "eedbackB\003\340A\003\022Y\n\016usage_metadata\030\004 \001(\0132A.g"
- + "oogle.cloud.aiplatform.v1.GenerateConten"
- + "tResponse.UsageMetadata\032\326\002\n\016PromptFeedba"
- + "ck\022k\n\014block_reason\030\001 \001(\0162P.google.cloud."
- + "aiplatform.v1.GenerateContentResponse.Pr"
- + "omptFeedback.BlockedReasonB\003\340A\003\022E\n\016safet"
- + "y_ratings\030\002 \003(\0132(.google.cloud.aiplatfor"
- + "m.v1.SafetyRatingB\003\340A\003\022!\n\024block_reason_m"
- + "essage\030\003 \001(\tB\003\340A\003\"m\n\rBlockedReason\022\036\n\032BL"
- + "OCKED_REASON_UNSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t"
- + "\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020\003\022\026\n\022PROHIBITED_C"
- + "ONTENT\020\004\032f\n\rUsageMetadata\022\032\n\022prompt_toke"
- + "n_count\030\001 \001(\005\022\036\n\026candidates_token_count\030"
- + "\002 \001(\005\022\031\n\021total_token_count\030\003 \001(\0052\362\031\n\021Pre"
- + "dictionService\022\224\002\n\007Predict\022*.google.clou"
- + "d.aiplatform.v1.PredictRequest\032+.google."
- + "cloud.aiplatform.v1.PredictResponse\"\257\001\332A"
- + "\035endpoint,instances,parameters\202\323\344\223\002\210\001\"9/"
- + "v1/{endpoint=projects/*/locations/*/endp"
- + "oints/*}:predict:\001*ZH\"C/v1/{endpoint=pro"
- + "jects/*/locations/*/publishers/*/models/"
- + "*}:predict:\001*\022\376\001\n\nRawPredict\022-.google.cl"
- + "oud.aiplatform.v1.RawPredictRequest\032\024.go"
- + "ogle.api.HttpBody\"\252\001\332A\022endpoint,http_bod"
- + "y\202\323\344\223\002\216\001\"\"9"
- + "/v1/{endpoint=projects/*/locations/*/end"
- + "points/*}:explain:\001*\022\215\003\n\017GenerateContent"
- + "\0222.google.cloud.aiplatform.v1.GenerateCo"
- + "ntentRequest\0323.google.cloud.aiplatform.v"
- + "1.GenerateContentResponse\"\220\002\332A\016model,con"
- + "tents\202\323\344\223\002\370\001\">/v1/{model=projects/*/loca"
- + "tions/*/endpoints/*}:generateContent:\001*Z"
- + "M\"H/v1/{model=projects/*/locations/*/pub"
- + "lishers/*/models/*}:generateContent:\001*Z,"
- + "\"\'/v1/{model=endpoints/*}:generateConten"
- + "t:\001*Z6\"1/v1/{model=publishers/*/models/*"
- + "}:generateContent:\001*\022\255\003\n\025StreamGenerateC"
- + "ontent\0222.google.cloud.aiplatform.v1.Gene"
- + "rateContentRequest\0323.google.cloud.aiplat"
- + "form.v1.GenerateContentResponse\"\250\002\332A\016mod"
- + "el,contents\202\323\344\223\002\220\002\"D/v1/{model=projects/"
- + "*/locations/*/endpoints/*}:streamGenerat"
- + "eContent:\001*ZS\"N/v1/{model=projects/*/loc"
- + "ations/*/publishers/*/models/*}:streamGe"
- + "nerateContent:\001*Z2\"-/v1/{model=endpoints"
- + "/*}:streamGenerateContent:\001*Z<\"7/v1/{mod"
- + "el=publishers/*/models/*}:streamGenerate"
- + "Content:\001*0\001\032\206\001\312A\031aiplatform.googleapis."
- + "com\322Aghttps://www.googleapis.com/auth/cl"
- + "oud-platform,https://www.googleapis.com/"
- + "auth/cloud-platform.read-onlyB\324\001\n\036com.go"
- + "ogle.cloud.aiplatform.v1B\026PredictionServ"
- + "iceProtoP\001Z>cloud.google.com/go/aiplatfo"
- + "rm/apiv1/aiplatformpb;aiplatformpb\252\002\032Goo"
- + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A"
- + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform"
- + "::V1b\006proto3"
+ + "hers/*/models/*}:serverStreamingPredict:"
+ + "\001*0\001\022\214\001\n\023StreamingRawPredict\0226.google.cl"
+ + "oud.aiplatform.v1.StreamingRawPredictReq"
+ + "uest\0327.google.cloud.aiplatform.v1.Stream"
+ + "ingRawPredictResponse\"\000(\0010\001\022\332\001\n\007Explain\022"
+ + "*.google.cloud.aiplatform.v1.ExplainRequ"
+ + "est\032+.google.cloud.aiplatform.v1.Explain"
+ + "Response\"v\332A/endpoint,instances,paramete"
+ + "rs,deployed_model_id\202\323\344\223\002>\"9/v1/{endpoin"
+ + "t=projects/*/locations/*/endpoints/*}:ex"
+ + "plain:\001*\022\215\003\n\017GenerateContent\0222.google.cl"
+ + "oud.aiplatform.v1.GenerateContentRequest"
+ + "\0323.google.cloud.aiplatform.v1.GenerateCo"
+ + "ntentResponse\"\220\002\332A\016model,contents\202\323\344\223\002\370\001"
+ + "\">/v1/{model=projects/*/locations/*/endp"
+ + "oints/*}:generateContent:\001*ZM\"H/v1/{mode"
+ + "l=projects/*/locations/*/publishers/*/mo"
+ + "dels/*}:generateContent:\001*Z,\"\'/v1/{model"
+ + "=endpoints/*}:generateContent:\001*Z6\"1/v1/"
+ + "{model=publishers/*/models/*}:generateCo"
+ + "ntent:\001*\022\255\003\n\025StreamGenerateContent\0222.goo"
+ + "gle.cloud.aiplatform.v1.GenerateContentR"
+ + "equest\0323.google.cloud.aiplatform.v1.Gene"
+ + "rateContentResponse\"\250\002\332A\016model,contents\202"
+ + "\323\344\223\002\220\002\"D/v1/{model=projects/*/locations/"
+ + "*/endpoints/*}:streamGenerateContent:\001*Z"
+ + "S\"N/v1/{model=projects/*/locations/*/pub"
+ + "lishers/*/models/*}:streamGenerateConten"
+ + "t:\001*Z2\"-/v1/{model=endpoints/*}:streamGe"
+ + "nerateContent:\001*Z<\"7/v1/{model=publisher"
+ + "s/*/models/*}:streamGenerateContent:\001*0\001"
+ + "\032\206\001\312A\031aiplatform.googleapis.com\322Aghttps:"
+ + "//www.googleapis.com/auth/cloud-platform"
+ + ",https://www.googleapis.com/auth/cloud-p"
+ + "latform.read-onlyB\324\001\n\036com.google.cloud.a"
+ + "iplatform.v1B\026PredictionServiceProtoP\001Z>"
+ + "cloud.google.com/go/aiplatform/apiv1/aip"
+ + "latformpb;aiplatformpb\252\002\032Google.Cloud.AI"
+ + "Platform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1"
+ + "\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -569,7 +569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GenerateContentResponse_descriptor,
new java.lang.String[] {
- "Candidates", "PromptFeedback", "UsageMetadata",
+ "Candidates", "ModelVersion", "PromptFeedback", "UsageMetadata",
});
internal_static_google_cloud_aiplatform_v1_GenerateContentResponse_PromptFeedback_descriptor =
internal_static_google_cloud_aiplatform_v1_GenerateContentResponse_descriptor
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schema.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schema.java
index 25294d846be8..b07ecc2abe52 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schema.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schema.java
@@ -50,6 +50,7 @@ private Schema() {
propertyOrdering_ = com.google.protobuf.LazyStringArrayList.emptyList();
required_ = com.google.protobuf.LazyStringArrayList.emptyList();
pattern_ = "";
+ anyOf_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -977,6 +978,92 @@ public com.google.protobuf.ValueOrBuilder getExampleOrBuilder() {
return example_ == null ? com.google.protobuf.Value.getDefaultInstance() : example_;
}
+ public static final int ANY_OF_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.SchemaOrBuilder>
+ getAnyOfOrBuilderList() {
+ return anyOf_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getAnyOfCount() {
+ return anyOf_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Schema getAnyOf(int index) {
+ return anyOf_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SchemaOrBuilder getAnyOfOrBuilder(int index) {
+ return anyOf_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1017,6 +1104,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < enum_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, enum_.getRaw(i));
}
+ for (int i = 0; i < anyOf_.size(); i++) {
+ output.writeMessage(11, anyOf_.get(i));
+ }
if (minProperties_ != 0L) {
output.writeInt64(14, minProperties_);
}
@@ -1107,6 +1197,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getEnumList().size();
}
+ for (int i = 0; i < anyOf_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, anyOf_.get(i));
+ }
if (minProperties_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, minProperties_);
}
@@ -1195,6 +1288,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasExample()) {
if (!getExample().equals(other.getExample())) return false;
}
+ if (!getAnyOfList().equals(other.getAnyOfList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1268,6 +1362,10 @@ public int hashCode() {
hash = (37 * hash) + EXAMPLE_FIELD_NUMBER;
hash = (53 * hash) + getExample().hashCode();
}
+ if (getAnyOfCount() > 0) {
+ hash = (37 * hash) + ANY_OF_FIELD_NUMBER;
+ hash = (53 * hash) + getAnyOfList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1435,6 +1533,7 @@ private void maybeForceBuilderInitialization() {
getDefaultFieldBuilder();
getItemsFieldBuilder();
getExampleFieldBuilder();
+ getAnyOfFieldBuilder();
}
}
@@ -1475,6 +1574,13 @@ public Builder clear() {
exampleBuilder_.dispose();
exampleBuilder_ = null;
}
+ if (anyOfBuilder_ == null) {
+ anyOf_ = java.util.Collections.emptyList();
+ } else {
+ anyOf_ = null;
+ anyOfBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00200000);
return this;
}
@@ -1502,6 +1608,7 @@ public com.google.cloud.aiplatform.v1.Schema build() {
public com.google.cloud.aiplatform.v1.Schema buildPartial() {
com.google.cloud.aiplatform.v1.Schema result =
new com.google.cloud.aiplatform.v1.Schema(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -1509,6 +1616,18 @@ public com.google.cloud.aiplatform.v1.Schema buildPartial() {
return result;
}
+ private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Schema result) {
+ if (anyOfBuilder_ == null) {
+ if (((bitField0_ & 0x00200000) != 0)) {
+ anyOf_ = java.util.Collections.unmodifiableList(anyOf_);
+ bitField0_ = (bitField0_ & ~0x00200000);
+ }
+ result.anyOf_ = anyOf_;
+ } else {
+ result.anyOf_ = anyOfBuilder_.build();
+ }
+ }
+
private void buildPartial0(com.google.cloud.aiplatform.v1.Schema result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -1721,6 +1840,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Schema other) {
if (other.hasExample()) {
mergeExample(other.getExample());
}
+ if (anyOfBuilder_ == null) {
+ if (!other.anyOf_.isEmpty()) {
+ if (anyOf_.isEmpty()) {
+ anyOf_ = other.anyOf_;
+ bitField0_ = (bitField0_ & ~0x00200000);
+ } else {
+ ensureAnyOfIsMutable();
+ anyOf_.addAll(other.anyOf_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.anyOf_.isEmpty()) {
+ if (anyOfBuilder_.isEmpty()) {
+ anyOfBuilder_.dispose();
+ anyOfBuilder_ = null;
+ anyOf_ = other.anyOf_;
+ bitField0_ = (bitField0_ & ~0x00200000);
+ anyOfBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getAnyOfFieldBuilder()
+ : null;
+ } else {
+ anyOfBuilder_.addAllMessages(other.anyOf_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1811,6 +1957,19 @@ public Builder mergeFrom(
enum_.add(s);
break;
} // case 74
+ case 90:
+ {
+ com.google.cloud.aiplatform.v1.Schema m =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.Schema.parser(), extensionRegistry);
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.add(m);
+ } else {
+ anyOfBuilder_.addMessage(m);
+ }
+ break;
+ } // case 90
case 112:
{
minProperties_ = input.readInt64();
@@ -4324,6 +4483,408 @@ public com.google.protobuf.ValueOrBuilder getExampleOrBuilder() {
return exampleBuilder_;
}
+ private java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getAnyOfCount() {
+ if (anyOfBuilder_ == null) {
+ return anyOf_.size();
+ } else {
+ return anyOfBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Schema getAnyOf(int index) {
+ if (anyOfBuilder_ == null) {
+ return anyOf_.get(index);
+ } else {
+ return anyOfBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setAnyOf(int index, com.google.cloud.aiplatform.v1.Schema value) {
+ if (anyOfBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnyOfIsMutable();
+ anyOf_.set(index, value);
+ onChanged();
+ } else {
+ anyOfBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setAnyOf(
+ int index, com.google.cloud.aiplatform.v1.Schema.Builder builderForValue) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ anyOfBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAnyOf(com.google.cloud.aiplatform.v1.Schema value) {
+ if (anyOfBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnyOfIsMutable();
+ anyOf_.add(value);
+ onChanged();
+ } else {
+ anyOfBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAnyOf(int index, com.google.cloud.aiplatform.v1.Schema value) {
+ if (anyOfBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnyOfIsMutable();
+ anyOf_.add(index, value);
+ onChanged();
+ } else {
+ anyOfBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAnyOf(com.google.cloud.aiplatform.v1.Schema.Builder builderForValue) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.add(builderForValue.build());
+ onChanged();
+ } else {
+ anyOfBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAnyOf(
+ int index, com.google.cloud.aiplatform.v1.Schema.Builder builderForValue) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ anyOfBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllAnyOf(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.Schema> values) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, anyOf_);
+ onChanged();
+ } else {
+ anyOfBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearAnyOf() {
+ if (anyOfBuilder_ == null) {
+ anyOf_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00200000);
+ onChanged();
+ } else {
+ anyOfBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeAnyOf(int index) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.remove(index);
+ onChanged();
+ } else {
+ anyOfBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Schema.Builder getAnyOfBuilder(int index) {
+ return getAnyOfFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SchemaOrBuilder getAnyOfOrBuilder(int index) {
+ if (anyOfBuilder_ == null) {
+ return anyOf_.get(index);
+ } else {
+ return anyOfBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1.SchemaOrBuilder>
+ getAnyOfOrBuilderList() {
+ if (anyOfBuilder_ != null) {
+ return anyOfBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(anyOf_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Schema.Builder addAnyOfBuilder() {
+ return getAnyOfFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.Schema.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Schema.Builder addAnyOfBuilder(int index) {
+ return getAnyOfFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1.Schema.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List.google.protobuf.Value example = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.protobuf.ValueOrBuilder getExampleOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.Schema getAnyOf(int index);
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getAnyOfCount();
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.SchemaOrBuilder> getAnyOfOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.SchemaOrBuilder getAnyOfOrBuilder(int index);
}
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 dc0e53a6b449..f9f7c80b5fd4 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
@@ -200,6 +200,12 @@ message GenerationConfig {
// Optional. Stop sequences.
repeated string stop_sequences = 6 [(google.api.field_behavior) = OPTIONAL];
+ // Optional. If true, export the logprobs results in response.
+ optional bool response_logprobs = 18 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Logit probabilities.
+ optional int32 logprobs = 7 [(google.api.field_behavior) = OPTIONAL];
+
// Optional. Positive penalties.
optional float presence_penalty = 8 [(google.api.field_behavior) = OPTIONAL];
@@ -418,6 +424,10 @@ message Candidate {
// Output only. Average log probability score of the candidate.
double avg_logprobs = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+ // Output only. Log-likelihood scores for the response tokens and top tokens
+ LogprobsResult logprobs_result = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Output only. The reason why the model stopped generating tokens.
// If empty, the model has not stopped generating the tokens.
FinishReason finish_reason = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -442,6 +452,34 @@ message Candidate {
[(google.api.field_behavior) = OUTPUT_ONLY];
}
+// Logprobs Result
+message LogprobsResult {
+ // Candidate for the logprobs token and score.
+ message Candidate {
+ // The candidate’s token string value.
+ optional string token = 1;
+
+ // The candidate’s token id value.
+ optional int32 token_id = 3;
+
+ // The candidate's log probability.
+ optional float log_probability = 2;
+ }
+
+ // Candidates with top log probabilities at each decoding step.
+ message TopCandidates {
+ // Sorted by log probability in descending order.
+ repeated Candidate candidates = 1;
+ }
+
+ // Length = total number of decoding steps.
+ repeated TopCandidates top_candidates = 1;
+
+ // Length = total number of decoding steps.
+ // The chosen candidates may or may not be in top_candidates.
+ repeated Candidate chosen_candidates = 2;
+}
+
// Segment of the content.
message Segment {
// Output only. The index of a Part object within its parent Content object.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/openapi.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/openapi.proto
index 2c13569dbcad..216f76aa7fa8 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/openapi.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/openapi.proto
@@ -134,4 +134,8 @@ message Schema {
// Optional. Example of the object. Will only populated when the object is the
// root.
google.protobuf.Value example = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The value should be validated against any (one or more) of the
+ // subschemas in the list.
+ repeated Schema any_of = 11 [(google.api.field_behavior) = OPTIONAL];
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
index 7d8000f25f79..4c961fd10dc3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
@@ -777,6 +777,9 @@ message GenerateContentResponse {
// Output only. Generated candidates.
repeated Candidate candidates = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+ // Output only. The model version used to generate the response.
+ string model_version = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Output only. Content filter results for a prompt sent in the request.
// Note: Sent only in the first stream chunk.
// Only happens when no candidates were generated due to content violations.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java
index 760c9dc99664..f06d179a41f1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java
@@ -482,6 +482,62 @@ public double getAvgLogprobs() {
return avgLogprobs_;
}
+ public static final int LOGPROBS_RESULT_FIELD_NUMBER = 10;
+ private com.google.cloud.aiplatform.v1beta1.LogprobsResult logprobsResult_;
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogprobsResult() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult getLogprobsResult() {
+ return logprobsResult_ == null
+ ? com.google.cloud.aiplatform.v1beta1.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResultOrBuilder getLogprobsResultOrBuilder() {
+ return logprobsResult_ == null
+ ? com.google.cloud.aiplatform.v1beta1.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+
public static final int FINISH_REASON_FIELD_NUMBER = 3;
private int finishReason_ = 0;
/**
@@ -635,7 +691,7 @@ public com.google.cloud.aiplatform.v1beta1.SafetyRatingOrBuilder getSafetyRating
*/
@java.lang.Override
public boolean hasFinishMessage() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -703,7 +759,7 @@ public com.google.protobuf.ByteString getFinishMessageBytes() {
*/
@java.lang.Override
public boolean hasCitationMetadata() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -760,7 +816,7 @@ public com.google.cloud.aiplatform.v1beta1.CitationMetadata getCitationMetadata(
*/
@java.lang.Override
public boolean hasGroundingMetadata() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -828,18 +884,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < safetyRatings_.size(); i++) {
output.writeMessage(4, safetyRatings_.get(i));
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, finishMessage_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getCitationMetadata());
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(7, getGroundingMetadata());
}
if (java.lang.Double.doubleToRawLongBits(avgLogprobs_) != 0) {
output.writeDouble(9, avgLogprobs_);
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(10, getLogprobsResult());
+ }
getUnknownFields().writeTo(output);
}
@@ -863,18 +922,21 @@ public int getSerializedSize() {
for (int i = 0; i < safetyRatings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, safetyRatings_.get(i));
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, finishMessage_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCitationMetadata());
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGroundingMetadata());
}
if (java.lang.Double.doubleToRawLongBits(avgLogprobs_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, avgLogprobs_);
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLogprobsResult());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -898,6 +960,10 @@ public boolean equals(final java.lang.Object obj) {
}
if (java.lang.Double.doubleToLongBits(getAvgLogprobs())
!= java.lang.Double.doubleToLongBits(other.getAvgLogprobs())) return false;
+ if (hasLogprobsResult() != other.hasLogprobsResult()) return false;
+ if (hasLogprobsResult()) {
+ if (!getLogprobsResult().equals(other.getLogprobsResult())) return false;
+ }
if (finishReason_ != other.finishReason_) return false;
if (!getSafetyRatingsList().equals(other.getSafetyRatingsList())) return false;
if (hasFinishMessage() != other.hasFinishMessage()) return false;
@@ -934,6 +1000,10 @@ public int hashCode() {
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAvgLogprobs()));
+ if (hasLogprobsResult()) {
+ hash = (37 * hash) + LOGPROBS_RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getLogprobsResult().hashCode();
+ }
hash = (37 * hash) + FINISH_REASON_FIELD_NUMBER;
hash = (53 * hash) + finishReason_;
if (getSafetyRatingsCount() > 0) {
@@ -1093,6 +1163,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getContentFieldBuilder();
+ getLogprobsResultFieldBuilder();
getSafetyRatingsFieldBuilder();
getCitationMetadataFieldBuilder();
getGroundingMetadataFieldBuilder();
@@ -1110,6 +1181,11 @@ public Builder clear() {
contentBuilder_ = null;
}
avgLogprobs_ = 0D;
+ logprobsResult_ = null;
+ if (logprobsResultBuilder_ != null) {
+ logprobsResultBuilder_.dispose();
+ logprobsResultBuilder_ = null;
+ }
finishReason_ = 0;
if (safetyRatingsBuilder_ == null) {
safetyRatings_ = java.util.Collections.emptyList();
@@ -1117,7 +1193,7 @@ public Builder clear() {
safetyRatings_ = null;
safetyRatingsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
finishMessage_ = "";
citationMetadata_ = null;
if (citationMetadataBuilder_ != null) {
@@ -1166,9 +1242,9 @@ public com.google.cloud.aiplatform.v1beta1.Candidate buildPartial() {
private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Candidate result) {
if (safetyRatingsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
safetyRatings_ = java.util.Collections.unmodifiableList(safetyRatings_);
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
result.safetyRatings_ = safetyRatings_;
} else {
@@ -1190,23 +1266,28 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Candidate result)
result.avgLogprobs_ = avgLogprobs_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.logprobsResult_ =
+ logprobsResultBuilder_ == null ? logprobsResult_ : logprobsResultBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.finishReason_ = finishReason_;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.finishMessage_ = finishMessage_;
- to_bitField0_ |= 0x00000002;
+ to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.citationMetadata_ =
citationMetadataBuilder_ == null ? citationMetadata_ : citationMetadataBuilder_.build();
- to_bitField0_ |= 0x00000004;
+ to_bitField0_ |= 0x00000008;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.groundingMetadata_ =
groundingMetadataBuilder_ == null
? groundingMetadata_
: groundingMetadataBuilder_.build();
- to_bitField0_ |= 0x00000008;
+ to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1265,6 +1346,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Candidate other) {
if (other.getAvgLogprobs() != 0D) {
setAvgLogprobs(other.getAvgLogprobs());
}
+ if (other.hasLogprobsResult()) {
+ mergeLogprobsResult(other.getLogprobsResult());
+ }
if (other.finishReason_ != 0) {
setFinishReasonValue(other.getFinishReasonValue());
}
@@ -1272,7 +1356,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Candidate other) {
if (!other.safetyRatings_.isEmpty()) {
if (safetyRatings_.isEmpty()) {
safetyRatings_ = other.safetyRatings_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureSafetyRatingsIsMutable();
safetyRatings_.addAll(other.safetyRatings_);
@@ -1285,7 +1369,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Candidate other) {
safetyRatingsBuilder_.dispose();
safetyRatingsBuilder_ = null;
safetyRatings_ = other.safetyRatings_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
safetyRatingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSafetyRatingsFieldBuilder()
@@ -1297,7 +1381,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Candidate other) {
}
if (other.hasFinishMessage()) {
finishMessage_ = other.finishMessage_;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasCitationMetadata()) {
@@ -1347,7 +1431,7 @@ public Builder mergeFrom(
case 24:
{
finishReason_ = input.readEnum();
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
break;
} // case 24
case 34:
@@ -1367,21 +1451,21 @@ public Builder mergeFrom(
case 42:
{
finishMessage_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 42
case 50:
{
input.readMessage(
getCitationMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 50
case 58:
{
input.readMessage(
getGroundingMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 58
case 73:
@@ -1390,6 +1474,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 73
+ case 82:
+ {
+ input.readMessage(getLogprobsResultFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 82
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1718,6 +1808,212 @@ public Builder clearAvgLogprobs() {
return this;
}
+ private com.google.cloud.aiplatform.v1beta1.LogprobsResult logprobsResult_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Builder,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResultOrBuilder>
+ logprobsResultBuilder_;
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ public boolean hasLogprobsResult() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult getLogprobsResult() {
+ if (logprobsResultBuilder_ == null) {
+ return logprobsResult_ == null
+ ? com.google.cloud.aiplatform.v1beta1.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ } else {
+ return logprobsResultBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLogprobsResult(com.google.cloud.aiplatform.v1beta1.LogprobsResult value) {
+ if (logprobsResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ logprobsResult_ = value;
+ } else {
+ logprobsResultBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLogprobsResult(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Builder builderForValue) {
+ if (logprobsResultBuilder_ == null) {
+ logprobsResult_ = builderForValue.build();
+ } else {
+ logprobsResultBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeLogprobsResult(com.google.cloud.aiplatform.v1beta1.LogprobsResult value) {
+ if (logprobsResultBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && logprobsResult_ != null
+ && logprobsResult_
+ != com.google.cloud.aiplatform.v1beta1.LogprobsResult.getDefaultInstance()) {
+ getLogprobsResultBuilder().mergeFrom(value);
+ } else {
+ logprobsResult_ = value;
+ }
+ } else {
+ logprobsResultBuilder_.mergeFrom(value);
+ }
+ if (logprobsResult_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearLogprobsResult() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ logprobsResult_ = null;
+ if (logprobsResultBuilder_ != null) {
+ logprobsResultBuilder_.dispose();
+ logprobsResultBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Builder getLogprobsResultBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getLogprobsResultFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResultOrBuilder
+ getLogprobsResultOrBuilder() {
+ if (logprobsResultBuilder_ != null) {
+ return logprobsResultBuilder_.getMessageOrBuilder();
+ } else {
+ return logprobsResult_ == null
+ ? com.google.cloud.aiplatform.v1beta1.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Builder,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResultOrBuilder>
+ getLogprobsResultFieldBuilder() {
+ if (logprobsResultBuilder_ == null) {
+ logprobsResultBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Builder,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResultOrBuilder>(
+ getLogprobsResult(), getParentForChildren(), isClean());
+ logprobsResult_ = null;
+ }
+ return logprobsResultBuilder_;
+ }
+
private int finishReason_ = 0;
/**
*
@@ -1754,7 +2050,7 @@ public int getFinishReasonValue() {
*/
public Builder setFinishReasonValue(int value) {
finishReason_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1800,7 +2096,7 @@ public Builder setFinishReason(
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
finishReason_ = value.getNumber();
onChanged();
return this;
@@ -1820,7 +2116,7 @@ public Builder setFinishReason(
* @return This builder for chaining.
*/
public Builder clearFinishReason() {
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
finishReason_ = 0;
onChanged();
return this;
@@ -1830,11 +2126,11 @@ public Builder clearFinishReason() {
java.util.Collections.emptyList();
private void ensureSafetyRatingsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
+ if (!((bitField0_ & 0x00000020) != 0)) {
safetyRatings_ =
new java.util.ArrayList+ * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ boolean hasLogprobsResult();
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult getLogprobsResult();
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.LogprobsResultOrBuilder getLogprobsResultOrBuilder();
+
/**
*
*
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 92c223b5c271..39ab0ed6a98e 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
@@ -84,6 +84,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_Candidate_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_Candidate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_Candidate_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_Candidate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_TopCandidates_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_TopCandidates_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_Segment_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -146,127 +158,142 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014start_offset\030"
+ "\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n"
+ "\nend_offset\030\002 \001(\0132\031.google.protobuf.Dura"
- + "tionB\003\340A\001\"\366\t\n\020GenerationConfig\022\035\n\013temper"
+ + "tionB\003\340A\001\"\332\n\n\020GenerationConfig\022\035\n\013temper"
+ "ature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p\030\002 \001(\002B\003\340A"
+ "\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001\001\022!\n\017candi"
+ "date_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021max_output"
+ "_tokens\030\005 \001(\005B\003\340A\001H\004\210\001\001\022\033\n\016stop_sequence"
- + "s\030\006 \003(\tB\003\340A\001\022\"\n\020presence_penalty\030\010 \001(\002B\003"
- + "\340A\001H\005\210\001\001\022#\n\021frequency_penalty\030\t \001(\002B\003\340A\001"
- + "H\006\210\001\001\022\026\n\004seed\030\014 \001(\005B\003\340A\001H\007\210\001\001\022\037\n\022respons"
- + "e_mime_type\030\r \001(\tB\003\340A\001\022J\n\017response_schem"
- + "a\030\020 \001(\0132\'.google.cloud.aiplatform.v1beta"
- + "1.SchemaB\003\340A\001H\010\210\001\001\022a\n\016routing_config\030\021 \001"
- + "(\0132?.google.cloud.aiplatform.v1beta1.Gen"
- + "erationConfig.RoutingConfigB\003\340A\001H\t\210\001\001\032\321\004"
- + "\n\rRoutingConfig\022d\n\tauto_mode\030\001 \001(\0132O.goo"
- + "gle.cloud.aiplatform.v1beta1.GenerationC"
- + "onfig.RoutingConfig.AutoRoutingModeH\000\022h\n"
- + "\013manual_mode\030\002 \001(\0132Q.google.cloud.aiplat"
- + "form.v1beta1.GenerationConfig.RoutingCon"
- + "fig.ManualRoutingModeH\000\032\240\002\n\017AutoRoutingM"
- + "ode\022\215\001\n\030model_routing_preference\030\001 \001(\0162f"
- + ".google.cloud.aiplatform.v1beta1.Generat"
- + "ionConfig.RoutingConfig.AutoRoutingMode."
- + "ModelRoutingPreferenceH\000\210\001\001\"`\n\026ModelRout"
- + "ingPreference\022\013\n\007UNKNOWN\020\000\022\026\n\022PRIORITIZE"
- + "_QUALITY\020\001\022\014\n\010BALANCED\020\002\022\023\n\017PRIORITIZE_C"
- + "OST\020\003B\033\n\031_model_routing_preference\032;\n\021Ma"
- + "nualRoutingMode\022\027\n\nmodel_name\030\001 \001(\tH\000\210\001\001"
- + "B\r\n\013_model_nameB\020\n\016routing_configB\016\n\014_te"
- + "mperatureB\010\n\006_top_pB\010\n\006_top_kB\022\n\020_candid"
- + "ate_countB\024\n\022_max_output_tokensB\023\n\021_pres"
- + "ence_penaltyB\024\n\022_frequency_penaltyB\007\n\005_s"
- + "eedB\022\n\020_response_schemaB\021\n\017_routing_conf"
- + "ig\"\372\003\n\rSafetySetting\022D\n\010category\030\001 \001(\0162-"
- + ".google.cloud.aiplatform.v1beta1.HarmCat"
- + "egoryB\003\340A\002\022Y\n\tthreshold\030\002 \001(\0162A.google.c"
- + "loud.aiplatform.v1beta1.SafetySetting.Ha"
- + "rmBlockThresholdB\003\340A\002\022S\n\006method\030\004 \001(\0162>."
- + "google.cloud.aiplatform.v1beta1.SafetySe"
- + "tting.HarmBlockMethodB\003\340A\001\"\235\001\n\022HarmBlock"
- + "Threshold\022$\n HARM_BLOCK_THRESHOLD_UNSPEC"
- + "IFIED\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOC"
- + "K_MEDIUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020"
- + "\003\022\016\n\nBLOCK_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017HarmBlockM"
- + "ethod\022!\n\035HARM_BLOCK_METHOD_UNSPECIFIED\020\000"
- + "\022\014\n\010SEVERITY\020\001\022\017\n\013PROBABILITY\020\002\"\316\004\n\014Safe"
- + "tyRating\022D\n\010category\030\001 \001(\0162-.google.clou"
- + "d.aiplatform.v1beta1.HarmCategoryB\003\340A\003\022W"
- + "\n\013probability\030\002 \001(\0162=.google.cloud.aipla"
- + "tform.v1beta1.SafetyRating.HarmProbabili"
- + "tyB\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340A\003\022"
- + "Q\n\010severity\030\006 \001(\0162:.google.cloud.aiplatf"
- + "orm.v1beta1.SafetyRating.HarmSeverityB\003\340"
- + "A\003\022\033\n\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007block"
- + "ed\030\003 \001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n\034HARM"
- + "_PROBABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE"
- + "\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014Ha"
- + "rmSeverity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020"
- + "\000\022\034\n\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_"
- + "SEVERITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003"
- + "\022\026\n\022HARM_SEVERITY_HIGH\020\004\"U\n\020CitationMeta"
- + "data\022A\n\tcitations\030\001 \003(\0132).google.cloud.a"
- + "iplatform.v1beta1.CitationB\003\340A\003\"\252\001\n\010Cita"
- + "tion\022\030\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_in"
- + "dex\030\002 \001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005titl"
- + "e\030\004 \001(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020pu"
- + "blication_date\030\006 \001(\0132\021.google.type.DateB"
- + "\003\340A\003\"\267\005\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\022>"
- + "\n\007content\030\002 \001(\0132(.google.cloud.aiplatfor"
- + "m.v1beta1.ContentB\003\340A\003\022\031\n\014avg_logprobs\030\t"
- + " \001(\001B\003\340A\003\022S\n\rfinish_reason\030\003 \001(\01627.googl"
- + "e.cloud.aiplatform.v1beta1.Candidate.Fin"
- + "ishReasonB\003\340A\003\022J\n\016safety_ratings\030\004 \003(\0132-"
- + ".google.cloud.aiplatform.v1beta1.SafetyR"
- + "atingB\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.CitationMetada"
- + "taB\003\340A\003\022S\n\022grounding_metadata\030\007 \001(\01322.go"
- + "ogle.cloud.aiplatform.v1beta1.GroundingM"
- + "etadataB\003\340A\003\"\274\001\n\014FinishReason\022\035\n\031FINISH_"
- + "REASON_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_TO"
- + "KENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022\t\n\005OT"
- + "HER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITED_CONTE"
- + "NT\020\007\022\010\n\004SPII\020\010\022\033\n\027MALFORMED_FUNCTION_CAL"
- + "L\020\tB\021\n\017_finish_message\"g\n\007Segment\022\027\n\npar"
- + "t_index\030\001 \001(\005B\003\340A\003\022\030\n\013start_index\030\002 \001(\005B"
- + "\003\340A\003\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004 \001"
- + "(\tB\003\340A\003\"\314\002\n\016GroundingChunk\022B\n\003web\030\001 \001(\0132"
- + "3.google.cloud.aiplatform.v1beta1.Ground"
- + "ingChunk.WebH\000\022]\n\021retrieved_context\030\002 \001("
- + "\0132@.google.cloud.aiplatform.v1beta1.Grou"
- + "ndingChunk.RetrievedContextH\000\032=\n\003Web\022\020\n\003"
- + "uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_u"
- + "riB\010\n\006_title\032J\n\020RetrievedContext\022\020\n\003uri\030"
+ + "s\030\006 \003(\tB\003\340A\001\022#\n\021response_logprobs\030\022 \001(\010B"
+ + "\003\340A\001H\005\210\001\001\022\032\n\010logprobs\030\007 \001(\005B\003\340A\001H\006\210\001\001\022\"\n"
+ + "\020presence_penalty\030\010 \001(\002B\003\340A\001H\007\210\001\001\022#\n\021fre"
+ + "quency_penalty\030\t \001(\002B\003\340A\001H\010\210\001\001\022\026\n\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\'.googl"
+ + "e.cloud.aiplatform.v1beta1.SchemaB\003\340A\001H\n"
+ + "\210\001\001\022a\n\016routing_config\030\021 \001(\0132?.google.clo"
+ + "ud.aiplatform.v1beta1.GenerationConfig.R"
+ + "outingConfigB\003\340A\001H\013\210\001\001\032\321\004\n\rRoutingConfig"
+ + "\022d\n\tauto_mode\030\001 \001(\0132O.google.cloud.aipla"
+ + "tform.v1beta1.GenerationConfig.RoutingCo"
+ + "nfig.AutoRoutingModeH\000\022h\n\013manual_mode\030\002 "
+ + "\001(\0132Q.google.cloud.aiplatform.v1beta1.Ge"
+ + "nerationConfig.RoutingConfig.ManualRouti"
+ + "ngModeH\000\032\240\002\n\017AutoRoutingMode\022\215\001\n\030model_r"
+ + "outing_preference\030\001 \001(\0162f.google.cloud.a"
+ + "iplatform.v1beta1.GenerationConfig.Routi"
+ + "ngConfig.AutoRoutingMode.ModelRoutingPre"
+ + "ferenceH\000\210\001\001\"`\n\026ModelRoutingPreference\022\013"
+ + "\n\007UNKNOWN\020\000\022\026\n\022PRIORITIZE_QUALITY\020\001\022\014\n\010B"
+ + "ALANCED\020\002\022\023\n\017PRIORITIZE_COST\020\003B\033\n\031_model"
+ + "_routing_preference\032;\n\021ManualRoutingMode"
+ + "\022\027\n\nmodel_name\030\001 \001(\tH\000\210\001\001B\r\n\013_model_name"
+ + "B\020\n\016routing_configB\016\n\014_temperatureB\010\n\006_t"
+ + "op_pB\010\n\006_top_kB\022\n\020_candidate_countB\024\n\022_m"
+ + "ax_output_tokensB\024\n\022_response_logprobsB\013"
+ + "\n\t_logprobsB\023\n\021_presence_penaltyB\024\n\022_fre"
+ + "quency_penaltyB\007\n\005_seedB\022\n\020_response_sch"
+ + "emaB\021\n\017_routing_config\"\372\003\n\rSafetySetting"
+ + "\022D\n\010category\030\001 \001(\0162-.google.cloud.aiplat"
+ + "form.v1beta1.HarmCategoryB\003\340A\002\022Y\n\tthresh"
+ + "old\030\002 \001(\0162A.google.cloud.aiplatform.v1be"
+ + "ta1.SafetySetting.HarmBlockThresholdB\003\340A"
+ + "\002\022S\n\006method\030\004 \001(\0162>.google.cloud.aiplatf"
+ + "orm.v1beta1.SafetySetting.HarmBlockMetho"
+ + "dB\003\340A\001\"\235\001\n\022HarmBlockThreshold\022$\n HARM_BL"
+ + "OCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_LOW"
+ + "_AND_ABOVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020\002"
+ + "\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n"
+ + "\003OFF\020\005\"S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_"
+ + "METHOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PR"
+ + "OBABILITY\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.Safety"
+ + "Rating.HarmProbabilityB\003\340A\003\022\036\n\021probabili"
+ + "ty_score\030\005 \001(\002B\003\340A\003\022Q\n\010severity\030\006 \001(\0162:."
+ + "google.cloud.aiplatform.v1beta1.SafetyRa"
+ + "ting.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\017Har"
+ + "mProbability\022 \n\034HARM_PROBABILITY_UNSPECI"
+ + "FIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIU"
+ + "M\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSeverity\022\035\n\031HARM_S"
+ + "EVERITY_UNSPECIFIED\020\000\022\034\n\030HARM_SEVERITY_N"
+ + "EGLIGIBLE\020\001\022\025\n\021HARM_SEVERITY_LOW\020\002\022\030\n\024HA"
+ + "RM_SEVERITY_MEDIUM\020\003\022\026\n\022HARM_SEVERITY_HI"
+ + "GH\020\004\"U\n\020CitationMetadata\022A\n\tcitations\030\001 "
+ + "\003(\0132).google.cloud.aiplatform.v1beta1.Ci"
+ + "tationB\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\003ur"
+ + "i\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340A\003\022\024\n\007lice"
+ + "nse\030\005 \001(\tB\003\340A\003\0220\n\020publication_date\030\006 \001(\013"
+ + "2\021.google.type.DateB\003\340A\003\"\206\006\n\tCandidate\022\022"
+ + "\n\005index\030\001 \001(\005B\003\340A\003\022>\n\007content\030\002 \001(\0132(.go"
+ + "ogle.cloud.aiplatform.v1beta1.ContentB\003\340"
+ + "A\003\022\031\n\014avg_logprobs\030\t \001(\001B\003\340A\003\022M\n\017logprob"
+ + "s_result\030\n \001(\0132/.google.cloud.aiplatform"
+ + ".v1beta1.LogprobsResultB\003\340A\003\022S\n\rfinish_r"
+ + "eason\030\003 \001(\01627.google.cloud.aiplatform.v1"
+ + "beta1.Candidate.FinishReasonB\003\340A\003\022J\n\016saf"
+ + "ety_ratings\030\004 \003(\0132-.google.cloud.aiplatf"
+ + "orm.v1beta1.SafetyRatingB\003\340A\003\022 \n\016finish_"
+ + "message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q\n\021citation_meta"
+ + "data\030\006 \001(\01321.google.cloud.aiplatform.v1b"
+ + "eta1.CitationMetadataB\003\340A\003\022S\n\022grounding_"
+ + "metadata\030\007 \001(\01322.google.cloud.aiplatform"
+ + ".v1beta1.GroundingMetadataB\003\340A\003\"\274\001\n\014Fini"
+ + "shReason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022"
+ + "\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n"
+ + "\nRECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022"
+ + "\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MAL"
+ + "FORMED_FUNCTION_CALL\020\tB\021\n\017_finish_messag"
+ + "e\"\236\003\n\016LogprobsResult\022U\n\016top_candidates\030\001"
+ + " \003(\0132=.google.cloud.aiplatform.v1beta1.L"
+ + "ogprobsResult.TopCandidates\022T\n\021chosen_ca"
+ + "ndidates\030\002 \003(\01329.google.cloud.aiplatform"
+ + ".v1beta1.LogprobsResult.Candidate\032\177\n\tCan"
+ + "didate\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\017log_probability\030\002 \001(\002H\002\210\001\001B"
+ + "\010\n\006_tokenB\013\n\t_token_idB\022\n\020_log_probabili"
+ + "ty\032^\n\rTopCandidates\022M\n\ncandidates\030\001 \003(\0132"
+ + "9.google.cloud.aiplatform.v1beta1.Logpro"
+ + "bsResult.Candidate\"g\n\007Segment\022\027\n\npart_in"
+ + "dex\030\001 \001(\005B\003\340A\003\022\030\n\013start_index\030\002 \001(\005B\003\340A\003"
+ + "\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003"
+ + "\340A\003\"\314\002\n\016GroundingChunk\022B\n\003web\030\001 \001(\01323.go"
+ + "ogle.cloud.aiplatform.v1beta1.GroundingC"
+ + "hunk.WebH\000\022]\n\021retrieved_context\030\002 \001(\0132@."
+ + "google.cloud.aiplatform.v1beta1.Groundin"
+ + "gChunk.RetrievedContextH\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\004_uriB\010"
- + "\n\006_titleB\014\n\nchunk_type\"\232\001\n\020GroundingSupp"
- + "ort\022>\n\007segment\030\001 \001(\0132(.google.cloud.aipl"
- + "atform.v1beta1.SegmentH\000\210\001\001\022\037\n\027grounding"
- + "_chunk_indices\030\002 \003(\005\022\031\n\021confidence_score"
- + "s\030\003 \003(\002B\n\n\010_segment\"\343\002\n\021GroundingMetadat"
- + "a\022\037\n\022web_search_queries\030\001 \003(\tB\003\340A\001\022W\n\022se"
- + "arch_entry_point\030\004 \001(\01321.google.cloud.ai"
- + "platform.v1beta1.SearchEntryPointB\003\340A\001H\000"
- + "\210\001\001\022\036\n\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n\020g"
- + "rounding_chunks\030\005 \003(\0132/.google.cloud.aip"
- + "latform.v1beta1.GroundingChunk\022R\n\022ground"
- + "ing_supports\030\006 \003(\01321.google.cloud.aiplat"
- + "form.v1beta1.GroundingSupportB\003\340A\001B\025\n\023_s"
- + "earch_entry_point\"H\n\020SearchEntryPoint\022\035\n"
- + "\020rendered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob"
- + "\030\002 \001(\014B\003\340A\001*\327\001\n\014HarmCategory\022\035\n\031HARM_CAT"
- + "EGORY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HAT"
- + "E_SPEECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CO"
- + "NTENT\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n"
- + "\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\022!\n\035HA"
- + "RM_CATEGORY_CIVIC_INTEGRITY\020\005B\343\001\n#com.go"
- + "ogle.cloud.aiplatform.v1beta1B\014ContentPr"
- + "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"
+ + "\n\006_title\032J\n\020RetrievedContext\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\004_uriB\010\n\006_t"
+ + "itleB\014\n\nchunk_type\"\232\001\n\020GroundingSupport\022"
+ + ">\n\007segment\030\001 \001(\0132(.google.cloud.aiplatfo"
+ + "rm.v1beta1.SegmentH\000\210\001\001\022\037\n\027grounding_chu"
+ + "nk_indices\030\002 \003(\005\022\031\n\021confidence_scores\030\003 "
+ + "\003(\002B\n\n\010_segment\"\343\002\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.cloud.aiplat"
+ + "form.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022"
+ + "\036\n\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n\020groun"
+ + "ding_chunks\030\005 \003(\0132/.google.cloud.aiplatf"
+ + "orm.v1beta1.GroundingChunk\022R\n\022grounding_"
+ + "supports\030\006 \003(\01321.google.cloud.aiplatform"
+ + ".v1beta1.GroundingSupportB\003\340A\001B\025\n\023_searc"
+ + "h_entry_point\"H\n\020SearchEntryPoint\022\035\n\020ren"
+ + "dered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001"
+ + "(\014B\003\340A\001*\327\001\n\014HarmCategory\022\035\n\031HARM_CATEGOR"
+ + "Y_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SP"
+ + "EECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTEN"
+ + "T\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HAR"
+ + "M_CATEGORY_SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_C"
+ + "ATEGORY_CIVIC_INTEGRITY\020\005B\343\001\n#com.google"
+ + ".cloud.aiplatform.v1beta1B\014ContentProtoP"
+ + "\001ZCcloud.google.com/go/aiplatform/apiv1b"
+ + "eta1/aiplatformpb;aiplatformpb\252\002\037Google."
+ + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\"
+ + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl"
+ + "atform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -337,6 +364,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CandidateCount",
"MaxOutputTokens",
"StopSequences",
+ "ResponseLogprobs",
+ "Logprobs",
"PresencePenalty",
"FrequencyPenalty",
"Seed",
@@ -415,14 +444,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Index",
"Content",
"AvgLogprobs",
+ "LogprobsResult",
"FinishReason",
"SafetyRatings",
"FinishMessage",
"CitationMetadata",
"GroundingMetadata",
});
- internal_static_google_cloud_aiplatform_v1beta1_Segment_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_descriptor =
getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_descriptor,
+ new java.lang.String[] {
+ "TopCandidates", "ChosenCandidates",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_Candidate_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_Candidate_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_Candidate_descriptor,
+ new java.lang.String[] {
+ "Token", "TokenId", "LogProbability",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_TopCandidates_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_TopCandidates_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_TopCandidates_descriptor,
+ new java.lang.String[] {
+ "Candidates",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_Segment_descriptor =
+ getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_aiplatform_v1beta1_Segment_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_Segment_descriptor,
@@ -430,7 +488,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PartIndex", "StartIndex", "EndIndex", "Text",
});
internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(13);
internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor,
@@ -458,7 +516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Uri", "Title",
});
internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor,
@@ -466,7 +524,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Segment", "GroundingChunkIndices", "ConfidenceScores",
});
internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_descriptor,
@@ -478,7 +536,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GroundingSupports",
});
internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_descriptor,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponse.java
index 82d5dcaf30d1..3e5ebfea7400 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponse.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponse.java
@@ -40,6 +40,7 @@ private GenerateContentResponse(com.google.protobuf.GeneratedMessageV3.Builder
private GenerateContentResponse() {
candidates_ = java.util.Collections.emptyList();
+ modelVersion_ = "";
}
@java.lang.Override
@@ -2749,6 +2750,57 @@ public com.google.cloud.aiplatform.v1beta1.CandidateOrBuilder getCandidatesOrBui
return candidates_.get(index);
}
+ public static final int MODEL_VERSION_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object modelVersion_ = "";
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The modelVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getModelVersion() {
+ java.lang.Object ref = modelVersion_;
+ 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();
+ modelVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for modelVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getModelVersionBytes() {
+ java.lang.Object ref = modelVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ modelVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PROMPT_FEEDBACK_FIELD_NUMBER = 3;
private com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback
promptFeedback_;
@@ -2899,6 +2951,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getUsageMetadata());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, modelVersion_);
+ }
getUnknownFields().writeTo(output);
}
@@ -2917,6 +2972,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUsageMetadata());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, modelVersion_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2934,6 +2992,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.aiplatform.v1beta1.GenerateContentResponse) obj;
if (!getCandidatesList().equals(other.getCandidatesList())) return false;
+ if (!getModelVersion().equals(other.getModelVersion())) return false;
if (hasPromptFeedback() != other.hasPromptFeedback()) return false;
if (hasPromptFeedback()) {
if (!getPromptFeedback().equals(other.getPromptFeedback())) return false;
@@ -2957,6 +3016,8 @@ public int hashCode() {
hash = (37 * hash) + CANDIDATES_FIELD_NUMBER;
hash = (53 * hash) + getCandidatesList().hashCode();
}
+ hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getModelVersion().hashCode();
if (hasPromptFeedback()) {
hash = (37 * hash) + PROMPT_FEEDBACK_FIELD_NUMBER;
hash = (53 * hash) + getPromptFeedback().hashCode();
@@ -3123,6 +3184,7 @@ public Builder clear() {
candidatesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
+ modelVersion_ = "";
promptFeedback_ = null;
if (promptFeedbackBuilder_ != null) {
promptFeedbackBuilder_.dispose();
@@ -3183,13 +3245,16 @@ private void buildPartialRepeatedFields(
private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GenerateContentResponse result) {
int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.modelVersion_ = modelVersion_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
result.promptFeedback_ =
promptFeedbackBuilder_ == null ? promptFeedback_ : promptFeedbackBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.usageMetadata_ =
usageMetadataBuilder_ == null ? usageMetadata_ : usageMetadataBuilder_.build();
to_bitField0_ |= 0x00000002;
@@ -3270,6 +3335,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenerateContentResp
}
}
}
+ if (!other.getModelVersion().isEmpty()) {
+ modelVersion_ = other.modelVersion_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
if (other.hasPromptFeedback()) {
mergePromptFeedback(other.getPromptFeedback());
}
@@ -3318,15 +3388,21 @@ public Builder mergeFrom(
case 26:
{
input.readMessage(getPromptFeedbackFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getUsageMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 34
+ case 90:
+ {
+ modelVersion_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 90
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3734,6 +3810,112 @@ public com.google.cloud.aiplatform.v1beta1.Candidate.Builder addCandidatesBuilde
return candidatesBuilder_;
}
+ private java.lang.Object modelVersion_ = "";
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The modelVersion.
+ */
+ public java.lang.String getModelVersion() {
+ java.lang.Object ref = modelVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ modelVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for modelVersion.
+ */
+ public com.google.protobuf.ByteString getModelVersionBytes() {
+ java.lang.Object ref = modelVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ modelVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The modelVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ modelVersion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearModelVersion() {
+ modelVersion_ = getDefaultInstance().getModelVersion();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for modelVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ modelVersion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
private com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback
promptFeedback_;
private com.google.protobuf.SingleFieldBuilderV3<
@@ -3757,7 +3939,7 @@ public com.google.cloud.aiplatform.v1beta1.Candidate.Builder addCandidatesBuilde
* @return Whether the promptFeedback field is set.
*/
public boolean hasPromptFeedback() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -3808,7 +3990,7 @@ public Builder setPromptFeedback(
} else {
promptFeedbackBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3833,7 +4015,7 @@ public Builder setPromptFeedback(
} else {
promptFeedbackBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3853,7 +4035,7 @@ public Builder setPromptFeedback(
public Builder mergePromptFeedback(
com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback value) {
if (promptFeedbackBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
+ if (((bitField0_ & 0x00000004) != 0)
&& promptFeedback_ != null
&& promptFeedback_
!= com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback
@@ -3866,7 +4048,7 @@ public Builder mergePromptFeedback(
promptFeedbackBuilder_.mergeFrom(value);
}
if (promptFeedback_ != null) {
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
}
return this;
@@ -3885,7 +4067,7 @@ public Builder mergePromptFeedback(
*
*/
public Builder clearPromptFeedback() {
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
promptFeedback_ = null;
if (promptFeedbackBuilder_ != null) {
promptFeedbackBuilder_.dispose();
@@ -3909,7 +4091,7 @@ public Builder clearPromptFeedback() {
*/
public com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.Builder
getPromptFeedbackBuilder() {
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return getPromptFeedbackFieldBuilder().getBuilder();
}
@@ -3989,7 +4171,7 @@ public Builder clearPromptFeedback() {
* @return Whether the usageMetadata field is set.
*/
public boolean hasUsageMetadata() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -4036,7 +4218,7 @@ public Builder setUsageMetadata(
} else {
usageMetadataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -4059,7 +4241,7 @@ public Builder setUsageMetadata(
} else {
usageMetadataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -4077,7 +4259,7 @@ public Builder setUsageMetadata(
public Builder mergeUsageMetadata(
com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata value) {
if (usageMetadataBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
+ if (((bitField0_ & 0x00000008) != 0)
&& usageMetadata_ != null
&& usageMetadata_
!= com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata
@@ -4090,7 +4272,7 @@ public Builder mergeUsageMetadata(
usageMetadataBuilder_.mergeFrom(value);
}
if (usageMetadata_ != null) {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
return this;
@@ -4107,7 +4289,7 @@ public Builder mergeUsageMetadata(
*
*/
public Builder clearUsageMetadata() {
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
usageMetadata_ = null;
if (usageMetadataBuilder_ != null) {
usageMetadataBuilder_.dispose();
@@ -4129,7 +4311,7 @@ public Builder clearUsageMetadata() {
*/
public com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.Builder
getUsageMetadataBuilder() {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return getUsageMetadataFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponseOrBuilder.java
index 820ce3a2f3bd..dca7532ce3f8 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponseOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponseOrBuilder.java
@@ -86,6 +86,31 @@ public interface GenerateContentResponseOrBuilder
*/
com.google.cloud.aiplatform.v1beta1.CandidateOrBuilder getCandidatesOrBuilder(int index);
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The modelVersion.
+ */
+ java.lang.String getModelVersion();
+ /**
+ *
+ *
+ * + * Output only. The model version used to generate the response. + *+ * + *
string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for modelVersion.
+ */
+ com.google.protobuf.ByteString getModelVersionBytes();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java
index f7fa1315ec74..f86ec8bf8614 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java
@@ -3352,6 +3352,72 @@ public com.google.protobuf.ByteString getStopSequencesBytes(int index) {
return stopSequences_.getByteString(index);
}
+ public static final int RESPONSE_LOGPROBS_FIELD_NUMBER = 18;
+ private boolean responseLogprobs_ = false;
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the responseLogprobs field is set.
+ */
+ @java.lang.Override
+ public boolean hasResponseLogprobs() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The responseLogprobs.
+ */
+ @java.lang.Override
+ public boolean getResponseLogprobs() {
+ return responseLogprobs_;
+ }
+
+ public static final int LOGPROBS_FIELD_NUMBER = 7;
+ private int logprobs_ = 0;
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the logprobs field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogprobs() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The logprobs.
+ */
+ @java.lang.Override
+ public int getLogprobs() {
+ return logprobs_;
+ }
+
public static final int PRESENCE_PENALTY_FIELD_NUMBER = 8;
private float presencePenalty_ = 0F;
/**
@@ -3367,7 +3433,7 @@ public com.google.protobuf.ByteString getStopSequencesBytes(int index) {
*/
@java.lang.Override
public boolean hasPresencePenalty() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -3400,7 +3466,7 @@ public float getPresencePenalty() {
*/
@java.lang.Override
public boolean hasFrequencyPenalty() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -3433,7 +3499,7 @@ public float getFrequencyPenalty() {
*/
@java.lang.Override
public boolean hasSeed() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
@@ -3537,7 +3603,7 @@ public com.google.protobuf.ByteString getResponseMimeTypeBytes() {
*/
@java.lang.Override
public boolean hasResponseSchema() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
@@ -3605,7 +3671,7 @@ public com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder getResponseSchemaOrBu
*/
@java.lang.Override
public boolean hasRoutingConfig() {
- return ((bitField0_ & 0x00000200) != 0);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
*
@@ -3677,24 +3743,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < stopSequences_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stopSequences_.getRaw(i));
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeInt32(7, logprobs_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
output.writeFloat(8, presencePenalty_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
output.writeFloat(9, frequencyPenalty_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt32(12, seed_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, responseMimeType_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(16, getResponseSchema());
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(17, getRoutingConfig());
}
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeBool(18, responseLogprobs_);
+ }
getUnknownFields().writeTo(output);
}
@@ -3727,24 +3799,30 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getStopSequencesList().size();
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, logprobs_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, presencePenalty_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, frequencyPenalty_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, seed_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, responseMimeType_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getResponseSchema());
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getRoutingConfig());
}
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3785,6 +3863,14 @@ public boolean equals(final java.lang.Object obj) {
if (getMaxOutputTokens() != other.getMaxOutputTokens()) return false;
}
if (!getStopSequencesList().equals(other.getStopSequencesList())) return false;
+ if (hasResponseLogprobs() != other.hasResponseLogprobs()) return false;
+ if (hasResponseLogprobs()) {
+ if (getResponseLogprobs() != other.getResponseLogprobs()) return false;
+ }
+ if (hasLogprobs() != other.hasLogprobs()) return false;
+ if (hasLogprobs()) {
+ if (getLogprobs() != other.getLogprobs()) return false;
+ }
if (hasPresencePenalty() != other.hasPresencePenalty()) return false;
if (hasPresencePenalty()) {
if (java.lang.Float.floatToIntBits(getPresencePenalty())
@@ -3843,6 +3929,14 @@ public int hashCode() {
hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER;
hash = (53 * hash) + getStopSequencesList().hashCode();
}
+ if (hasResponseLogprobs()) {
+ hash = (37 * hash) + RESPONSE_LOGPROBS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResponseLogprobs());
+ }
+ if (hasLogprobs()) {
+ hash = (37 * hash) + LOGPROBS_FIELD_NUMBER;
+ hash = (53 * hash) + getLogprobs();
+ }
if (hasPresencePenalty()) {
hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getPresencePenalty());
@@ -4020,6 +4114,8 @@ public Builder clear() {
candidateCount_ = 0;
maxOutputTokens_ = 0;
stopSequences_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ responseLogprobs_ = false;
+ logprobs_ = 0;
presencePenalty_ = 0F;
frequencyPenalty_ = 0F;
seed_ = 0;
@@ -4096,29 +4192,37 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GenerationConfig
result.stopSequences_ = stopSequences_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
- result.presencePenalty_ = presencePenalty_;
+ result.responseLogprobs_ = responseLogprobs_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
- result.frequencyPenalty_ = frequencyPenalty_;
+ result.logprobs_ = logprobs_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
- result.seed_ = seed_;
+ result.presencePenalty_ = presencePenalty_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
- result.responseMimeType_ = responseMimeType_;
+ result.frequencyPenalty_ = frequencyPenalty_;
+ to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.seed_ = seed_;
+ to_bitField0_ |= 0x00000200;
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.responseMimeType_ = responseMimeType_;
+ }
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.responseSchema_ =
responseSchemaBuilder_ == null ? responseSchema_ : responseSchemaBuilder_.build();
- to_bitField0_ |= 0x00000100;
+ to_bitField0_ |= 0x00000400;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
result.routingConfig_ =
routingConfigBuilder_ == null ? routingConfig_ : routingConfigBuilder_.build();
- to_bitField0_ |= 0x00000200;
+ to_bitField0_ |= 0x00000800;
}
result.bitField0_ |= to_bitField0_;
}
@@ -4194,6 +4298,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenerationConfig ot
}
onChanged();
}
+ if (other.hasResponseLogprobs()) {
+ setResponseLogprobs(other.getResponseLogprobs());
+ }
+ if (other.hasLogprobs()) {
+ setLogprobs(other.getLogprobs());
+ }
if (other.hasPresencePenalty()) {
setPresencePenalty(other.getPresencePenalty());
}
@@ -4205,7 +4315,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenerationConfig ot
}
if (!other.getResponseMimeType().isEmpty()) {
responseMimeType_ = other.responseMimeType_;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000800;
onChanged();
}
if (other.hasResponseSchema()) {
@@ -4277,42 +4387,54 @@ public Builder mergeFrom(
stopSequences_.add(s);
break;
} // case 50
+ case 56:
+ {
+ logprobs_ = input.readInt32();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 56
case 69:
{
presencePenalty_ = input.readFloat();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000100;
break;
} // case 69
case 77:
{
frequencyPenalty_ = input.readFloat();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000200;
break;
} // case 77
case 96:
{
seed_ = input.readInt32();
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000400;
break;
} // case 96
case 106:
{
responseMimeType_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000800;
break;
} // case 106
case 130:
{
input.readMessage(getResponseSchemaFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
break;
} // case 130
case 138:
{
input.readMessage(getRoutingConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
break;
} // case 138
+ case 144:
+ {
+ responseLogprobs_ = input.readBool();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 144
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4846,6 +4968,142 @@ public Builder addStopSequencesBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private boolean responseLogprobs_;
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the responseLogprobs field is set.
+ */
+ @java.lang.Override
+ public boolean hasResponseLogprobs() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The responseLogprobs.
+ */
+ @java.lang.Override
+ public boolean getResponseLogprobs() {
+ return responseLogprobs_;
+ }
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The responseLogprobs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseLogprobs(boolean value) {
+
+ responseLogprobs_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResponseLogprobs() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ responseLogprobs_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int logprobs_;
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the logprobs field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogprobs() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The logprobs.
+ */
+ @java.lang.Override
+ public int getLogprobs() {
+ return logprobs_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The logprobs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLogprobs(int value) {
+
+ logprobs_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLogprobs() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ logprobs_ = 0;
+ onChanged();
+ return this;
+ }
+
private float presencePenalty_;
/**
*
@@ -4860,7 +5118,7 @@ public Builder addStopSequencesBytes(com.google.protobuf.ByteString value) {
*/
@java.lang.Override
public boolean hasPresencePenalty() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -4892,7 +5150,7 @@ public float getPresencePenalty() {
public Builder setPresencePenalty(float value) {
presencePenalty_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -4908,7 +5166,7 @@ public Builder setPresencePenalty(float value) {
* @return This builder for chaining.
*/
public Builder clearPresencePenalty() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000100);
presencePenalty_ = 0F;
onChanged();
return this;
@@ -4928,7 +5186,7 @@ public Builder clearPresencePenalty() {
*/
@java.lang.Override
public boolean hasFrequencyPenalty() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
@@ -4960,7 +5218,7 @@ public float getFrequencyPenalty() {
public Builder setFrequencyPenalty(float value) {
frequencyPenalty_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -4976,7 +5234,7 @@ public Builder setFrequencyPenalty(float value) {
* @return This builder for chaining.
*/
public Builder clearFrequencyPenalty() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000200);
frequencyPenalty_ = 0F;
onChanged();
return this;
@@ -4996,7 +5254,7 @@ public Builder clearFrequencyPenalty() {
*/
@java.lang.Override
public boolean hasSeed() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
@@ -5028,7 +5286,7 @@ public int getSeed() {
public Builder setSeed(int value) {
seed_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -5044,7 +5302,7 @@ public Builder setSeed(int value) {
* @return This builder for chaining.
*/
public Builder clearSeed() {
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000400);
seed_ = 0;
onChanged();
return this;
@@ -5130,7 +5388,7 @@ public Builder setResponseMimeType(java.lang.String value) {
throw new NullPointerException();
}
responseMimeType_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -5153,7 +5411,7 @@ public Builder setResponseMimeType(java.lang.String value) {
*/
public Builder clearResponseMimeType() {
responseMimeType_ = getDefaultInstance().getResponseMimeType();
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
@@ -5181,7 +5439,7 @@ public Builder setResponseMimeTypeBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
responseMimeType_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -5212,7 +5470,7 @@ public Builder setResponseMimeTypeBytes(com.google.protobuf.ByteString value) {
* @return Whether the responseSchema field is set.
*/
public boolean hasResponseSchema() {
- return ((bitField0_ & 0x00000400) != 0);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
*
@@ -5268,7 +5526,7 @@ public Builder setResponseSchema(com.google.cloud.aiplatform.v1beta1.Schema valu
} else {
responseSchemaBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -5296,7 +5554,7 @@ public Builder setResponseSchema(
} else {
responseSchemaBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -5319,7 +5577,7 @@ public Builder setResponseSchema(
*/
public Builder mergeResponseSchema(com.google.cloud.aiplatform.v1beta1.Schema value) {
if (responseSchemaBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0)
+ if (((bitField0_ & 0x00001000) != 0)
&& responseSchema_ != null
&& responseSchema_ != com.google.cloud.aiplatform.v1beta1.Schema.getDefaultInstance()) {
getResponseSchemaBuilder().mergeFrom(value);
@@ -5330,7 +5588,7 @@ public Builder mergeResponseSchema(com.google.cloud.aiplatform.v1beta1.Schema va
responseSchemaBuilder_.mergeFrom(value);
}
if (responseSchema_ != null) {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
onChanged();
}
return this;
@@ -5353,7 +5611,7 @@ public Builder mergeResponseSchema(com.google.cloud.aiplatform.v1beta1.Schema va
*
*/
public Builder clearResponseSchema() {
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00001000);
responseSchema_ = null;
if (responseSchemaBuilder_ != null) {
responseSchemaBuilder_.dispose();
@@ -5380,7 +5638,7 @@ public Builder clearResponseSchema() {
*
*/
public com.google.cloud.aiplatform.v1beta1.Schema.Builder getResponseSchemaBuilder() {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00001000;
onChanged();
return getResponseSchemaFieldBuilder().getBuilder();
}
@@ -5464,7 +5722,7 @@ public com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder getResponseSchemaOrBu
* @return Whether the routingConfig field is set.
*/
public boolean hasRoutingConfig() {
- return ((bitField0_ & 0x00000800) != 0);
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
*
@@ -5510,7 +5768,7 @@ public Builder setRoutingConfig(
} else {
routingConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -5533,7 +5791,7 @@ public Builder setRoutingConfig(
} else {
routingConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -5551,7 +5809,7 @@ public Builder setRoutingConfig(
public Builder mergeRoutingConfig(
com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig value) {
if (routingConfigBuilder_ == null) {
- if (((bitField0_ & 0x00000800) != 0)
+ if (((bitField0_ & 0x00002000) != 0)
&& routingConfig_ != null
&& routingConfig_
!= com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig
@@ -5564,7 +5822,7 @@ public Builder mergeRoutingConfig(
routingConfigBuilder_.mergeFrom(value);
}
if (routingConfig_ != null) {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
onChanged();
}
return this;
@@ -5581,7 +5839,7 @@ public Builder mergeRoutingConfig(
*
*/
public Builder clearRoutingConfig() {
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00002000);
routingConfig_ = null;
if (routingConfigBuilder_ != null) {
routingConfigBuilder_.dispose();
@@ -5603,7 +5861,7 @@ public Builder clearRoutingConfig() {
*/
public com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.Builder
getRoutingConfigBuilder() {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00002000;
onChanged();
return getRoutingConfigFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java
index 8a7f2c638da8..805725808edc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java
@@ -200,6 +200,56 @@ public interface GenerationConfigOrBuilder
*/
com.google.protobuf.ByteString getStopSequencesBytes(int index);
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the responseLogprobs field is set.
+ */
+ boolean hasResponseLogprobs();
+ /**
+ *
+ *
+ * + * Optional. If true, export the logprobs results in response. + *+ * + *
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The responseLogprobs.
+ */
+ boolean getResponseLogprobs();
+
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the logprobs field is set.
+ */
+ boolean hasLogprobs();
+ /**
+ *
+ *
+ * + * Optional. Logit probabilities. + *+ * + *
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The logprobs.
+ */
+ int getLogprobs();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LogprobsResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LogprobsResult.java
new file mode 100644
index 000000000000..7b7b5f6e338a
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LogprobsResult.java
@@ -0,0 +1,3644 @@
+/*
+ * Copyright 2024 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.4
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Logprobs Result + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LogprobsResult} + */ +public final class LogprobsResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.LogprobsResult) + LogprobsResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogprobsResult.newBuilder() to construct. + private LogprobsResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LogprobsResult() { + topCandidates_ = java.util.Collections.emptyList(); + chosenCandidates_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogprobsResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LogprobsResult.class, + com.google.cloud.aiplatform.v1beta1.LogprobsResult.Builder.class); + } + + public interface CandidateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return Whether the token field is set.
+ */
+ boolean hasToken();
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The token.
+ */
+ java.lang.String getToken();
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ com.google.protobuf.ByteString getTokenBytes();
+
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return Whether the tokenId field is set.
+ */
+ boolean hasTokenId();
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return The tokenId.
+ */
+ int getTokenId();
+
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return Whether the logProbability field is set.
+ */
+ boolean hasLogProbability();
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return The logProbability.
+ */
+ float getLogProbability();
+ }
+ /**
+ *
+ *
+ * + * Candidate for the logprobs token and score. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate} + */ + public static final class Candidate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate) + CandidateOrBuilder { + private static final long serialVersionUID = 0L; + // Use Candidate.newBuilder() to construct. + private Candidate(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Candidate() { + token_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Candidate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_Candidate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_Candidate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.class, + com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + * + * + *
+ * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return Whether the token field is set.
+ */
+ @java.lang.Override
+ public boolean hasToken() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The token.
+ */
+ @java.lang.Override
+ public java.lang.String getToken() {
+ java.lang.Object ref = token_;
+ 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();
+ token_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTokenBytes() {
+ java.lang.Object ref = token_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ token_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TOKEN_ID_FIELD_NUMBER = 3;
+ private int tokenId_ = 0;
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return Whether the tokenId field is set.
+ */
+ @java.lang.Override
+ public boolean hasTokenId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return The tokenId.
+ */
+ @java.lang.Override
+ public int getTokenId() {
+ return tokenId_;
+ }
+
+ public static final int LOG_PROBABILITY_FIELD_NUMBER = 2;
+ private float logProbability_ = 0F;
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return Whether the logProbability field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogProbability() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return The logProbability.
+ */
+ @java.lang.Override
+ public float getLogProbability() {
+ return logProbability_;
+ }
+
+ 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, token_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeFloat(2, logProbability_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt32(3, tokenId_);
+ }
+ 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, token_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, logProbability_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, tokenId_);
+ }
+ 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.LogprobsResult.Candidate)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate other =
+ (com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate) obj;
+
+ if (hasToken() != other.hasToken()) return false;
+ if (hasToken()) {
+ if (!getToken().equals(other.getToken())) return false;
+ }
+ if (hasTokenId() != other.hasTokenId()) return false;
+ if (hasTokenId()) {
+ if (getTokenId() != other.getTokenId()) return false;
+ }
+ if (hasLogProbability() != other.hasLogProbability()) return false;
+ if (hasLogProbability()) {
+ if (java.lang.Float.floatToIntBits(getLogProbability())
+ != java.lang.Float.floatToIntBits(other.getLogProbability())) 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 (hasToken()) {
+ hash = (37 * hash) + TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getToken().hashCode();
+ }
+ if (hasTokenId()) {
+ hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTokenId();
+ }
+ if (hasLogProbability()) {
+ hash = (37 * hash) + LOG_PROBABILITY_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getLogProbability());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate 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.LogprobsResult.Candidate parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate 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.LogprobsResult.Candidate parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate 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.LogprobsResult.Candidate parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate 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.LogprobsResult.Candidate parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate 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.LogprobsResult.Candidate 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.LogprobsResult.Candidate 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.LogprobsResult.Candidate 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;
+ }
+ /**
+ *
+ *
+ * + * Candidate for the logprobs token and score. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return Whether the token field is set.
+ */
+ public boolean hasToken() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The token.
+ */
+ public java.lang.String getToken() {
+ java.lang.Object ref = token_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ token_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ public com.google.protobuf.ByteString getTokenBytes() {
+ java.lang.Object ref = token_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ token_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @param value The token to set.
+ * @return This builder for chaining.
+ */
+ public Builder setToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ token_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearToken() {
+ token_ = getDefaultInstance().getToken();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token string value. + *+ * + *
optional string token = 1;
+ *
+ * @param value The bytes for token to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ token_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int tokenId_;
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return Whether the tokenId field is set.
+ */
+ @java.lang.Override
+ public boolean hasTokenId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return The tokenId.
+ */
+ @java.lang.Override
+ public int getTokenId() {
+ return tokenId_;
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @param value The tokenId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTokenId(int value) {
+
+ tokenId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The candidate’s token id value. + *+ * + *
optional int32 token_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTokenId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ tokenId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private float logProbability_;
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return Whether the logProbability field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogProbability() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return The logProbability.
+ */
+ @java.lang.Override
+ public float getLogProbability() {
+ return logProbability_;
+ }
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @param value The logProbability to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLogProbability(float value) {
+
+ logProbability_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The candidate's log probability. + *+ * + *
optional float log_probability = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLogProbability() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ logProbability_ = 0F;
+ 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.LogprobsResult.Candidate)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate)
+ private static final com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ java.util.List+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate getCandidates(int index);
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ int getCandidatesCount();
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder>
+ getCandidatesOrBuilderList();
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder getCandidatesOrBuilder(
+ int index);
+ }
+ /**
+ *
+ *
+ * + * Candidates with top log probabilities at each decoding step. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates} + */ + public static final class TopCandidates extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates) + TopCandidatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TopCandidates.newBuilder() to construct. + private TopCandidates(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private TopCandidates() { + candidates_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TopCandidates(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_TopCandidates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_TopCandidates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.class, + com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.Builder.class); + } + + public static final int CANDIDATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder>
+ getCandidatesOrBuilderList() {
+ return candidates_;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public int getCandidatesCount() {
+ return candidates_.size();
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate getCandidates(int index) {
+ return candidates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder
+ getCandidatesOrBuilder(int index) {
+ return candidates_.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 < candidates_.size(); i++) {
+ output.writeMessage(1, candidates_.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 < candidates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, candidates_.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.LogprobsResult.TopCandidates)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates other =
+ (com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates) obj;
+
+ if (!getCandidatesList().equals(other.getCandidatesList())) 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 (getCandidatesCount() > 0) {
+ hash = (37 * hash) + CANDIDATES_FIELD_NUMBER;
+ hash = (53 * hash) + getCandidatesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates
+ 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.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates 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.LogprobsResult.TopCandidates 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;
+ }
+ /**
+ *
+ *
+ * + * Candidates with top log probabilities at each decoding step. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public java.util.List+ * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public int getCandidatesCount() {
+ if (candidatesBuilder_ == null) {
+ return candidates_.size();
+ } else {
+ return candidatesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate getCandidates(int index) {
+ if (candidatesBuilder_ == null) {
+ return candidates_.get(index);
+ } else {
+ return candidatesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder setCandidates(
+ int index, com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate value) {
+ if (candidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCandidatesIsMutable();
+ candidates_.set(index, value);
+ onChanged();
+ } else {
+ candidatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder setCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ candidates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ candidatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder addCandidates(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate value) {
+ if (candidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCandidatesIsMutable();
+ candidates_.add(value);
+ onChanged();
+ } else {
+ candidatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder addCandidates(
+ int index, com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate value) {
+ if (candidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCandidatesIsMutable();
+ candidates_.add(index, value);
+ onChanged();
+ } else {
+ candidatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder addCandidates(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ candidates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ candidatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder addCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ candidates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ candidatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder addAllCandidates(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate>
+ values) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, candidates_);
+ onChanged();
+ } else {
+ candidatesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder clearCandidates() {
+ if (candidatesBuilder_ == null) {
+ candidates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ candidatesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public Builder removeCandidates(int index) {
+ if (candidatesBuilder_ == null) {
+ ensureCandidatesIsMutable();
+ candidates_.remove(index);
+ onChanged();
+ } else {
+ candidatesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder
+ getCandidatesBuilder(int index) {
+ return getCandidatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder
+ getCandidatesOrBuilder(int index) {
+ if (candidatesBuilder_ == null) {
+ return candidates_.get(index);
+ } else {
+ return candidatesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder>
+ getCandidatesOrBuilderList() {
+ if (candidatesBuilder_ != null) {
+ return candidatesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(candidates_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder
+ addCandidatesBuilder() {
+ return getCandidatesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder
+ addCandidatesBuilder(int index) {
+ return getCandidatesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Sorted by log probability in descending order. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate candidates = 1;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidatesOrBuilder>
+ getTopCandidatesOrBuilderList() {
+ return topCandidates_;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public int getTopCandidatesCount() {
+ return topCandidates_.size();
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates getTopCandidates(
+ int index) {
+ return topCandidates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidatesOrBuilder
+ getTopCandidatesOrBuilder(int index) {
+ return topCandidates_.get(index);
+ }
+
+ public static final int CHOSEN_CANDIDATES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder>
+ getChosenCandidatesOrBuilderList() {
+ return chosenCandidates_;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public int getChosenCandidatesCount() {
+ return chosenCandidates_.size();
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate getChosenCandidates(
+ int index) {
+ return chosenCandidates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder
+ getChosenCandidatesOrBuilder(int index) {
+ return chosenCandidates_.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 < topCandidates_.size(); i++) {
+ output.writeMessage(1, topCandidates_.get(i));
+ }
+ for (int i = 0; i < chosenCandidates_.size(); i++) {
+ output.writeMessage(2, chosenCandidates_.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 < topCandidates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topCandidates_.get(i));
+ }
+ for (int i = 0; i < chosenCandidates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, chosenCandidates_.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.LogprobsResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult other =
+ (com.google.cloud.aiplatform.v1beta1.LogprobsResult) obj;
+
+ if (!getTopCandidatesList().equals(other.getTopCandidatesList())) return false;
+ if (!getChosenCandidatesList().equals(other.getChosenCandidatesList())) 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 (getTopCandidatesCount() > 0) {
+ hash = (37 * hash) + TOP_CANDIDATES_FIELD_NUMBER;
+ hash = (53 * hash) + getTopCandidatesList().hashCode();
+ }
+ if (getChosenCandidatesCount() > 0) {
+ hash = (37 * hash) + CHOSEN_CANDIDATES_FIELD_NUMBER;
+ hash = (53 * hash) + getChosenCandidatesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult 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.LogprobsResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult 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.LogprobsResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult 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.LogprobsResult parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult 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.LogprobsResult parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.LogprobsResult 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.LogprobsResult 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.LogprobsResult 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.LogprobsResult 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;
+ }
+ /**
+ *
+ *
+ * + * Logprobs Result + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LogprobsResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public int getTopCandidatesCount() {
+ if (topCandidatesBuilder_ == null) {
+ return topCandidates_.size();
+ } else {
+ return topCandidatesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates getTopCandidates(
+ int index) {
+ if (topCandidatesBuilder_ == null) {
+ return topCandidates_.get(index);
+ } else {
+ return topCandidatesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder setTopCandidates(
+ int index, com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates value) {
+ if (topCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopCandidatesIsMutable();
+ topCandidates_.set(index, value);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder setTopCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.Builder builderForValue) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ topCandidates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ topCandidatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addTopCandidates(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates value) {
+ if (topCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopCandidatesIsMutable();
+ topCandidates_.add(value);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addTopCandidates(
+ int index, com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates value) {
+ if (topCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopCandidatesIsMutable();
+ topCandidates_.add(index, value);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addTopCandidates(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.Builder builderForValue) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ topCandidates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addTopCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.Builder builderForValue) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ topCandidates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder addAllTopCandidates(
+ java.lang.Iterable<
+ ? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates>
+ values) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topCandidates_);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder clearTopCandidates() {
+ if (topCandidatesBuilder_ == null) {
+ topCandidates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public Builder removeTopCandidates(int index) {
+ if (topCandidatesBuilder_ == null) {
+ ensureTopCandidatesIsMutable();
+ topCandidates_.remove(index);
+ onChanged();
+ } else {
+ topCandidatesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.Builder
+ getTopCandidatesBuilder(int index) {
+ return getTopCandidatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidatesOrBuilder
+ getTopCandidatesOrBuilder(int index) {
+ if (topCandidatesBuilder_ == null) {
+ return topCandidates_.get(index);
+ } else {
+ return topCandidatesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidatesOrBuilder>
+ getTopCandidatesOrBuilderList() {
+ if (topCandidatesBuilder_ != null) {
+ return topCandidatesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(topCandidates_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.Builder
+ addTopCandidatesBuilder() {
+ return getTopCandidatesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.Builder
+ addTopCandidatesBuilder(int index) {
+ return getTopCandidatesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public int getChosenCandidatesCount() {
+ if (chosenCandidatesBuilder_ == null) {
+ return chosenCandidates_.size();
+ } else {
+ return chosenCandidatesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate getChosenCandidates(
+ int index) {
+ if (chosenCandidatesBuilder_ == null) {
+ return chosenCandidates_.get(index);
+ } else {
+ return chosenCandidatesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder setChosenCandidates(
+ int index, com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate value) {
+ if (chosenCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.set(index, value);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder setChosenCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addChosenCandidates(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate value) {
+ if (chosenCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.add(value);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addChosenCandidates(
+ int index, com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate value) {
+ if (chosenCandidatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.add(index, value);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addChosenCandidates(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addChosenCandidates(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder builderForValue) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder addAllChosenCandidates(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate>
+ values) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chosenCandidates_);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder clearChosenCandidates() {
+ if (chosenCandidatesBuilder_ == null) {
+ chosenCandidates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public Builder removeChosenCandidates(int index) {
+ if (chosenCandidatesBuilder_ == null) {
+ ensureChosenCandidatesIsMutable();
+ chosenCandidates_.remove(index);
+ onChanged();
+ } else {
+ chosenCandidatesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder
+ getChosenCandidatesBuilder(int index) {
+ return getChosenCandidatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder
+ getChosenCandidatesOrBuilder(int index) {
+ if (chosenCandidatesBuilder_ == null) {
+ return chosenCandidates_.get(index);
+ } else {
+ return chosenCandidatesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder>
+ getChosenCandidatesOrBuilderList() {
+ if (chosenCandidatesBuilder_ != null) {
+ return chosenCandidatesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(chosenCandidates_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder
+ addChosenCandidatesBuilder() {
+ return getChosenCandidatesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.Builder
+ addChosenCandidatesBuilder(int index) {
+ return getChosenCandidatesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ public java.util.List+ * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ java.util.List+ * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates getTopCandidates(int index);
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ int getTopCandidatesCount();
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidatesOrBuilder>
+ getTopCandidatesOrBuilderList();
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidatesOrBuilder
+ getTopCandidatesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ java.util.List+ * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate getChosenCandidates(int index);
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ int getChosenCandidatesCount();
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder>
+ getChosenCandidatesOrBuilderList();
+ /**
+ *
+ *
+ * + * Length = total number of decoding steps. + * The chosen candidates may or may not be in top_candidates. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder
+ getChosenCandidatesOrBuilder(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OpenApiProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OpenApiProto.java
index d2dd088a7a4d..28dab0003df1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OpenApiProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OpenApiProto.java
@@ -48,7 +48,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n-google/cloud/aiplatform/v1beta1/openap"
+ "i.proto\022\037google.cloud.aiplatform.v1beta1"
+ "\032\037google/api/field_behavior.proto\032\034googl"
- + "e/protobuf/struct.proto\"\213\006\n\006Schema\0228\n\004ty"
+ + "e/protobuf/struct.proto\"\311\006\n\006Schema\0228\n\004ty"
+ "pe\030\001 \001(\0162%.google.cloud.aiplatform.v1bet"
+ "a1.TypeB\003\340A\001\022\023\n\006format\030\007 \001(\tB\003\340A\001\022\022\n\005tit"
+ "le\030\030 \001(\tB\003\340A\001\022\030\n\013description\030\010 \001(\tB\003\340A\001\022"
@@ -65,18 +65,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "um\030\020 \001(\001B\003\340A\001\022\024\n\007maximum\030\021 \001(\001B\003\340A\001\022\027\n\nm"
+ "in_length\030\022 \001(\003B\003\340A\001\022\027\n\nmax_length\030\023 \001(\003"
+ "B\003\340A\001\022\024\n\007pattern\030\024 \001(\tB\003\340A\001\022,\n\007example\030\004"
- + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\032Z\n\017Pro"
- + "pertiesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\013"
- + "2\'.google.cloud.aiplatform.v1beta1.Schem"
- + "a:\0028\001*e\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006S"
- + "TRING\020\001\022\n\n\006NUMBER\020\002\022\013\n\007INTEGER\020\003\022\013\n\007BOOL"
- + "EAN\020\004\022\t\n\005ARRAY\020\005\022\n\n\006OBJECT\020\006B\343\001\n#com.goo"
- + "gle.cloud.aiplatform.v1beta1B\014OpenApiPro"
- + "toP\001ZCcloud.google.com/go/aiplatform/api"
- + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog"
- + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo"
- + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::A"
- + "IPlatform::V1beta1b\006proto3"
+ + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\022<\n\006any"
+ + "_of\030\013 \003(\0132\'.google.cloud.aiplatform.v1be"
+ + "ta1.SchemaB\003\340A\001\032Z\n\017PropertiesEntry\022\013\n\003ke"
+ + "y\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud.ai"
+ + "platform.v1beta1.Schema:\0028\001*e\n\004Type\022\024\n\020T"
+ + "YPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\n\n\006NUMBER\020"
+ + "\002\022\013\n\007INTEGER\020\003\022\013\n\007BOOLEAN\020\004\022\t\n\005ARRAY\020\005\022\n"
+ + "\n\006OBJECT\020\006B\343\001\n#com.google.cloud.aiplatfo"
+ + "rm.v1beta1B\014OpenApiProtoP\001ZCcloud.google"
+ + ".com/go/aiplatform/apiv1beta1/aiplatform"
+ + "pb;aiplatformpb\252\002\037Google.Cloud.AIPlatfor"
+ + "m.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1be"
+ + "ta1\352\002\"Google::Cloud::AIPlatform::V1beta1"
+ + "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -112,6 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MaxLength",
"Pattern",
"Example",
+ "AnyOf",
});
internal_static_google_cloud_aiplatform_v1beta1_Schema_PropertiesEntry_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_Schema_descriptor.getNestedTypes().get(0);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java
index 6c3c8e691e7a..7835a4c7887c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java
@@ -292,149 +292,149 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tion_config\030\004 \001(\01321.google.cloud.aiplatf"
+ "orm.v1beta1.GenerationConfigB\003\340A\001\032-\n\013Lab"
+ "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
- + "B\025\n\023_system_instruction\"\232\006\n\027GenerateCont"
+ + "B\025\n\023_system_instruction\"\266\006\n\027GenerateCont"
+ "entResponse\022C\n\ncandidates\030\002 \003(\0132*.google"
+ ".cloud.aiplatform.v1beta1.CandidateB\003\340A\003"
- + "\022e\n\017prompt_feedback\030\003 \001(\0132G.google.cloud"
- + ".aiplatform.v1beta1.GenerateContentRespo"
- + "nse.PromptFeedbackB\003\340A\003\022^\n\016usage_metadat"
- + "a\030\004 \001(\0132F.google.cloud.aiplatform.v1beta"
- + "1.GenerateContentResponse.UsageMetadata\032"
- + "\340\002\n\016PromptFeedback\022p\n\014block_reason\030\001 \001(\016"
- + "2U.google.cloud.aiplatform.v1beta1.Gener"
- + "ateContentResponse.PromptFeedback.Blocke"
- + "dReasonB\003\340A\003\022J\n\016safety_ratings\030\002 \003(\0132-.g"
- + "oogle.cloud.aiplatform.v1beta1.SafetyRat"
- + "ingB\003\340A\003\022!\n\024block_reason_message\030\003 \001(\tB\003"
- + "\340A\003\"m\n\rBlockedReason\022\036\n\032BLOCKED_REASON_U"
- + "NSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tB"
- + "LOCKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\032\217\001\n\rU"
- + "sageMetadata\022\032\n\022prompt_token_count\030\001 \001(\005"
- + "\022\036\n\026candidates_token_count\030\002 \001(\005\022\031\n\021tota"
- + "l_token_count\030\003 \001(\005\022\'\n\032cached_content_to"
- + "ken_count\030\005 \001(\005B\003\340A\003\"\204\001\n\026ChatCompletions"
- + "Request\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aipla"
- + "tform.googleapis.com/Endpoint\022,\n\thttp_bo"
- + "dy\030\002 \001(\0132\024.google.api.HttpBodyB\003\340A\001\"\203\001\n\032"
- + "PredictLongRunningResponse\022Y\n\027generate_v"
- + "ideo_response\030\001 \001(\01326.google.cloud.aipla"
- + "tform.v1beta1.GenerateVideoResponseH\000B\n\n"
- + "\010response\"\034\n\032PredictLongRunningMetadata\""
- + "\232\001\n\025GenerateVideoResponse\022\031\n\021generated_s"
- + "amples\030\001 \003(\t\022%\n\030rai_media_filtered_count"
- + "\030\002 \001(\005H\000\210\001\001\022\"\n\032rai_media_filtered_reason"
- + "s\030\003 \003(\tB\033\n\031_rai_media_filtered_count2\301 \n"
- + "\021PredictionService\022\250\002\n\007Predict\022/.google."
- + "cloud.aiplatform.v1beta1.PredictRequest\032"
- + "0.google.cloud.aiplatform.v1beta1.Predic"
- + "tResponse\"\271\001\332A\035endpoint,instances,parame"
- + "ters\202\323\344\223\002\222\001\">/v1beta1/{endpoint=projects"
- + "/*/locations/*/endpoints/*}:predict:\001*ZM"
- + "\"H/v1beta1/{endpoint=projects/*/location"
- + "s/*/publishers/*/models/*}:predict:\001*\022\215\002"
- + "\n\nRawPredict\0222.google.cloud.aiplatform.v"
- + "1beta1.RawPredictRequest\032\024.google.api.Ht"
- + "tpBody\"\264\001\332A\022endpoint,http_body\202\323\344\223\002\230\001\"A/"
- + "v1beta1/{endpoint=projects/*/locations/*"
- + "/endpoints/*}:rawPredict:\001*ZP\"K/v1beta1/"
- + "{endpoint=projects/*/locations/*/publish"
- + "ers/*/models/*}:rawPredict:\001*\022\247\002\n\020Stream"
- + "RawPredict\0228.google.cloud.aiplatform.v1b"
- + "eta1.StreamRawPredictRequest\032\024.google.ap"
- + "i.HttpBody\"\300\001\332A\022endpoint,http_body\202\323\344\223\002\244"
- + "\001\"G/v1beta1/{endpoint=projects/*/locatio"
- + "ns/*/endpoints/*}:streamRawPredict:\001*ZV\""
- + "Q/v1beta1/{endpoint=projects/*/locations"
- + "/*/publishers/*/models/*}:streamRawPredi"
- + "ct:\001*0\001\022\317\001\n\rDirectPredict\0225.google.cloud"
- + ".aiplatform.v1beta1.DirectPredictRequest"
- + "\0326.google.cloud.aiplatform.v1beta1.Direc"
- + "tPredictResponse\"O\202\323\344\223\002I\"D/v1beta1/{endp"
- + "oint=projects/*/locations/*/endpoints/*}"
- + ":directPredict:\001*\022\333\001\n\020DirectRawPredict\0228"
- + ".google.cloud.aiplatform.v1beta1.DirectR"
- + "awPredictRequest\0329.google.cloud.aiplatfo"
- + "rm.v1beta1.DirectRawPredictResponse\"R\202\323\344"
- + "\223\002L\"G/v1beta1/{endpoint=projects/*/locat"
- + "ions/*/endpoints/*}:directRawPredict:\001*\022"
- + "\226\001\n\023StreamDirectPredict\022;.google.cloud.a"
- + "iplatform.v1beta1.StreamDirectPredictReq"
- + "uest\032<.google.cloud.aiplatform.v1beta1.S"
- + "treamDirectPredictResponse\"\000(\0010\001\022\237\001\n\026Str"
- + "eamDirectRawPredict\022>.google.cloud.aipla"
- + "tform.v1beta1.StreamDirectRawPredictRequ"
- + "est\032?.google.cloud.aiplatform.v1beta1.St"
- + "reamDirectRawPredictResponse\"\000(\0010\001\022\215\001\n\020S"
- + "treamingPredict\0228.google.cloud.aiplatfor"
- + "m.v1beta1.StreamingPredictRequest\0329.goog"
+ + "\022\032\n\rmodel_version\030\013 \001(\tB\003\340A\003\022e\n\017prompt_f"
+ + "eedback\030\003 \001(\0132G.google.cloud.aiplatform."
+ + "v1beta1.GenerateContentResponse.PromptFe"
+ + "edbackB\003\340A\003\022^\n\016usage_metadata\030\004 \001(\0132F.go"
+ + "ogle.cloud.aiplatform.v1beta1.GenerateCo"
+ + "ntentResponse.UsageMetadata\032\340\002\n\016PromptFe"
+ + "edback\022p\n\014block_reason\030\001 \001(\0162U.google.cl"
+ + "oud.aiplatform.v1beta1.GenerateContentRe"
+ + "sponse.PromptFeedback.BlockedReasonB\003\340A\003"
+ + "\022J\n\016safety_ratings\030\002 \003(\0132-.google.cloud."
+ + "aiplatform.v1beta1.SafetyRatingB\003\340A\003\022!\n\024"
+ + "block_reason_message\030\003 \001(\tB\003\340A\003\"m\n\rBlock"
+ + "edReason\022\036\n\032BLOCKED_REASON_UNSPECIFIED\020\000"
+ + "\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020\003\022\026"
+ + "\n\022PROHIBITED_CONTENT\020\004\032\217\001\n\rUsageMetadata"
+ + "\022\032\n\022prompt_token_count\030\001 \001(\005\022\036\n\026candidat"
+ + "es_token_count\030\002 \001(\005\022\031\n\021total_token_coun"
+ + "t\030\003 \001(\005\022\'\n\032cached_content_token_count\030\005 "
+ + "\001(\005B\003\340A\003\"\204\001\n\026ChatCompletionsRequest\022<\n\010e"
+ + "ndpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.google"
+ + "apis.com/Endpoint\022,\n\thttp_body\030\002 \001(\0132\024.g"
+ + "oogle.api.HttpBodyB\003\340A\001\"\203\001\n\032PredictLongR"
+ + "unningResponse\022Y\n\027generate_video_respons"
+ + "e\030\001 \001(\01326.google.cloud.aiplatform.v1beta"
+ + "1.GenerateVideoResponseH\000B\n\n\010response\"\034\n"
+ + "\032PredictLongRunningMetadata\"\232\001\n\025Generate"
+ + "VideoResponse\022\031\n\021generated_samples\030\001 \003(\t"
+ + "\022%\n\030rai_media_filtered_count\030\002 \001(\005H\000\210\001\001\022"
+ + "\"\n\032rai_media_filtered_reasons\030\003 \003(\tB\033\n\031_"
+ + "rai_media_filtered_count2\301 \n\021PredictionS"
+ + "ervice\022\250\002\n\007Predict\022/.google.cloud.aiplat"
+ + "form.v1beta1.PredictRequest\0320.google.clo"
+ + "ud.aiplatform.v1beta1.PredictResponse\"\271\001"
+ + "\332A\035endpoint,instances,parameters\202\323\344\223\002\222\001\""
+ + ">/v1beta1/{endpoint=projects/*/locations"
+ + "/*/endpoints/*}:predict:\001*ZM\"H/v1beta1/{"
+ + "endpoint=projects/*/locations/*/publishe"
+ + "rs/*/models/*}:predict:\001*\022\215\002\n\nRawPredict"
+ + "\0222.google.cloud.aiplatform.v1beta1.RawPr"
+ + "edictRequest\032\024.google.api.HttpBody\"\264\001\332A\022"
+ + "endpoint,http_body\202\323\344\223\002\230\001\"A/v1beta1/{end"
+ + "point=projects/*/locations/*/endpoints/*"
+ + "}:rawPredict:\001*ZP\"K/v1beta1/{endpoint=pr"
+ + "ojects/*/locations/*/publishers/*/models"
+ + "/*}:rawPredict:\001*\022\247\002\n\020StreamRawPredict\0228"
+ + ".google.cloud.aiplatform.v1beta1.StreamR"
+ + "awPredictRequest\032\024.google.api.HttpBody\"\300"
+ + "\001\332A\022endpoint,http_body\202\323\344\223\002\244\001\"G/v1beta1/"
+ + "{endpoint=projects/*/locations/*/endpoin"
+ + "ts/*}:streamRawPredict:\001*ZV\"Q/v1beta1/{e"
+ + "ndpoint=projects/*/locations/*/publisher"
+ + "s/*/models/*}:streamRawPredict:\001*0\001\022\317\001\n\r"
+ + "DirectPredict\0225.google.cloud.aiplatform."
+ + "v1beta1.DirectPredictRequest\0326.google.cl"
+ + "oud.aiplatform.v1beta1.DirectPredictResp"
+ + "onse\"O\202\323\344\223\002I\"D/v1beta1/{endpoint=project"
+ + "s/*/locations/*/endpoints/*}:directPredi"
+ + "ct:\001*\022\333\001\n\020DirectRawPredict\0228.google.clou"
+ + "d.aiplatform.v1beta1.DirectRawPredictReq"
+ + "uest\0329.google.cloud.aiplatform.v1beta1.D"
+ + "irectRawPredictResponse\"R\202\323\344\223\002L\"G/v1beta"
+ + "1/{endpoint=projects/*/locations/*/endpo"
+ + "ints/*}:directRawPredict:\001*\022\226\001\n\023StreamDi"
+ + "rectPredict\022;.google.cloud.aiplatform.v1"
+ + "beta1.StreamDirectPredictRequest\032<.googl"
+ + "e.cloud.aiplatform.v1beta1.StreamDirectP"
+ + "redictResponse\"\000(\0010\001\022\237\001\n\026StreamDirectRaw"
+ + "Predict\022>.google.cloud.aiplatform.v1beta"
+ + "1.StreamDirectRawPredictRequest\032?.google"
+ + ".cloud.aiplatform.v1beta1.StreamDirectRa"
+ + "wPredictResponse\"\000(\0010\001\022\215\001\n\020StreamingPred"
+ + "ict\0228.google.cloud.aiplatform.v1beta1.St"
+ + "reamingPredictRequest\0329.google.cloud.aip"
+ + "latform.v1beta1.StreamingPredictResponse"
+ + "\"\000(\0010\001\022\311\002\n\026ServerStreamingPredict\0228.goog"
+ "le.cloud.aiplatform.v1beta1.StreamingPre"
- + "dictResponse\"\000(\0010\001\022\311\002\n\026ServerStreamingPr"
- + "edict\0228.google.cloud.aiplatform.v1beta1."
- + "StreamingPredictRequest\0329.google.cloud.a"
- + "iplatform.v1beta1.StreamingPredictRespon"
- + "se\"\267\001\202\323\344\223\002\260\001\"M/v1beta1/{endpoint=project"
- + "s/*/locations/*/endpoints/*}:serverStrea"
- + "mingPredict:\001*Z\\\"W/v1beta1/{endpoint=pro"
- + "jects/*/locations/*/publishers/*/models/"
- + "*}:serverStreamingPredict:\001*0\001\022\226\001\n\023Strea"
- + "mingRawPredict\022;.google.cloud.aiplatform"
- + ".v1beta1.StreamingRawPredictRequest\032<.go"
- + "ogle.cloud.aiplatform.v1beta1.StreamingR"
- + "awPredictResponse\"\000(\0010\001\022\351\001\n\007Explain\022/.go"
- + "ogle.cloud.aiplatform.v1beta1.ExplainReq"
- + "uest\0320.google.cloud.aiplatform.v1beta1.E"
- + "xplainResponse\"{\332A/endpoint,instances,pa"
- + "rameters,deployed_model_id\202\323\344\223\002C\">/v1bet"
- + "a1/{endpoint=projects/*/locations/*/endp"
- + "oints/*}:explain:\001*\022\237\003\n\013CountTokens\0223.go"
- + "ogle.cloud.aiplatform.v1beta1.CountToken"
- + "sRequest\0324.google.cloud.aiplatform.v1bet"
- + "a1.CountTokensResponse\"\244\002\332A\022endpoint,ins"
- + "tances\202\323\344\223\002\210\002\"B/v1beta1/{endpoint=projec"
- + "ts/*/locations/*/endpoints/*}:countToken"
- + "s:\001*ZQ\"L/v1beta1/{endpoint=projects/*/lo"
- + "cations/*/publishers/*/models/*}:countTo"
- + "kens:\001*Z0\"+/v1beta1/{endpoint=endpoints/"
- + "*}:countTokens:\001*Z:\"5/v1beta1/{endpoint="
- + "publishers/*/models/*}:countTokens:\001*\022\253\003"
- + "\n\017GenerateContent\0227.google.cloud.aiplatf"
- + "orm.v1beta1.GenerateContentRequest\0328.goo"
- + "gle.cloud.aiplatform.v1beta1.GenerateCon"
- + "tentResponse\"\244\002\332A\016model,contents\202\323\344\223\002\214\002\""
- + "C/v1beta1/{model=projects/*/locations/*/"
- + "endpoints/*}:generateContent:\001*ZR\"M/v1be"
- + "ta1/{model=projects/*/locations/*/publis"
- + "hers/*/models/*}:generateContent:\001*Z1\",/"
- + "v1beta1/{model=endpoints/*}:generateCont"
- + "ent:\001*Z;\"6/v1beta1/{model=publishers/*/m"
- + "odels/*}:generateContent:\001*\022\313\003\n\025StreamGe"
- + "nerateContent\0227.google.cloud.aiplatform."
- + "v1beta1.GenerateContentRequest\0328.google."
- + "cloud.aiplatform.v1beta1.GenerateContent"
- + "Response\"\274\002\332A\016model,contents\202\323\344\223\002\244\002\"I/v1"
- + "beta1/{model=projects/*/locations/*/endp"
- + "oints/*}:streamGenerateContent:\001*ZX\"S/v1"
- + "beta1/{model=projects/*/locations/*/publ"
- + "ishers/*/models/*}:streamGenerateContent"
- + ":\001*Z7\"2/v1beta1/{model=endpoints/*}:stre"
- + "amGenerateContent:\001*ZA\"/v1beta1/{endpoint"
+ + "=projects/*/locations/*/endpoints/*}:exp"
+ + "lain:\001*\022\237\003\n\013CountTokens\0223.google.cloud.a"
+ + "iplatform.v1beta1.CountTokensRequest\0324.g"
+ + "oogle.cloud.aiplatform.v1beta1.CountToke"
+ + "nsResponse\"\244\002\332A\022endpoint,instances\202\323\344\223\002\210"
+ + "\002\"B/v1beta1/{endpoint=projects/*/locatio"
+ + "ns/*/endpoints/*}:countTokens:\001*ZQ\"L/v1b"
+ + "eta1/{endpoint=projects/*/locations/*/pu"
+ + "blishers/*/models/*}:countTokens:\001*Z0\"+/"
+ + "v1beta1/{endpoint=endpoints/*}:countToke"
+ + "ns:\001*Z:\"5/v1beta1/{endpoint=publishers/*"
+ + "/models/*}:countTokens:\001*\022\253\003\n\017GenerateCo"
+ + "ntent\0227.google.cloud.aiplatform.v1beta1."
+ + "GenerateContentRequest\0328.google.cloud.ai"
+ + "platform.v1beta1.GenerateContentResponse"
+ + "\"\244\002\332A\016model,contents\202\323\344\223\002\214\002\"C/v1beta1/{m"
+ + "odel=projects/*/locations/*/endpoints/*}"
+ + ":generateContent:\001*ZR\"M/v1beta1/{model=p"
+ + "rojects/*/locations/*/publishers/*/model"
+ + "s/*}:generateContent:\001*Z1\",/v1beta1/{mod"
+ + "el=endpoints/*}:generateContent:\001*Z;\"6/v"
+ + "1beta1/{model=publishers/*/models/*}:gen"
+ + "erateContent:\001*\022\313\003\n\025StreamGenerateConten"
+ + "t\0227.google.cloud.aiplatform.v1beta1.Gene"
+ + "rateContentRequest\0328.google.cloud.aiplat"
+ + "form.v1beta1.GenerateContentResponse\"\274\002\332"
+ + "A\016model,contents\202\323\344\223\002\244\002\"I/v1beta1/{model"
+ + "=projects/*/locations/*/endpoints/*}:str"
+ + "eamGenerateContent:\001*ZX\"S/v1beta1/{model"
+ + "=projects/*/locations/*/publishers/*/mod"
+ + "els/*}:streamGenerateContent:\001*Z7\"2/v1be"
+ + "ta1/{model=endpoints/*}:streamGenerateCo"
+ + "ntent:\001*ZA\" anyOf_;
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder>
+ getAnyOfOrBuilderList() {
+ return anyOf_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getAnyOfCount() {
+ return anyOf_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.Schema getAnyOf(int index) {
+ return anyOf_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder getAnyOfOrBuilder(int index) {
+ return anyOf_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1026,6 +1113,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < enum_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, enum_.getRaw(i));
}
+ for (int i = 0; i < anyOf_.size(); i++) {
+ output.writeMessage(11, anyOf_.get(i));
+ }
if (minProperties_ != 0L) {
output.writeInt64(14, minProperties_);
}
@@ -1116,6 +1206,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getEnumList().size();
}
+ for (int i = 0; i < anyOf_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, anyOf_.get(i));
+ }
if (minProperties_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, minProperties_);
}
@@ -1205,6 +1298,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasExample()) {
if (!getExample().equals(other.getExample())) return false;
}
+ if (!getAnyOfList().equals(other.getAnyOfList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1278,6 +1372,10 @@ public int hashCode() {
hash = (37 * hash) + EXAMPLE_FIELD_NUMBER;
hash = (53 * hash) + getExample().hashCode();
}
+ if (getAnyOfCount() > 0) {
+ hash = (37 * hash) + ANY_OF_FIELD_NUMBER;
+ hash = (53 * hash) + getAnyOfList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1446,6 +1544,7 @@ private void maybeForceBuilderInitialization() {
getDefaultFieldBuilder();
getItemsFieldBuilder();
getExampleFieldBuilder();
+ getAnyOfFieldBuilder();
}
}
@@ -1486,6 +1585,13 @@ public Builder clear() {
exampleBuilder_.dispose();
exampleBuilder_ = null;
}
+ if (anyOfBuilder_ == null) {
+ anyOf_ = java.util.Collections.emptyList();
+ } else {
+ anyOf_ = null;
+ anyOfBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00200000);
return this;
}
@@ -1513,6 +1619,7 @@ public com.google.cloud.aiplatform.v1beta1.Schema build() {
public com.google.cloud.aiplatform.v1beta1.Schema buildPartial() {
com.google.cloud.aiplatform.v1beta1.Schema result =
new com.google.cloud.aiplatform.v1beta1.Schema(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -1520,6 +1627,18 @@ public com.google.cloud.aiplatform.v1beta1.Schema buildPartial() {
return result;
}
+ private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Schema result) {
+ if (anyOfBuilder_ == null) {
+ if (((bitField0_ & 0x00200000) != 0)) {
+ anyOf_ = java.util.Collections.unmodifiableList(anyOf_);
+ bitField0_ = (bitField0_ & ~0x00200000);
+ }
+ result.anyOf_ = anyOf_;
+ } else {
+ result.anyOf_ = anyOfBuilder_.build();
+ }
+ }
+
private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Schema result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -1732,6 +1851,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Schema other) {
if (other.hasExample()) {
mergeExample(other.getExample());
}
+ if (anyOfBuilder_ == null) {
+ if (!other.anyOf_.isEmpty()) {
+ if (anyOf_.isEmpty()) {
+ anyOf_ = other.anyOf_;
+ bitField0_ = (bitField0_ & ~0x00200000);
+ } else {
+ ensureAnyOfIsMutable();
+ anyOf_.addAll(other.anyOf_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.anyOf_.isEmpty()) {
+ if (anyOfBuilder_.isEmpty()) {
+ anyOfBuilder_.dispose();
+ anyOfBuilder_ = null;
+ anyOf_ = other.anyOf_;
+ bitField0_ = (bitField0_ & ~0x00200000);
+ anyOfBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getAnyOfFieldBuilder()
+ : null;
+ } else {
+ anyOfBuilder_.addAllMessages(other.anyOf_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1822,6 +1968,19 @@ public Builder mergeFrom(
enum_.add(s);
break;
} // case 74
+ case 90:
+ {
+ com.google.cloud.aiplatform.v1beta1.Schema m =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1beta1.Schema.parser(), extensionRegistry);
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.add(m);
+ } else {
+ anyOfBuilder_.addMessage(m);
+ }
+ break;
+ } // case 90
case 112:
{
minProperties_ = input.readInt64();
@@ -4355,6 +4514,409 @@ public com.google.protobuf.ValueOrBuilder getExampleOrBuilder() {
return exampleBuilder_;
}
+ private java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getAnyOfCount() {
+ if (anyOfBuilder_ == null) {
+ return anyOf_.size();
+ } else {
+ return anyOfBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Schema getAnyOf(int index) {
+ if (anyOfBuilder_ == null) {
+ return anyOf_.get(index);
+ } else {
+ return anyOfBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setAnyOf(int index, com.google.cloud.aiplatform.v1beta1.Schema value) {
+ if (anyOfBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnyOfIsMutable();
+ anyOf_.set(index, value);
+ onChanged();
+ } else {
+ anyOfBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setAnyOf(
+ int index, com.google.cloud.aiplatform.v1beta1.Schema.Builder builderForValue) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ anyOfBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAnyOf(com.google.cloud.aiplatform.v1beta1.Schema value) {
+ if (anyOfBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnyOfIsMutable();
+ anyOf_.add(value);
+ onChanged();
+ } else {
+ anyOfBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAnyOf(int index, com.google.cloud.aiplatform.v1beta1.Schema value) {
+ if (anyOfBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnyOfIsMutable();
+ anyOf_.add(index, value);
+ onChanged();
+ } else {
+ anyOfBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAnyOf(com.google.cloud.aiplatform.v1beta1.Schema.Builder builderForValue) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.add(builderForValue.build());
+ onChanged();
+ } else {
+ anyOfBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAnyOf(
+ int index, com.google.cloud.aiplatform.v1beta1.Schema.Builder builderForValue) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ anyOfBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllAnyOf(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.Schema> values) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, anyOf_);
+ onChanged();
+ } else {
+ anyOfBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearAnyOf() {
+ if (anyOfBuilder_ == null) {
+ anyOf_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00200000);
+ onChanged();
+ } else {
+ anyOfBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeAnyOf(int index) {
+ if (anyOfBuilder_ == null) {
+ ensureAnyOfIsMutable();
+ anyOf_.remove(index);
+ onChanged();
+ } else {
+ anyOfBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Schema.Builder getAnyOfBuilder(int index) {
+ return getAnyOfFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder getAnyOfOrBuilder(int index) {
+ if (anyOfBuilder_ == null) {
+ return anyOf_.get(index);
+ } else {
+ return anyOfBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder>
+ getAnyOfOrBuilderList() {
+ if (anyOfBuilder_ != null) {
+ return anyOfBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(anyOf_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Schema.Builder addAnyOfBuilder() {
+ return getAnyOfFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1beta1.Schema.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Schema.Builder addAnyOfBuilder(int index) {
+ return getAnyOfFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Schema.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List.google.protobuf.Value example = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.protobuf.ValueOrBuilder getExampleOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.Schema getAnyOf(int index);
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getAnyOfCount();
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder>
+ getAnyOfOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. The value should be validated against any (one or more) of the + * subschemas in the list. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Schema any_of = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder getAnyOfOrBuilder(int index);
}
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 86c53492cfce..cfccbbd912f0 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
@@ -200,6 +200,12 @@ message GenerationConfig {
// Optional. Stop sequences.
repeated string stop_sequences = 6 [(google.api.field_behavior) = OPTIONAL];
+ // Optional. If true, export the logprobs results in response.
+ optional bool response_logprobs = 18 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Logit probabilities.
+ optional int32 logprobs = 7 [(google.api.field_behavior) = OPTIONAL];
+
// Optional. Positive penalties.
optional float presence_penalty = 8 [(google.api.field_behavior) = OPTIONAL];
@@ -415,6 +421,10 @@ message Candidate {
// Output only. Average log probability score of the candidate.
double avg_logprobs = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+ // Output only. Log-likelihood scores for the response tokens and top tokens
+ LogprobsResult logprobs_result = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Output only. The reason why the model stopped generating tokens.
// If empty, the model has not stopped generating the tokens.
FinishReason finish_reason = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -439,6 +449,34 @@ message Candidate {
[(google.api.field_behavior) = OUTPUT_ONLY];
}
+// Logprobs Result
+message LogprobsResult {
+ // Candidate for the logprobs token and score.
+ message Candidate {
+ // The candidate’s token string value.
+ optional string token = 1;
+
+ // The candidate’s token id value.
+ optional int32 token_id = 3;
+
+ // The candidate's log probability.
+ optional float log_probability = 2;
+ }
+
+ // Candidates with top log probabilities at each decoding step.
+ message TopCandidates {
+ // Sorted by log probability in descending order.
+ repeated Candidate candidates = 1;
+ }
+
+ // Length = total number of decoding steps.
+ repeated TopCandidates top_candidates = 1;
+
+ // Length = total number of decoding steps.
+ // The chosen candidates may or may not be in top_candidates.
+ repeated Candidate chosen_candidates = 2;
+}
+
// Segment of the content.
message Segment {
// Output only. The index of a Part object within its parent Content object.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/openapi.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/openapi.proto
index cc2d42169dd1..e17a1aeb277f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/openapi.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/openapi.proto
@@ -134,4 +134,8 @@ message Schema {
// Optional. Example of the object. Will only populated when the object is the
// root.
google.protobuf.Value example = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The value should be validated against any (one or more) of the
+ // subschemas in the list.
+ repeated Schema any_of = 11 [(google.api.field_behavior) = OPTIONAL];
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto
index 7d34c3b184e9..10446ada90d1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto
@@ -856,6 +856,9 @@ message GenerateContentResponse {
// Output only. Generated candidates.
repeated Candidate candidates = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+ // Output only. The model version used to generate the response.
+ string model_version = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Output only. Content filter results for a prompt sent in the request.
// Note: Sent only in the first stream chunk.
// Only happens when no candidates were generated due to content violations.
diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md
index f245b27511cf..24406c819f23 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:
GetPropertyQuotasSnapshot
Get all property quotas organized by quota category for a given property. This will charge 1 property quota from the category with the most quota.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getPropertyQuotasSnapshot(GetPropertyQuotasSnapshotRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getPropertyQuotasSnapshot(PropertyQuotasSnapshotName name) + *
getPropertyQuotasSnapshot(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.
+ *getPropertyQuotasSnapshotCallable() + *
CreateReportTask
Initiates the creation of a report task. This method quickly returns a report task and initiates a long running asynchronous request to form a customized report of your Google Analytics event data.
Initiates the creation of a report task. This method quickly returns a report task and initiates a long running asynchronous request to form a customized report of your Google Analytics event data. + *
A report task will be retained and available for querying for 72 hours after it has been created. + *
A report task created by one user can be listed and queried by all users who have access to the property.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + * PropertyQuotasSnapshotName name = PropertyQuotasSnapshotName.of("[PROPERTY]"); + * PropertyQuotasSnapshot response = alphaAnalyticsDataClient.getPropertyQuotasSnapshot(name); + * } + * }+ * + * @param name Required. Quotas from this property will be listed in the response. Format: + * `properties/{property}/propertyQuotasSnapshot` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PropertyQuotasSnapshot getPropertyQuotasSnapshot(PropertyQuotasSnapshotName name) { + GetPropertyQuotasSnapshotRequest request = + GetPropertyQuotasSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPropertyQuotasSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get all property quotas organized by quota category for a given property. This will charge 1 + * property quota from the category with the most quota. + * + *
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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + * String name = PropertyQuotasSnapshotName.of("[PROPERTY]").toString(); + * PropertyQuotasSnapshot response = alphaAnalyticsDataClient.getPropertyQuotasSnapshot(name); + * } + * }+ * + * @param name Required. Quotas from this property will be listed in the response. Format: + * `properties/{property}/propertyQuotasSnapshot` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PropertyQuotasSnapshot getPropertyQuotasSnapshot(String name) { + GetPropertyQuotasSnapshotRequest request = + GetPropertyQuotasSnapshotRequest.newBuilder().setName(name).build(); + return getPropertyQuotasSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get all property quotas organized by quota category for a given property. This will charge 1 + * property quota from the category with the most quota. + * + *
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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + * GetPropertyQuotasSnapshotRequest request = + * GetPropertyQuotasSnapshotRequest.newBuilder() + * .setName(PropertyQuotasSnapshotName.of("[PROPERTY]").toString()) + * .build(); + * PropertyQuotasSnapshot response = alphaAnalyticsDataClient.getPropertyQuotasSnapshot(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 PropertyQuotasSnapshot getPropertyQuotasSnapshot( + GetPropertyQuotasSnapshotRequest request) { + return getPropertyQuotasSnapshotCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get all property quotas organized by quota category for a given property. This will charge 1 + * property quota from the category with the most quota. + * + *
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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + * GetPropertyQuotasSnapshotRequest request = + * GetPropertyQuotasSnapshotRequest.newBuilder() + * .setName(PropertyQuotasSnapshotName.of("[PROPERTY]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * alphaAnalyticsDataClient.getPropertyQuotasSnapshotCallable().futureCall(request); + * // Do something. + * PropertyQuotasSnapshot response = future.get(); + * } + * }
A report task will be retained and available for querying for 72 hours after it has been + * created. + * + *
A report task created by one user can be listed and queried by all users who have access to + * the property. + * *
Sample code: * *
{@code @@ -2121,6 +2268,12 @@ public final OperationFuturecreateReportTaskAsy * initiates a long running asynchronous request to form a customized report of your Google * Analytics event data. * + * A report task will be retained and available for querying for 72 hours after it has been + * created. + * + *
A report task created by one user can be listed and queried by all users who have access to + * the property. + * *
Sample code: * *
{@code @@ -2155,6 +2308,12 @@ public final OperationFuture*/ public com.google.common.util.concurrent.ListenableFuturecreateReportTaskAsy * initiates a long running asynchronous request to form a customized report of your Google * Analytics event data. * + * A report task will be retained and available for querying for 72 hours after it has been + * created. + * + *
A report task created by one user can be listed and queried by all users who have access to + * the property. + * *
Sample code: * *
{@code @@ -2187,6 +2346,12 @@ public final OperationFuture*/ public com.google.longrunning.Operation createReportTask( @@ -2000,6 +2113,22 @@ protected AlphaAnalyticsDataFutureStub build( getChannel().newCall(getListRecurringAudienceListsMethod(), getCallOptions()), request); } + /** + * + * + *createReportTaskAsy * initiates a long running asynchronous request to form a customized report of your Google * Analytics event data. * + * A report task will be retained and available for querying for 72 hours after it has been + * created. + * + *
A report task created by one user can be listed and queried by all users who have access to + * the property. + * *
Sample code: * *
{@code @@ -2219,6 +2384,12 @@ public final OperationFuture*/ public void createReportTask( @@ -1675,6 +1770,20 @@ public com.google.analytics.data.v1alpha.RecurringAudienceList getRecurringAudie getChannel(), getListRecurringAudienceListsMethod(), getCallOptions(), request); } + /** + * + * + *createReportTaskAsy * initiates a long running asynchronous request to form a customized report of your Google * Analytics event data. * + * A report task will be retained and available for querying for 72 hours after it has been + * created. + * + *
A report task created by one user can be listed and queried by all users who have access to + * the property. + * *
Sample code: * *
{@code diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java index 0a0e0f4f112c..75beb7da664c 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java @@ -185,6 +185,12 @@ public UnaryCallSettings*/ default void createReportTask( @@ -1344,6 +1417,24 @@ public void listRecurringAudienceLists( responseObserver); } + /** + * + * + *getAudienceListSe .listRecurringAudienceListsSettings(); } + /** Returns the object with the settings used for calls to getPropertyQuotasSnapshot. */ + public UnaryCallSettings + getPropertyQuotasSnapshotSettings() { + return ((AlphaAnalyticsDataStubSettings) getStubSettings()).getPropertyQuotasSnapshotSettings(); + } + /** Returns the object with the settings used for calls to createReportTask. */ public UnaryCallSettings createReportTaskSettings() { return ((AlphaAnalyticsDataStubSettings) getStubSettings()).createReportTaskSettings(); @@ -392,6 +398,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listRecurringAudienceListsSettings(); } + /** Returns the builder for the settings used for calls to getPropertyQuotasSnapshot. */ + public UnaryCallSettings.Builder + getPropertyQuotasSnapshotSettings() { + return getStubSettingsBuilder().getPropertyQuotasSnapshotSettings(); + } + /** Returns the builder for the settings used for calls to createReportTask. */ public UnaryCallSettings.Builder createReportTaskSettings() { diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json index 20d7f0f818b3..e2d6c5294bee 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json @@ -22,6 +22,9 @@ "GetAudienceList": { "methods": ["getAudienceList", "getAudienceList", "getAudienceList", "getAudienceListCallable"] }, + "GetPropertyQuotasSnapshot": { + "methods": ["getPropertyQuotasSnapshot", "getPropertyQuotasSnapshot", "getPropertyQuotasSnapshot", "getPropertyQuotasSnapshotCallable"] + }, "GetRecurringAudienceList": { "methods": ["getRecurringAudienceList", "getRecurringAudienceList", "getRecurringAudienceList", "getRecurringAudienceListCallable"] }, diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java index d177a9007034..e428ab8387a1 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java @@ -26,6 +26,7 @@ import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.CreateReportTaskRequest; import com.google.analytics.data.v1alpha.GetAudienceListRequest; +import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.GetReportTaskRequest; import com.google.analytics.data.v1alpha.ListAudienceListsRequest; @@ -34,6 +35,7 @@ import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse; import com.google.analytics.data.v1alpha.ListReportTasksRequest; import com.google.analytics.data.v1alpha.ListReportTasksResponse; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; import com.google.analytics.data.v1alpha.QueryAudienceListRequest; import com.google.analytics.data.v1alpha.QueryAudienceListResponse; import com.google.analytics.data.v1alpha.QueryReportTaskRequest; @@ -132,6 +134,11 @@ public UnaryCallable getAudienceListCallab "Not implemented: listRecurringAudienceListsCallable()"); } + public UnaryCallable + getPropertyQuotasSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: getPropertyQuotasSnapshotCallable()"); + } + public OperationCallable createReportTaskOperationCallable() { throw new UnsupportedOperationException("Not implemented: createReportTaskOperationCallable()"); diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java index d05f5a8e1a9a..fd95d942b01f 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java @@ -26,6 +26,7 @@ import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.CreateReportTaskRequest; import com.google.analytics.data.v1alpha.GetAudienceListRequest; +import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.GetReportTaskRequest; import com.google.analytics.data.v1alpha.ListAudienceListsRequest; @@ -34,6 +35,7 @@ import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse; import com.google.analytics.data.v1alpha.ListReportTasksRequest; import com.google.analytics.data.v1alpha.ListReportTasksResponse; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; import com.google.analytics.data.v1alpha.QueryAudienceListRequest; import com.google.analytics.data.v1alpha.QueryAudienceListResponse; import com.google.analytics.data.v1alpha.QueryReportTaskRequest; @@ -197,6 +199,8 @@ public class AlphaAnalyticsDataStubSettings extends StubSettings listRecurringAudienceListsSettings; + private final UnaryCallSettings + getPropertyQuotasSnapshotSettings; private final UnaryCallSettings createReportTaskSettings; private final OperationCallSettings createReportTaskOperationSettings; @@ -457,6 +461,12 @@ public UnaryCallSettings getAudienceListSe return listRecurringAudienceListsSettings; } + /** Returns the object with the settings used for calls to getPropertyQuotasSnapshot. */ + public UnaryCallSettings + getPropertyQuotasSnapshotSettings() { + return getPropertyQuotasSnapshotSettings; + } + /** Returns the object with the settings used for calls to createReportTask. */ public UnaryCallSettings createReportTaskSettings() { return createReportTaskSettings; @@ -610,6 +620,7 @@ protected AlphaAnalyticsDataStubSettings(Builder settingsBuilder) throws IOExcep getRecurringAudienceListSettings = settingsBuilder.getRecurringAudienceListSettings().build(); listRecurringAudienceListsSettings = settingsBuilder.listRecurringAudienceListsSettings().build(); + getPropertyQuotasSnapshotSettings = settingsBuilder.getPropertyQuotasSnapshotSettings().build(); createReportTaskSettings = settingsBuilder.createReportTaskSettings().build(); createReportTaskOperationSettings = settingsBuilder.createReportTaskOperationSettings().build(); queryReportTaskSettings = settingsBuilder.queryReportTaskSettings().build(); @@ -648,6 +659,9 @@ public static class Builder ListRecurringAudienceListsResponse, ListRecurringAudienceListsPagedResponse> listRecurringAudienceListsSettings; + private final UnaryCallSettings.Builder< + GetPropertyQuotasSnapshotRequest, PropertyQuotasSnapshot> + getPropertyQuotasSnapshotSettings; private final UnaryCallSettings.Builder createReportTaskSettings; private final OperationCallSettings.Builder< @@ -718,6 +732,7 @@ protected Builder(ClientContext clientContext) { getRecurringAudienceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listRecurringAudienceListsSettings = PagedCallSettings.newBuilder(LIST_RECURRING_AUDIENCE_LISTS_PAGE_STR_FACT); + getPropertyQuotasSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createReportTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createReportTaskOperationSettings = OperationCallSettings.newBuilder(); queryReportTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -735,6 +750,7 @@ protected Builder(ClientContext clientContext) { createRecurringAudienceListSettings, getRecurringAudienceListSettings, listRecurringAudienceListsSettings, + getPropertyQuotasSnapshotSettings, createReportTaskSettings, queryReportTaskSettings, getReportTaskSettings, @@ -757,6 +773,7 @@ protected Builder(AlphaAnalyticsDataStubSettings settings) { settings.createRecurringAudienceListSettings.toBuilder(); getRecurringAudienceListSettings = settings.getRecurringAudienceListSettings.toBuilder(); listRecurringAudienceListsSettings = settings.listRecurringAudienceListsSettings.toBuilder(); + getPropertyQuotasSnapshotSettings = settings.getPropertyQuotasSnapshotSettings.toBuilder(); createReportTaskSettings = settings.createReportTaskSettings.toBuilder(); createReportTaskOperationSettings = settings.createReportTaskOperationSettings.toBuilder(); queryReportTaskSettings = settings.queryReportTaskSettings.toBuilder(); @@ -774,6 +791,7 @@ protected Builder(AlphaAnalyticsDataStubSettings settings) { createRecurringAudienceListSettings, getRecurringAudienceListSettings, listRecurringAudienceListsSettings, + getPropertyQuotasSnapshotSettings, createReportTaskSettings, queryReportTaskSettings, getReportTaskSettings, @@ -850,6 +868,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 + .getPropertyQuotasSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createReportTaskSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1002,6 +1025,12 @@ public Builder applyToAllUnaryMethods( return listRecurringAudienceListsSettings; } + /** Returns the builder for the settings used for calls to getPropertyQuotasSnapshot. */ + public UnaryCallSettings.Builder + getPropertyQuotasSnapshotSettings() { + return getPropertyQuotasSnapshotSettings; + } + /** Returns the builder for the settings used for calls to createReportTask. */ public UnaryCallSettings.Builder createReportTaskSettings() { diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java index d73b4cce22c3..6b3b01611449 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java @@ -26,6 +26,7 @@ import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.CreateReportTaskRequest; import com.google.analytics.data.v1alpha.GetAudienceListRequest; +import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.GetReportTaskRequest; import com.google.analytics.data.v1alpha.ListAudienceListsRequest; @@ -34,6 +35,7 @@ import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse; import com.google.analytics.data.v1alpha.ListReportTasksRequest; import com.google.analytics.data.v1alpha.ListReportTasksResponse; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; import com.google.analytics.data.v1alpha.QueryAudienceListRequest; import com.google.analytics.data.v1alpha.QueryAudienceListResponse; import com.google.analytics.data.v1alpha.QueryReportTaskRequest; @@ -179,6 +181,18 @@ public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { ProtoUtils.marshaller(ListRecurringAudienceListsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + getPropertyQuotasSnapshotMethodDescriptor = + MethodDescriptor. newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.data.v1alpha.AlphaAnalyticsData/GetPropertyQuotasSnapshot") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPropertyQuotasSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(PropertyQuotasSnapshot.getDefaultInstance())) + .build(); + private static final MethodDescriptor createReportTaskMethodDescriptor = MethodDescriptor. newBuilder() @@ -245,6 +259,8 @@ public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { private final UnaryCallable< ListRecurringAudienceListsRequest, ListRecurringAudienceListsPagedResponse> listRecurringAudienceListsPagedCallable; + private final UnaryCallable + getPropertyQuotasSnapshotCallable; private final UnaryCallable createReportTaskCallable; private final OperationCallable createReportTaskOperationCallable; @@ -399,6 +415,17 @@ protected GrpcAlphaAnalyticsDataStub( return builder.build(); }) .build(); + GrpcCallSettings + getPropertyQuotasSnapshotTransportSettings = + GrpcCallSettings. newBuilder() + .setMethodDescriptor(getPropertyQuotasSnapshotMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings createReportTaskTransportSettings = GrpcCallSettings. newBuilder() .setMethodDescriptor(createReportTaskMethodDescriptor) @@ -499,6 +526,11 @@ protected GrpcAlphaAnalyticsDataStub( listRecurringAudienceListsTransportSettings, settings.listRecurringAudienceListsSettings(), clientContext); + this.getPropertyQuotasSnapshotCallable = + callableFactory.createUnaryCallable( + getPropertyQuotasSnapshotTransportSettings, + settings.getPropertyQuotasSnapshotSettings(), + clientContext); this.createReportTaskCallable = callableFactory.createUnaryCallable( createReportTaskTransportSettings, settings.createReportTaskSettings(), clientContext); @@ -598,6 +630,12 @@ public UnaryCallable getAudienceListCallab return listRecurringAudienceListsPagedCallable; } + @Override + public UnaryCallable + getPropertyQuotasSnapshotCallable() { + return getPropertyQuotasSnapshotCallable; + } + @Override public UnaryCallable createReportTaskCallable() { return createReportTaskCallable; diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java index bbb3479bd47f..9bf16023b844 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java @@ -26,6 +26,7 @@ import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.CreateReportTaskRequest; import com.google.analytics.data.v1alpha.GetAudienceListRequest; +import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest; import com.google.analytics.data.v1alpha.GetReportTaskRequest; import com.google.analytics.data.v1alpha.ListAudienceListsRequest; @@ -34,6 +35,7 @@ import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse; import com.google.analytics.data.v1alpha.ListReportTasksRequest; import com.google.analytics.data.v1alpha.ListReportTasksResponse; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; import com.google.analytics.data.v1alpha.QueryAudienceListRequest; import com.google.analytics.data.v1alpha.QueryAudienceListResponse; import com.google.analytics.data.v1alpha.QueryReportTaskRequest; @@ -432,6 +434,41 @@ public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { .build()) .build(); + private static final ApiMethodDescriptor + getPropertyQuotasSnapshotMethodDescriptor = + ApiMethodDescriptor. newBuilder() + .setFullMethodName( + "google.analytics.data.v1alpha.AlphaAnalyticsData/GetPropertyQuotasSnapshot") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter. newBuilder() + .setPath( + "/v1alpha/{name=properties/*/propertyQuotasSnapshot}", + 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(PropertyQuotasSnapshot.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createReportTaskMethodDescriptor = ApiMethodDescriptor. newBuilder() @@ -603,6 +640,8 @@ public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { private final UnaryCallable< ListRecurringAudienceListsRequest, ListRecurringAudienceListsPagedResponse> listRecurringAudienceListsPagedCallable; + private final UnaryCallable + getPropertyQuotasSnapshotCallable; private final UnaryCallable createReportTaskCallable; private final OperationCallable createReportTaskOperationCallable; @@ -771,6 +810,19 @@ protected HttpJsonAlphaAnalyticsDataStub( return builder.build(); }) .build(); + HttpJsonCallSettings + getPropertyQuotasSnapshotTransportSettings = + HttpJsonCallSettings + . newBuilder() + .setMethodDescriptor(getPropertyQuotasSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings createReportTaskTransportSettings = HttpJsonCallSettings. newBuilder() .setMethodDescriptor(createReportTaskMethodDescriptor) @@ -875,6 +927,11 @@ protected HttpJsonAlphaAnalyticsDataStub( listRecurringAudienceListsTransportSettings, settings.listRecurringAudienceListsSettings(), clientContext); + this.getPropertyQuotasSnapshotCallable = + callableFactory.createUnaryCallable( + getPropertyQuotasSnapshotTransportSettings, + settings.getPropertyQuotasSnapshotSettings(), + clientContext); this.createReportTaskCallable = callableFactory.createUnaryCallable( createReportTaskTransportSettings, settings.createReportTaskSettings(), clientContext); @@ -913,6 +970,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(createRecurringAudienceListMethodDescriptor); methodDescriptors.add(getRecurringAudienceListMethodDescriptor); methodDescriptors.add(listRecurringAudienceListsMethodDescriptor); + methodDescriptors.add(getPropertyQuotasSnapshotMethodDescriptor); methodDescriptors.add(createReportTaskMethodDescriptor); methodDescriptors.add(queryReportTaskMethodDescriptor); methodDescriptors.add(getReportTaskMethodDescriptor); @@ -993,6 +1051,12 @@ public UnaryCallable getAudienceListCallab return listRecurringAudienceListsPagedCallable; } + @Override + public UnaryCallable + getPropertyQuotasSnapshotCallable() { + return getPropertyQuotasSnapshotCallable; + } + @Override public UnaryCallable createReportTaskCallable() { return createReportTaskCallable; diff --git a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json index 21f34df74a20..3e965eb95454 100644 --- a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json +++ b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json @@ -773,6 +773,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest", "queryAllDeclaredConstructors": true, @@ -1133,6 +1151,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.PropertyQuotasSnapshot", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.PropertyQuotasSnapshot$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.QueryAudienceListRequest", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java index 87b1eddbd1b5..62d60c8ed5dd 100644 --- a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java +++ b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java @@ -935,6 +935,100 @@ public void listRecurringAudienceListsExceptionTest2() throws Exception { } } + @Test + public void getPropertyQuotasSnapshotTest() throws Exception { + PropertyQuotasSnapshot expectedResponse = + PropertyQuotasSnapshot.newBuilder() + .setName(PropertyQuotasSnapshotName.of("[PROPERTY]").toString()) + .setCorePropertyQuota(PropertyQuota.newBuilder().build()) + .setRealtimePropertyQuota(PropertyQuota.newBuilder().build()) + .setFunnelPropertyQuota(PropertyQuota.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PropertyQuotasSnapshotName name = PropertyQuotasSnapshotName.of("[PROPERTY]"); + + PropertyQuotasSnapshot actualResponse = client.getPropertyQuotasSnapshot(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 getPropertyQuotasSnapshotExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyQuotasSnapshotName name = PropertyQuotasSnapshotName.of("[PROPERTY]"); + client.getPropertyQuotasSnapshot(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPropertyQuotasSnapshotTest2() throws Exception { + PropertyQuotasSnapshot expectedResponse = + PropertyQuotasSnapshot.newBuilder() + .setName(PropertyQuotasSnapshotName.of("[PROPERTY]").toString()) + .setCorePropertyQuota(PropertyQuota.newBuilder().build()) + .setRealtimePropertyQuota(PropertyQuota.newBuilder().build()) + .setFunnelPropertyQuota(PropertyQuota.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-1354/propertyQuotasSnapshot"; + + PropertyQuotasSnapshot actualResponse = client.getPropertyQuotasSnapshot(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 getPropertyQuotasSnapshotExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-1354/propertyQuotasSnapshot"; + client.getPropertyQuotasSnapshot(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createReportTaskTest() throws Exception { ReportTask expectedResponse = diff --git a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java index 21625c6619d0..b15fd3ac8363 100644 --- a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java +++ b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java @@ -871,6 +871,90 @@ public void listRecurringAudienceListsExceptionTest2() throws Exception { } } + @Test + public void getPropertyQuotasSnapshotTest() throws Exception { + PropertyQuotasSnapshot expectedResponse = + PropertyQuotasSnapshot.newBuilder() + .setName(PropertyQuotasSnapshotName.of("[PROPERTY]").toString()) + .setCorePropertyQuota(PropertyQuota.newBuilder().build()) + .setRealtimePropertyQuota(PropertyQuota.newBuilder().build()) + .setFunnelPropertyQuota(PropertyQuota.newBuilder().build()) + .build(); + mockAlphaAnalyticsData.addResponse(expectedResponse); + + PropertyQuotasSnapshotName name = PropertyQuotasSnapshotName.of("[PROPERTY]"); + + PropertyQuotasSnapshot actualResponse = client.getPropertyQuotasSnapshot(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlphaAnalyticsData.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPropertyQuotasSnapshotRequest actualRequest = + ((GetPropertyQuotasSnapshotRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPropertyQuotasSnapshotExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlphaAnalyticsData.addException(exception); + + try { + PropertyQuotasSnapshotName name = PropertyQuotasSnapshotName.of("[PROPERTY]"); + client.getPropertyQuotasSnapshot(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPropertyQuotasSnapshotTest2() throws Exception { + PropertyQuotasSnapshot expectedResponse = + PropertyQuotasSnapshot.newBuilder() + .setName(PropertyQuotasSnapshotName.of("[PROPERTY]").toString()) + .setCorePropertyQuota(PropertyQuota.newBuilder().build()) + .setRealtimePropertyQuota(PropertyQuota.newBuilder().build()) + .setFunnelPropertyQuota(PropertyQuota.newBuilder().build()) + .build(); + mockAlphaAnalyticsData.addResponse(expectedResponse); + + String name = "name3373707"; + + PropertyQuotasSnapshot actualResponse = client.getPropertyQuotasSnapshot(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlphaAnalyticsData.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPropertyQuotasSnapshotRequest actualRequest = + ((GetPropertyQuotasSnapshotRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPropertyQuotasSnapshotExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlphaAnalyticsData.addException(exception); + + try { + String name = "name3373707"; + client.getPropertyQuotasSnapshot(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createReportTaskTest() throws Exception { ReportTask expectedResponse = diff --git a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java index 10a915709e89..ef411862d0e7 100644 --- a/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java +++ b/java-analytics-data/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java @@ -254,6 +254,28 @@ public void listRecurringAudienceLists( } } + @Override + public void getPropertyQuotasSnapshot( + GetPropertyQuotasSnapshotRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PropertyQuotasSnapshot) { + requests.add(request); + responseObserver.onNext(((PropertyQuotasSnapshot) 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 GetPropertyQuotasSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PropertyQuotasSnapshot.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createReportTask( CreateReportTaskRequest request, StreamObserver responseObserver) { diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java b/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java index 12f41726c8d1..623afd7d28f5 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java @@ -483,6 +483,59 @@ private AlphaAnalyticsDataGrpc() {} return getListRecurringAudienceListsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest, + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot> + getGetPropertyQuotasSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPropertyQuotasSnapshot", + requestType = com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest.class, + responseType = com.google.analytics.data.v1alpha.PropertyQuotasSnapshot.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest, + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot> + getGetPropertyQuotasSnapshotMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest, + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot> + getGetPropertyQuotasSnapshotMethod; + if ((getGetPropertyQuotasSnapshotMethod = + AlphaAnalyticsDataGrpc.getGetPropertyQuotasSnapshotMethod) + == null) { + synchronized (AlphaAnalyticsDataGrpc.class) { + if ((getGetPropertyQuotasSnapshotMethod = + AlphaAnalyticsDataGrpc.getGetPropertyQuotasSnapshotMethod) + == null) { + AlphaAnalyticsDataGrpc.getGetPropertyQuotasSnapshotMethod = + getGetPropertyQuotasSnapshotMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetPropertyQuotasSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot + .getDefaultInstance())) + .setSchemaDescriptor( + new AlphaAnalyticsDataMethodDescriptorSupplier( + "GetPropertyQuotasSnapshot")) + .build(); + } + } + } + return getGetPropertyQuotasSnapshotMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.analytics.data.v1alpha.CreateReportTaskRequest, com.google.longrunning.Operation> @@ -971,6 +1024,22 @@ default void listRecurringAudienceLists( getListRecurringAudienceListsMethod(), responseObserver); } + /** + * + * + * + * Get all property quotas organized by quota category for a given property. + * This will charge 1 property quota from the category with the most quota. + *+ */ + default void getPropertyQuotasSnapshot( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPropertyQuotasSnapshotMethod(), responseObserver); + } + /** * * @@ -979,6 +1048,10 @@ default void listRecurringAudienceLists( * returns a report task and initiates a long running * asynchronous request to form a customized report of your Google Analytics * event data. + * A report task will be retained and available for querying for 72 hours + * after it has been created. + * A report task created by one user can be listed and queried by all users + * who have access to the property. * + * Get all property quotas organized by quota category for a given property. + * This will charge 1 property quota from the category with the most quota. + *+ */ + public void getPropertyQuotasSnapshot( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPropertyQuotasSnapshotMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1352,6 +1443,10 @@ public void listRecurringAudienceLists( * returns a report task and initiates a long running * asynchronous request to form a customized report of your Google Analytics * event data. + * A report task will be retained and available for querying for 72 hours + * after it has been created. + * A report task created by one user can be listed and queried by all users + * who have access to the property. * + * Get all property quotas organized by quota category for a given property. + * This will charge 1 property quota from the category with the most quota. + *+ */ + public com.google.analytics.data.v1alpha.PropertyQuotasSnapshot getPropertyQuotasSnapshot( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPropertyQuotasSnapshotMethod(), getCallOptions(), request); + } + /** * * @@ -1683,6 +1792,10 @@ public com.google.analytics.data.v1alpha.RecurringAudienceList getRecurringAudie * returns a report task and initiates a long running * asynchronous request to form a customized report of your Google Analytics * event data. + * A report task will be retained and available for querying for 72 hours + * after it has been created. + * A report task created by one user can be listed and queried by all users + * who have access to the property. *+ * Get all property quotas organized by quota category for a given property. + * This will charge 1 property quota from the category with the most quota. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot> + getPropertyQuotasSnapshot( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPropertyQuotasSnapshotMethod(), getCallOptions()), request); + } + /** * * @@ -2008,6 +2137,10 @@ protected AlphaAnalyticsDataFutureStub build( * returns a report task and initiates a long running * asynchronous request to form a customized report of your Google Analytics * event data. + * A report task will be retained and available for querying for 72 hours + * after it has been created. + * A report task created by one user can be listed and queried by all users + * who have access to the property. *@@ -2074,10 +2207,11 @@ protected AlphaAnalyticsDataFutureStub build( private static final int METHODID_CREATE_RECURRING_AUDIENCE_LIST = 6; private static final int METHODID_GET_RECURRING_AUDIENCE_LIST = 7; private static final int METHODID_LIST_RECURRING_AUDIENCE_LISTS = 8; - private static final int METHODID_CREATE_REPORT_TASK = 9; - private static final int METHODID_QUERY_REPORT_TASK = 10; - private static final int METHODID_GET_REPORT_TASK = 11; - private static final int METHODID_LIST_REPORT_TASKS = 12; + private static final int METHODID_GET_PROPERTY_QUOTAS_SNAPSHOT = 9; + private static final int METHODID_CREATE_REPORT_TASK = 10; + private static final int METHODID_QUERY_REPORT_TASK = 11; + private static final int METHODID_GET_REPORT_TASK = 12; + private static final int METHODID_LIST_REPORT_TASKS = 13; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod , @@ -2154,6 +2288,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse>) responseObserver); break; + case METHODID_GET_PROPERTY_QUOTAS_SNAPSHOT: + serviceImpl.getPropertyQuotasSnapshot( + (com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot>) + responseObserver); + break; case METHODID_CREATE_REPORT_TASK: serviceImpl.createReportTask( (com.google.analytics.data.v1alpha.CreateReportTaskRequest) request, @@ -2259,6 +2400,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.data.v1alpha.ListRecurringAudienceListsRequest, com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse>( service, METHODID_LIST_RECURRING_AUDIENCE_LISTS))) + .addMethod( + getGetPropertyQuotasSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest, + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot>( + service, METHODID_GET_PROPERTY_QUOTAS_SNAPSHOT))) .addMethod( getCreateReportTaskMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2346,6 +2494,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateRecurringAudienceListMethod()) .addMethod(getGetRecurringAudienceListMethod()) .addMethod(getListRecurringAudienceListsMethod()) + .addMethod(getGetPropertyQuotasSnapshotMethod()) .addMethod(getCreateReportTaskMethod()) .addMethod(getQueryReportTaskMethod()) .addMethod(getGetReportTaskMethod()) diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java index a7725653c563..4deb5970d90e 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_data_v1alpha_ListRecurringAudienceListsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_data_v1alpha_ListRecurringAudienceListsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_data_v1alpha_GetAudienceListRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -202,240 +210,259 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ing_audience_lists\030\001 \003(\01324.google.analyt" + "ics.data.v1alpha.RecurringAudienceList\022\034" + "\n\017next_page_token\030\002 \001(\tH\000\210\001\001B\022\n\020_next_pa" - + "ge_token\"Y\n\026GetAudienceListRequest\022?\n\004na" - + "me\030\001 \001(\tB1\340A\002\372A+\n)analyticsdata.googleap" - + "is.com/AudienceList\"\216\001\n\030ListAudienceList" - + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)analyt" - + "icsdata.googleapis.com/AudienceList\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\"\222\001\n\031ListAudienceListsResponse\022C\n\016au" - + "dience_lists\030\001 \003(\0132+.google.analytics.da" - + "ta.v1alpha.AudienceList\022\034\n\017next_page_tok" - + "en\030\002 \001(\tH\000\210\001\001B\022\n\020_next_page_token\"\247\001\n\031Cr" - + "eateAudienceListRequest\022A\n\006parent\030\001 \001(\tB" - + "1\340A\002\372A+\022)analyticsdata.googleapis.com/Au" - + "dienceList\022G\n\raudience_list\030\002 \001(\0132+.goog" - + "le.analytics.data.v1alpha.AudienceListB\003" - + "\340A\002\"\253\007\n\014AudienceList\022\024\n\004name\030\001 \001(\tB\006\340A\010\340" - + "A\003\022\025\n\010audience\030\002 \001(\tB\003\340A\002\022\"\n\025audience_di" - + "splay_name\030\003 \001(\tB\003\340A\003\022I\n\ndimensions\030\004 \003(" - + "\01320.google.analytics.data.v1alpha.Audien" - + "ceDimensionB\003\340A\002\022J\n\005state\030\005 \001(\01621.google" - + ".analytics.data.v1alpha.AudienceList.Sta" - + "teB\003\340A\003H\000\210\001\001\022A\n\023begin_creating_time\030\006 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\022" - + "*\n\035creation_quota_tokens_charged\030\007 \001(\005B\003" - + "\340A\003\022\033\n\trow_count\030\010 \001(\005B\003\340A\003H\002\210\001\001\022\037\n\rerro" - + "r_message\030\t \001(\tB\003\340A\003H\003\210\001\001\022&\n\024percentage_" - + "completed\030\013 \001(\001B\003\340A\003H\004\210\001\001\022)\n\027recurring_a" - + "udience_list\030\014 \001(\tB\003\340A\003H\005\210\001\001\022Z\n\024webhook_" - + "notification\030\r \001(\01322.google.analytics.da" - + "ta.v1alpha.WebhookNotificationB\003\340A\001H\006\210\001\001" - + "\"D\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" - + "TING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003:\200\001\352A}\n)an" - + "alyticsdata.googleapis.com/AudienceList\022" - + "3properties/{property}/audienceLists/{au" - + "dience_list}*\raudienceLists2\014audienceLis" - + "tB\010\n\006_stateB\026\n\024_begin_creating_timeB\014\n\n_" - + "row_countB\020\n\016_error_messageB\027\n\025_percenta" - + "ge_completedB\032\n\030_recurring_audience_list" - + "B\027\n\025_webhook_notification\"\026\n\024AudienceLis" - + "tMetadata\"V\n\030QueryAudienceListRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022\023\n\006offset\030\002 \001(\003B\003\340A\001\022\022\n" - + "\005limit\030\003 \001(\003B\003\340A\001\"\337\001\n\031QueryAudienceListR" - + "esponse\022G\n\raudience_list\030\001 \001(\0132+.google." - + "analytics.data.v1alpha.AudienceListH\000\210\001\001" - + "\022A\n\raudience_rows\030\002 \003(\0132*.google.analyti" - + "cs.data.v1alpha.AudienceRow\022\026\n\trow_count" - + "\030\003 \001(\005H\001\210\001\001B\020\n\016_audience_listB\014\n\n_row_co" - + "unt\"\212\001\n\036SheetExportAudienceListRequest\022?" - + "\n\004name\030\001 \001(\tB1\340A\002\372A+\n)analyticsdata.goog" - + "leapis.com/AudienceList\022\023\n\006offset\030\002 \001(\003B" - + "\003\340A\001\022\022\n\005limit\030\003 \001(\003B\003\340A\001\"\204\002\n\037SheetExport" - + "AudienceListResponse\022\034\n\017spreadsheet_uri\030" - + "\001 \001(\tH\000\210\001\001\022\033\n\016spreadsheet_id\030\002 \001(\tH\001\210\001\001\022" - + "\026\n\trow_count\030\003 \001(\005H\002\210\001\001\022G\n\raudience_list" - + "\030\004 \001(\0132+.google.analytics.data.v1alpha.A" - + "udienceListH\003\210\001\001B\022\n\020_spreadsheet_uriB\021\n\017" - + "_spreadsheet_idB\014\n\n_row_countB\020\n\016_audien" - + "ce_list\"^\n\013AudienceRow\022O\n\020dimension_valu" - + "es\030\001 \003(\01325.google.analytics.data.v1alpha" - + ".AudienceDimensionValue\"0\n\021AudienceDimen" - + "sion\022\033\n\016dimension_name\030\001 \001(\tB\003\340A\001\"6\n\026Aud" - + "ienceDimensionValue\022\017\n\005value\030\001 \001(\tH\000B\013\n\t" - + "one_value\"\375\005\n\026RunFunnelReportRequest\022\025\n\010" - + "property\030\001 \001(\tB\003\340A\001\022B\n\013date_ranges\030\002 \003(\013" - + "2(.google.analytics.data.v1alpha.DateRan" - + "geB\003\340A\001\022:\n\006funnel\030\003 \001(\0132%.google.analyti" - + "cs.data.v1alpha.FunnelB\003\340A\001\022M\n\020funnel_br" - + "eakdown\030\004 \001(\0132..google.analytics.data.v1" - + "alpha.FunnelBreakdownB\003\340A\001\022P\n\022funnel_nex" - + "t_action\030\005 \001(\0132/.google.analytics.data.v" - + "1alpha.FunnelNextActionB\003\340A\001\022u\n\031funnel_v" - + "isualization_type\030\006 \001(\0162M.google.analyti" - + "cs.data.v1alpha.RunFunnelReportRequest.F" - + "unnelVisualizationTypeB\003\340A\001\022=\n\010segments\030" - + "\007 \003(\0132&.google.analytics.data.v1alpha.Se" - + "gmentB\003\340A\001\022\022\n\005limit\030\t \001(\003B\003\340A\001\022N\n\020dimens" - + "ion_filter\030\n \001(\0132/.google.analytics.data" - + ".v1alpha.FilterExpressionB\003\340A\001\022\"\n\025return" - + "_property_quota\030\014 \001(\010B\003\340A\001\"m\n\027FunnelVisu" - + "alizationType\022)\n%FUNNEL_VISUALIZATION_TY" - + "PE_UNSPECIFIED\020\000\022\023\n\017STANDARD_FUNNEL\020\001\022\022\n" - + "\016TRENDED_FUNNEL\020\002\"\201\002\n\027RunFunnelReportRes" - + "ponse\022D\n\014funnel_table\030\001 \001(\0132..google.ana" - + "lytics.data.v1alpha.FunnelSubReport\022L\n\024f" - + "unnel_visualization\030\002 \001(\0132..google.analy" - + "tics.data.v1alpha.FunnelSubReport\022D\n\016pro" - + "perty_quota\030\003 \001(\0132,.google.analytics.dat" - + "a.v1alpha.PropertyQuota\022\014\n\004kind\030\004 \001(\t\"\342\013" - + "\n\nReportTask\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\003\022Z\n\021re" - + "port_definition\030\002 \001(\0132:.google.analytics" - + ".data.v1alpha.ReportTask.ReportDefinitio" - + "nB\003\340A\001\022V\n\017report_metadata\030\003 \001(\01328.google" - + ".analytics.data.v1alpha.ReportTask.Repor" - + "tMetadataB\003\340A\003\032\257\005\n\020ReportDefinition\022A\n\nd" - + "imensions\030\002 \003(\0132(.google.analytics.data." - + "v1alpha.DimensionB\003\340A\001\022;\n\007metrics\030\003 \003(\0132" - + "%.google.analytics.data.v1alpha.MetricB\003" - + "\340A\001\022B\n\013date_ranges\030\004 \003(\0132(.google.analyt" - + "ics.data.v1alpha.DateRangeB\003\340A\001\022N\n\020dimen" - + "sion_filter\030\005 \001(\0132/.google.analytics.dat" - + "a.v1alpha.FilterExpressionB\003\340A\001\022K\n\rmetri" - + "c_filter\030\006 \001(\0132/.google.analytics.data.v" - + "1alpha.FilterExpressionB\003\340A\001\022\023\n\006offset\030\007" - + " \001(\003B\003\340A\001\022\022\n\005limit\030\010 \001(\003B\003\340A\001\022R\n\023metric_" - + "aggregations\030\t \003(\01620.google.analytics.da" - + "ta.v1alpha.MetricAggregationB\003\340A\001\022>\n\tord" - + "er_bys\030\n \003(\0132&.google.analytics.data.v1a" - + "lpha.OrderByB\003\340A\001\022\032\n\rcurrency_code\030\013 \001(\t" - + "B\003\340A\001\022C\n\013cohort_spec\030\014 \001(\0132).google.anal" - + "ytics.data.v1alpha.CohortSpecB\003\340A\001\022\034\n\017ke" - + "ep_empty_rows\030\r \001(\010B\003\340A\001\032\337\003\n\016ReportMetad" - + "ata\022W\n\005state\030\001 \001(\0162>.google.analytics.da" - + "ta.v1alpha.ReportTask.ReportMetadata.Sta" - + "teB\003\340A\003H\000\210\001\001\022A\n\023begin_creating_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\022" - + "*\n\035creation_quota_tokens_charged\030\003 \001(\005B\003" - + "\340A\003\022 \n\016task_row_count\030\004 \001(\005B\003\340A\003H\002\210\001\001\022\037\n" - + "\rerror_message\030\005 \001(\tB\003\340A\003H\003\210\001\001\022!\n\017total_" - + "row_count\030\006 \001(\005B\003\340A\003H\004\210\001\001\"D\n\005State\022\025\n\021ST" + + "ge_token\"n\n GetPropertyQuotasSnapshotReq" + + "uest\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4analyticsadm" + + "in.googleapis.com/PropertyQuotasSnapshot" + + "\"\256\003\n\026PropertyQuotasSnapshot\022\021\n\004name\030\004 \001(" + + "\tB\003\340A\010\022I\n\023core_property_quota\030\001 \001(\0132,.go" + + "ogle.analytics.data.v1alpha.PropertyQuot" + + "a\022M\n\027realtime_property_quota\030\002 \001(\0132,.goo" + + "gle.analytics.data.v1alpha.PropertyQuota" + + "\022K\n\025funnel_property_quota\030\003 \001(\0132,.google" + + ".analytics.data.v1alpha.PropertyQuota:\231\001" + + "\352A\225\001\n4analyticsadmin.googleapis.com/Prop" + + "ertyQuotasSnapshot\022,properties/{property" + + "}/propertyQuotasSnapshot*\027propertyQuotas" + + "Snapshots2\026propertyQuotasSnapshot\"Y\n\026Get" + + "AudienceListRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A" + + "+\n)analyticsdata.googleapis.com/Audience" + + "List\"\216\001\n\030ListAudienceListsRequest\022A\n\006par" + + "ent\030\001 \001(\tB1\340A\002\372A+\022)analyticsdata.googlea" + + "pis.com/AudienceList\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\222\001\n\031ListAu" + + "dienceListsResponse\022C\n\016audience_lists\030\001 " + + "\003(\0132+.google.analytics.data.v1alpha.Audi" + + "enceList\022\034\n\017next_page_token\030\002 \001(\tH\000\210\001\001B\022" + + "\n\020_next_page_token\"\247\001\n\031CreateAudienceLis" + + "tRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)analyt" + + "icsdata.googleapis.com/AudienceList\022G\n\ra" + + "udience_list\030\002 \001(\0132+.google.analytics.da" + + "ta.v1alpha.AudienceListB\003\340A\002\"\253\007\n\014Audienc" + + "eList\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\003\022\025\n\010audience\030" + + "\002 \001(\tB\003\340A\002\022\"\n\025audience_display_name\030\003 \001(" + + "\tB\003\340A\003\022I\n\ndimensions\030\004 \003(\01320.google.anal" + + "ytics.data.v1alpha.AudienceDimensionB\003\340A" + + "\002\022J\n\005state\030\005 \001(\01621.google.analytics.data" + + ".v1alpha.AudienceList.StateB\003\340A\003H\000\210\001\001\022A\n" + + "\023begin_creating_time\030\006 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003H\001\210\001\001\022*\n\035creation_quo" + + "ta_tokens_charged\030\007 \001(\005B\003\340A\003\022\033\n\trow_coun" + + "t\030\010 \001(\005B\003\340A\003H\002\210\001\001\022\037\n\rerror_message\030\t \001(\t" + + "B\003\340A\003H\003\210\001\001\022&\n\024percentage_completed\030\013 \001(\001" + + "B\003\340A\003H\004\210\001\001\022)\n\027recurring_audience_list\030\014 " + + "\001(\tB\003\340A\003H\005\210\001\001\022Z\n\024webhook_notification\030\r " + + "\001(\01322.google.analytics.data.v1alpha.Webh" + + "ookNotificationB\003\340A\001H\006\210\001\001\"D\n\005State\022\025\n\021ST" + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIV" - + "E\020\002\022\n\n\006FAILED\020\003B\010\n\006_stateB\026\n\024_begin_crea" - + "ting_timeB\021\n\017_task_row_countB\020\n\016_error_m" - + "essageB\022\n\020_total_row_count:v\352As\n\'analyti" - + "csdata.googleapis.com/ReportTask\022/proper" - + "ties/{property}/reportTasks/{report_task" - + "}*\013reportTasks2\nreportTask\"\237\001\n\027CreateRep" - + "ortTaskRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'" - + "analyticsdata.googleapis.com/ReportTask\022" - + "C\n\013report_task\030\002 \001(\0132).google.analytics." - + "data.v1alpha.ReportTaskB\003\340A\002\"\024\n\022ReportTa" - + "skMetadata\"T\n\026QueryReportTaskRequest\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\002\022\023\n\006offset\030\002 \001(\003B\003\340A\001\022\022\n\005" - + "limit\030\003 \001(\003B\003\340A\001\"\321\003\n\027QueryReportTaskResp" - + "onse\022I\n\021dimension_headers\030\001 \003(\0132..google" - + ".analytics.data.v1alpha.DimensionHeader\022" - + "C\n\016metric_headers\030\002 \003(\0132+.google.analyti" - + "cs.data.v1alpha.MetricHeader\0220\n\004rows\030\003 \003" - + "(\0132\".google.analytics.data.v1alpha.Row\0222" - + "\n\006totals\030\004 \003(\0132\".google.analytics.data.v" - + "1alpha.Row\0224\n\010maximums\030\005 \003(\0132\".google.an" - + "alytics.data.v1alpha.Row\0224\n\010minimums\030\006 \003" - + "(\0132\".google.analytics.data.v1alpha.Row\022\021" - + "\n\trow_count\030\007 \001(\005\022A\n\010metadata\030\010 \001(\0132/.go" - + "ogle.analytics.data.v1alpha.ResponseMeta" - + "Data\"U\n\024GetReportTaskRequest\022=\n\004name\030\001 \001" - + "(\tB/\340A\002\372A)\n\'analyticsdata.googleapis.com" - + "/ReportTask\"\212\001\n\026ListReportTasksRequest\022?" - + "\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'analyticsdata.go" - + "ogleapis.com/ReportTask\022\026\n\tpage_size\030\002 \001" - + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\214\001\n\027Lis" - + "tReportTasksResponse\022?\n\014report_tasks\030\001 \003" - + "(\0132).google.analytics.data.v1alpha.Repor" - + "tTask\022\034\n\017next_page_token\030\002 \001(\tH\000\210\001\001B\022\n\020_" - + "next_page_token2\353\027\n\022AlphaAnalyticsData\022\275" - + "\001\n\017RunFunnelReport\0225.google.analytics.da" - + "ta.v1alpha.RunFunnelReportRequest\0326.goog" - + "le.analytics.data.v1alpha.RunFunnelRepor" - + "tResponse\";\202\323\344\223\0025\"0/v1alpha/{property=pr" - + "operties/*}:runFunnelReport:\001*\022\361\001\n\022Creat" - + "eAudienceList\0228.google.analytics.data.v1" - + "alpha.CreateAudienceListRequest\032\035.google" - + ".longrunning.Operation\"\201\001\312A$\n\014AudienceLi" - + "st\022\024AudienceListMetadata\332A\024parent,audien" - + "ce_list\202\323\344\223\002=\",/v1alpha/{parent=properti" - + "es/*}/audienceLists:\raudience_list\022\314\001\n\021Q" - + "ueryAudienceList\0227.google.analytics.data" - + ".v1alpha.QueryAudienceListRequest\0328.goog" - + "le.analytics.data.v1alpha.QueryAudienceL" - + "istResponse\"D\332A\004name\202\323\344\223\0027\"2/v1alpha/{na" - + "me=properties/*/audienceLists/*}:query:\001" - + "*\022\344\001\n\027SheetExportAudienceList\022=.google.a" - + "nalytics.data.v1alpha.SheetExportAudienc" - + "eListRequest\032>.google.analytics.data.v1a" - + "lpha.SheetExportAudienceListResponse\"J\332A" - + "\004name\202\323\344\223\002=\"8/v1alpha/{name=properties/*" - + "/audienceLists/*}:exportSheet:\001*\022\262\001\n\017Get" - + "AudienceList\0225.google.analytics.data.v1a" - + "lpha.GetAudienceListRequest\032+.google.ana" - + "lytics.data.v1alpha.AudienceList\";\332A\004nam" - + "e\202\323\344\223\002.\022,/v1alpha/{name=properties/*/aud" - + "ienceLists/*}\022\305\001\n\021ListAudienceLists\0227.go" - + "ogle.analytics.data.v1alpha.ListAudience" - + "ListsRequest\0328.google.analytics.data.v1a" - + "lpha.ListAudienceListsResponse\"=\332A\006paren" - + "t\202\323\344\223\002.\022,/v1alpha/{parent=properties/*}/" - + "audienceLists\022\217\002\n\033CreateRecurringAudienc" - + "eList\022A.google.analytics.data.v1alpha.Cr" - + "eateRecurringAudienceListRequest\0324.googl" - + "e.analytics.data.v1alpha.RecurringAudien" - + "ceList\"w\332A\036parent,recurring_audience_lis" - + "t\202\323\344\223\002P\"5/v1alpha/{parent=properties/*}/" - + "recurringAudienceLists:\027recurring_audien" - + "ce_list\022\326\001\n\030GetRecurringAudienceList\022>.g" - + "oogle.analytics.data.v1alpha.GetRecurrin" - + "gAudienceListRequest\0324.google.analytics." - + "data.v1alpha.RecurringAudienceList\"D\332A\004n" - + "ame\202\323\344\223\0027\0225/v1alpha/{name=properties/*/r" - + "ecurringAudienceLists/*}\022\351\001\n\032ListRecurri" - + "ngAudienceLists\022@.google.analytics.data." - + "v1alpha.ListRecurringAudienceListsReques" - + "t\032A.google.analytics.data.v1alpha.ListRe" - + "curringAudienceListsResponse\"F\332A\006parent\202" - + "\323\344\223\0027\0225/v1alpha/{parent=properties/*}/re" - + "curringAudienceLists\022\342\001\n\020CreateReportTas" - + "k\0226.google.analytics.data.v1alpha.Create" - + "ReportTaskRequest\032\035.google.longrunning.O" - + "peration\"w\312A \n\nReportTask\022\022ReportTaskMet" - + "adata\332A\022parent,report_task\202\323\344\223\0029\"*/v1alp" - + "ha/{parent=properties/*}/reportTasks:\013re" - + "port_task\022\304\001\n\017QueryReportTask\0225.google.a" - + "nalytics.data.v1alpha.QueryReportTaskReq" - + "uest\0326.google.analytics.data.v1alpha.Que" - + "ryReportTaskResponse\"B\332A\004name\202\323\344\223\0025\"0/v1" - + "alpha/{name=properties/*/reportTasks/*}:" - + "query:\001*\022\252\001\n\rGetReportTask\0223.google.anal" - + "ytics.data.v1alpha.GetReportTaskRequest\032" - + ").google.analytics.data.v1alpha.ReportTa" - + "sk\"9\332A\004name\202\323\344\223\002,\022*/v1alpha/{name=proper" - + "ties/*/reportTasks/*}\022\275\001\n\017ListReportTask" - + "s\0225.google.analytics.data.v1alpha.ListRe" - + "portTasksRequest\0326.google.analytics.data" - + ".v1alpha.ListReportTasksResponse\";\332A\006par" - + "ent\202\323\344\223\002,\022*/v1alpha/{parent=properties/*" - + "}/reportTasks\032\375\001\312A\034analyticsdata.googlea" - + "pis.com\322A\332\001https://www.googleapis.com/au" - + "th/analytics,https://www.googleapis.com/" - + "auth/analytics.readonly,https://www.goog" - + "leapis.com/auth/drive,https://www.google" - + "apis.com/auth/drive.file,https://www.goo" - + "gleapis.com/auth/spreadsheetsB\301\001\n!com.go" - + "ogle.analytics.data.v1alphaB\025AnalyticsDa" - + "taApiProtoP\001ZAgoogle.golang.org/genproto" - + "/googleapis/analytics/data/v1alpha;data\352" - + "A?\n&analyticsadmin.googleapis.com/Proper" - + "ty\022\025properties/{property}b\006proto3" + + "E\020\002\022\n\n\006FAILED\020\003:\200\001\352A}\n)analyticsdata.goo" + + "gleapis.com/AudienceList\0223properties/{pr" + + "operty}/audienceLists/{audience_list}*\ra" + + "udienceLists2\014audienceListB\010\n\006_stateB\026\n\024" + + "_begin_creating_timeB\014\n\n_row_countB\020\n\016_e" + + "rror_messageB\027\n\025_percentage_completedB\032\n" + + "\030_recurring_audience_listB\027\n\025_webhook_no" + + "tification\"\026\n\024AudienceListMetadata\"V\n\030Qu" + + "eryAudienceListRequest\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\002\022\023\n\006offset\030\002 \001(\003B\003\340A\001\022\022\n\005limit\030\003 \001(\003B\003\340" + + "A\001\"\337\001\n\031QueryAudienceListResponse\022G\n\raudi" + + "ence_list\030\001 \001(\0132+.google.analytics.data." + + "v1alpha.AudienceListH\000\210\001\001\022A\n\raudience_ro" + + "ws\030\002 \003(\0132*.google.analytics.data.v1alpha" + + ".AudienceRow\022\026\n\trow_count\030\003 \001(\005H\001\210\001\001B\020\n\016" + + "_audience_listB\014\n\n_row_count\"\212\001\n\036SheetEx" + + "portAudienceListRequest\022?\n\004name\030\001 \001(\tB1\340" + + "A\002\372A+\n)analyticsdata.googleapis.com/Audi" + + "enceList\022\023\n\006offset\030\002 \001(\003B\003\340A\001\022\022\n\005limit\030\003" + + " \001(\003B\003\340A\001\"\204\002\n\037SheetExportAudienceListRes" + + "ponse\022\034\n\017spreadsheet_uri\030\001 \001(\tH\000\210\001\001\022\033\n\016s" + + "preadsheet_id\030\002 \001(\tH\001\210\001\001\022\026\n\trow_count\030\003 " + + "\001(\005H\002\210\001\001\022G\n\raudience_list\030\004 \001(\0132+.google" + + ".analytics.data.v1alpha.AudienceListH\003\210\001" + + "\001B\022\n\020_spreadsheet_uriB\021\n\017_spreadsheet_id" + + "B\014\n\n_row_countB\020\n\016_audience_list\"^\n\013Audi" + + "enceRow\022O\n\020dimension_values\030\001 \003(\01325.goog" + + "le.analytics.data.v1alpha.AudienceDimens" + + "ionValue\"0\n\021AudienceDimension\022\033\n\016dimensi" + + "on_name\030\001 \001(\tB\003\340A\001\"6\n\026AudienceDimensionV" + + "alue\022\017\n\005value\030\001 \001(\tH\000B\013\n\tone_value\"\375\005\n\026R" + + "unFunnelReportRequest\022\025\n\010property\030\001 \001(\tB" + + "\003\340A\001\022B\n\013date_ranges\030\002 \003(\0132(.google.analy" + + "tics.data.v1alpha.DateRangeB\003\340A\001\022:\n\006funn" + + "el\030\003 \001(\0132%.google.analytics.data.v1alpha" + + ".FunnelB\003\340A\001\022M\n\020funnel_breakdown\030\004 \001(\0132." + + ".google.analytics.data.v1alpha.FunnelBre" + + "akdownB\003\340A\001\022P\n\022funnel_next_action\030\005 \001(\0132" + + "/.google.analytics.data.v1alpha.FunnelNe" + + "xtActionB\003\340A\001\022u\n\031funnel_visualization_ty" + + "pe\030\006 \001(\0162M.google.analytics.data.v1alpha" + + ".RunFunnelReportRequest.FunnelVisualizat" + + "ionTypeB\003\340A\001\022=\n\010segments\030\007 \003(\0132&.google." + + "analytics.data.v1alpha.SegmentB\003\340A\001\022\022\n\005l" + + "imit\030\t \001(\003B\003\340A\001\022N\n\020dimension_filter\030\n \001(" + + "\0132/.google.analytics.data.v1alpha.Filter" + + "ExpressionB\003\340A\001\022\"\n\025return_property_quota" + + "\030\014 \001(\010B\003\340A\001\"m\n\027FunnelVisualizationType\022)" + + "\n%FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED\020" + + "\000\022\023\n\017STANDARD_FUNNEL\020\001\022\022\n\016TRENDED_FUNNEL" + + "\020\002\"\201\002\n\027RunFunnelReportResponse\022D\n\014funnel" + + "_table\030\001 \001(\0132..google.analytics.data.v1a" + + "lpha.FunnelSubReport\022L\n\024funnel_visualiza" + + "tion\030\002 \001(\0132..google.analytics.data.v1alp" + + "ha.FunnelSubReport\022D\n\016property_quota\030\003 \001" + + "(\0132,.google.analytics.data.v1alpha.Prope" + + "rtyQuota\022\014\n\004kind\030\004 \001(\t\"\342\013\n\nReportTask\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022Z\n\021report_definition" + + "\030\002 \001(\0132:.google.analytics.data.v1alpha.R" + + "eportTask.ReportDefinitionB\003\340A\001\022V\n\017repor" + + "t_metadata\030\003 \001(\01328.google.analytics.data" + + ".v1alpha.ReportTask.ReportMetadataB\003\340A\003\032" + + "\257\005\n\020ReportDefinition\022A\n\ndimensions\030\002 \003(\013" + + "2(.google.analytics.data.v1alpha.Dimensi" + + "onB\003\340A\001\022;\n\007metrics\030\003 \003(\0132%.google.analyt" + + "ics.data.v1alpha.MetricB\003\340A\001\022B\n\013date_ran" + + "ges\030\004 \003(\0132(.google.analytics.data.v1alph" + + "a.DateRangeB\003\340A\001\022N\n\020dimension_filter\030\005 \001" + + "(\0132/.google.analytics.data.v1alpha.Filte" + + "rExpressionB\003\340A\001\022K\n\rmetric_filter\030\006 \001(\0132" + + "/.google.analytics.data.v1alpha.FilterEx" + + "pressionB\003\340A\001\022\023\n\006offset\030\007 \001(\003B\003\340A\001\022\022\n\005li" + + "mit\030\010 \001(\003B\003\340A\001\022R\n\023metric_aggregations\030\t " + + "\003(\01620.google.analytics.data.v1alpha.Metr" + + "icAggregationB\003\340A\001\022>\n\torder_bys\030\n \003(\0132&." + + "google.analytics.data.v1alpha.OrderByB\003\340" + + "A\001\022\032\n\rcurrency_code\030\013 \001(\tB\003\340A\001\022C\n\013cohort" + + "_spec\030\014 \001(\0132).google.analytics.data.v1al" + + "pha.CohortSpecB\003\340A\001\022\034\n\017keep_empty_rows\030\r" + + " \001(\010B\003\340A\001\032\337\003\n\016ReportMetadata\022W\n\005state\030\001 " + + "\001(\0162>.google.analytics.data.v1alpha.Repo" + + "rtTask.ReportMetadata.StateB\003\340A\003H\000\210\001\001\022A\n" + + "\023begin_creating_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003H\001\210\001\001\022*\n\035creation_quo" + + "ta_tokens_charged\030\003 \001(\005B\003\340A\003\022 \n\016task_row" + + "_count\030\004 \001(\005B\003\340A\003H\002\210\001\001\022\037\n\rerror_message\030" + + "\005 \001(\tB\003\340A\003H\003\210\001\001\022!\n\017total_row_count\030\006 \001(\005" + + "B\003\340A\003H\004\210\001\001\"D\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003" + + "B\010\n\006_stateB\026\n\024_begin_creating_timeB\021\n\017_t" + + "ask_row_countB\020\n\016_error_messageB\022\n\020_tota" + + "l_row_count:v\352As\n\'analyticsdata.googleap" + + "is.com/ReportTask\022/properties/{property}" + + "/reportTasks/{report_task}*\013reportTasks2" + + "\nreportTask\"\237\001\n\027CreateReportTaskRequest\022" + + "?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'analyticsdata.g" + + "oogleapis.com/ReportTask\022C\n\013report_task\030" + + "\002 \001(\0132).google.analytics.data.v1alpha.Re" + + "portTaskB\003\340A\002\"\024\n\022ReportTaskMetadata\"T\n\026Q" + + "ueryReportTaskRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\023\n\006offset\030\002 \001(\003B\003\340A\001\022\022\n\005limit\030\003 \001(\003B\003\340A" + + "\001\"\321\003\n\027QueryReportTaskResponse\022I\n\021dimensi" + + "on_headers\030\001 \003(\0132..google.analytics.data" + + ".v1alpha.DimensionHeader\022C\n\016metric_heade" + + "rs\030\002 \003(\0132+.google.analytics.data.v1alpha" + + ".MetricHeader\0220\n\004rows\030\003 \003(\0132\".google.ana" + + "lytics.data.v1alpha.Row\0222\n\006totals\030\004 \003(\0132" + + "\".google.analytics.data.v1alpha.Row\0224\n\010m" + + "aximums\030\005 \003(\0132\".google.analytics.data.v1" + + "alpha.Row\0224\n\010minimums\030\006 \003(\0132\".google.ana" + + "lytics.data.v1alpha.Row\022\021\n\trow_count\030\007 \001" + + "(\005\022A\n\010metadata\030\010 \001(\0132/.google.analytics." + + "data.v1alpha.ResponseMetaData\"U\n\024GetRepo" + + "rtTaskRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'ana" + + "lyticsdata.googleapis.com/ReportTask\"\212\001\n" + + "\026ListReportTasksRequest\022?\n\006parent\030\001 \001(\tB" + + "/\340A\002\372A)\022\'analyticsdata.googleapis.com/Re" + + "portTask\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"\214\001\n\027ListReportTasksRes" + + "ponse\022?\n\014report_tasks\030\001 \003(\0132).google.ana" + + "lytics.data.v1alpha.ReportTask\022\034\n\017next_p" + + "age_token\030\002 \001(\tH\000\210\001\001B\022\n\020_next_page_token" + + "2\305\031\n\022AlphaAnalyticsData\022\275\001\n\017RunFunnelRep" + + "ort\0225.google.analytics.data.v1alpha.RunF" + + "unnelReportRequest\0326.google.analytics.da" + + "ta.v1alpha.RunFunnelReportResponse\";\202\323\344\223" + + "\0025\"0/v1alpha/{property=properties/*}:run" + + "FunnelReport:\001*\022\361\001\n\022CreateAudienceList\0228" + + ".google.analytics.data.v1alpha.CreateAud" + + "ienceListRequest\032\035.google.longrunning.Op" + + "eration\"\201\001\312A$\n\014AudienceList\022\024AudienceLis" + + "tMetadata\332A\024parent,audience_list\202\323\344\223\002=\"," + + "/v1alpha/{parent=properties/*}/audienceL" + + "ists:\raudience_list\022\314\001\n\021QueryAudienceLis" + + "t\0227.google.analytics.data.v1alpha.QueryA" + + "udienceListRequest\0328.google.analytics.da" + + "ta.v1alpha.QueryAudienceListResponse\"D\332A" + + "\004name\202\323\344\223\0027\"2/v1alpha/{name=properties/*" + + "/audienceLists/*}:query:\001*\022\344\001\n\027SheetExpo" + + "rtAudienceList\022=.google.analytics.data.v" + + "1alpha.SheetExportAudienceListRequest\032>." + + "google.analytics.data.v1alpha.SheetExpor" + + "tAudienceListResponse\"J\332A\004name\202\323\344\223\002=\"8/v" + + "1alpha/{name=properties/*/audienceLists/" + + "*}:exportSheet:\001*\022\262\001\n\017GetAudienceList\0225." + + "google.analytics.data.v1alpha.GetAudienc" + + "eListRequest\032+.google.analytics.data.v1a" + + "lpha.AudienceList\";\332A\004name\202\323\344\223\002.\022,/v1alp" + + "ha/{name=properties/*/audienceLists/*}\022\305" + + "\001\n\021ListAudienceLists\0227.google.analytics." + + "data.v1alpha.ListAudienceListsRequest\0328." + + "google.analytics.data.v1alpha.ListAudien" + + "ceListsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alp" + + "ha/{parent=properties/*}/audienceLists\022\217" + + "\002\n\033CreateRecurringAudienceList\022A.google." + + "analytics.data.v1alpha.CreateRecurringAu" + + "dienceListRequest\0324.google.analytics.dat" + + "a.v1alpha.RecurringAudienceList\"w\332A\036pare" + + "nt,recurring_audience_list\202\323\344\223\002P\"5/v1alp" + + "ha/{parent=properties/*}/recurringAudien" + + "ceLists:\027recurring_audience_list\022\326\001\n\030Get" + + "RecurringAudienceList\022>.google.analytics" + + ".data.v1alpha.GetRecurringAudienceListRe" + + "quest\0324.google.analytics.data.v1alpha.Re" + + "curringAudienceList\"D\332A\004name\202\323\344\223\0027\0225/v1a" + + "lpha/{name=properties/*/recurringAudienc" + + "eLists/*}\022\351\001\n\032ListRecurringAudienceLists" + + "\022@.google.analytics.data.v1alpha.ListRec" + + "urringAudienceListsRequest\032A.google.anal" + + "ytics.data.v1alpha.ListRecurringAudience" + + "ListsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1alpha" + + "/{parent=properties/*}/recurringAudience" + + "Lists\022\327\001\n\031GetPropertyQuotasSnapshot\022?.go" + + "ogle.analytics.data.v1alpha.GetPropertyQ" + + "uotasSnapshotRequest\0325.google.analytics." + + "data.v1alpha.PropertyQuotasSnapshot\"B\332A\004" + + "name\202\323\344\223\0025\0223/v1alpha/{name=properties/*/" + + "propertyQuotasSnapshot}\022\342\001\n\020CreateReport" + + "Task\0226.google.analytics.data.v1alpha.Cre" + + "ateReportTaskRequest\032\035.google.longrunnin" + + "g.Operation\"w\312A \n\nReportTask\022\022ReportTask" + + "Metadata\332A\022parent,report_task\202\323\344\223\0029\"*/v1" + + "alpha/{parent=properties/*}/reportTasks:" + + "\013report_task\022\304\001\n\017QueryReportTask\0225.googl" + + "e.analytics.data.v1alpha.QueryReportTask" + + "Request\0326.google.analytics.data.v1alpha." + + "QueryReportTaskResponse\"B\332A\004name\202\323\344\223\0025\"0" + + "/v1alpha/{name=properties/*/reportTasks/" + + "*}:query:\001*\022\252\001\n\rGetReportTask\0223.google.a" + + "nalytics.data.v1alpha.GetReportTaskReque" + + "st\032).google.analytics.data.v1alpha.Repor" + + "tTask\"9\332A\004name\202\323\344\223\002,\022*/v1alpha/{name=pro" + + "perties/*/reportTasks/*}\022\275\001\n\017ListReportT" + + "asks\0225.google.analytics.data.v1alpha.Lis" + + "tReportTasksRequest\0326.google.analytics.d" + + "ata.v1alpha.ListReportTasksResponse\";\332A\006" + + "parent\202\323\344\223\002,\022*/v1alpha/{parent=propertie" + + "s/*}/reportTasks\032\375\001\312A\034analyticsdata.goog" + + "leapis.com\322A\332\001https://www.googleapis.com" + + "/auth/analytics,https://www.googleapis.c" + + "om/auth/analytics.readonly,https://www.g" + + "oogleapis.com/auth/drive,https://www.goo" + + "gleapis.com/auth/drive.file,https://www." + + "googleapis.com/auth/spreadsheetsB\301\001\n!com" + + ".google.analytics.data.v1alphaB\025Analytic" + + "sDataApiProtoP\001ZAgoogle.golang.org/genpr" + + "oto/googleapis/analytics/data/v1alpha;da" + + "ta\352A?\n&analyticsadmin.googleapis.com/Pro" + + "perty\022\025properties/{property}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -503,8 +530,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RecurringAudienceLists", "NextPageToken", }); - internal_static_google_analytics_data_v1alpha_GetAudienceListRequest_descriptor = + internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_descriptor, + new java.lang.String[] { + "Name", "CorePropertyQuota", "RealtimePropertyQuota", "FunnelPropertyQuota", + }); + internal_static_google_analytics_data_v1alpha_GetAudienceListRequest_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_analytics_data_v1alpha_GetAudienceListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_GetAudienceListRequest_descriptor, @@ -512,7 +555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_data_v1alpha_ListAudienceListsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_analytics_data_v1alpha_ListAudienceListsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ListAudienceListsRequest_descriptor, @@ -520,7 +563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_data_v1alpha_ListAudienceListsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_analytics_data_v1alpha_ListAudienceListsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ListAudienceListsResponse_descriptor, @@ -528,7 +571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudienceLists", "NextPageToken", }); internal_static_google_analytics_data_v1alpha_CreateAudienceListRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_analytics_data_v1alpha_CreateAudienceListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CreateAudienceListRequest_descriptor, @@ -536,7 +579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "AudienceList", }); internal_static_google_analytics_data_v1alpha_AudienceList_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_analytics_data_v1alpha_AudienceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_AudienceList_descriptor, @@ -555,13 +598,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WebhookNotification", }); internal_static_google_analytics_data_v1alpha_AudienceListMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_analytics_data_v1alpha_AudienceListMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_AudienceListMetadata_descriptor, new java.lang.String[] {}); internal_static_google_analytics_data_v1alpha_QueryAudienceListRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_analytics_data_v1alpha_QueryAudienceListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_QueryAudienceListRequest_descriptor, @@ -569,7 +612,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Offset", "Limit", }); internal_static_google_analytics_data_v1alpha_QueryAudienceListResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_analytics_data_v1alpha_QueryAudienceListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_QueryAudienceListResponse_descriptor, @@ -577,7 +620,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudienceList", "AudienceRows", "RowCount", }); internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SheetExportAudienceListRequest_descriptor, @@ -585,7 +628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Offset", "Limit", }); internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SheetExportAudienceListResponse_descriptor, @@ -593,7 +636,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpreadsheetUri", "SpreadsheetId", "RowCount", "AudienceList", }); internal_static_google_analytics_data_v1alpha_AudienceRow_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_analytics_data_v1alpha_AudienceRow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_AudienceRow_descriptor, @@ -601,7 +644,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionValues", }); internal_static_google_analytics_data_v1alpha_AudienceDimension_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_analytics_data_v1alpha_AudienceDimension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_AudienceDimension_descriptor, @@ -609,7 +652,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionName", }); internal_static_google_analytics_data_v1alpha_AudienceDimensionValue_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_analytics_data_v1alpha_AudienceDimensionValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_AudienceDimensionValue_descriptor, @@ -617,7 +660,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "OneValue", }); internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor, @@ -634,7 +677,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReturnPropertyQuota", }); internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor, @@ -642,7 +685,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FunnelTable", "FunnelVisualization", "PropertyQuota", "Kind", }); internal_static_google_analytics_data_v1alpha_ReportTask_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_analytics_data_v1alpha_ReportTask_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ReportTask_descriptor, @@ -682,7 +725,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalRowCount", }); internal_static_google_analytics_data_v1alpha_CreateReportTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_analytics_data_v1alpha_CreateReportTaskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CreateReportTaskRequest_descriptor, @@ -690,13 +733,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReportTask", }); internal_static_google_analytics_data_v1alpha_ReportTaskMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_analytics_data_v1alpha_ReportTaskMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ReportTaskMetadata_descriptor, new java.lang.String[] {}); internal_static_google_analytics_data_v1alpha_QueryReportTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_analytics_data_v1alpha_QueryReportTaskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_QueryReportTaskRequest_descriptor, @@ -704,7 +747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Offset", "Limit", }); internal_static_google_analytics_data_v1alpha_QueryReportTaskResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_analytics_data_v1alpha_QueryReportTaskResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_QueryReportTaskResponse_descriptor, @@ -719,7 +762,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Metadata", }); internal_static_google_analytics_data_v1alpha_GetReportTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_analytics_data_v1alpha_GetReportTaskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_GetReportTaskRequest_descriptor, @@ -727,7 +770,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_data_v1alpha_ListReportTasksRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_analytics_data_v1alpha_ListReportTasksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ListReportTasksRequest_descriptor, @@ -735,7 +778,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_data_v1alpha_ListReportTasksResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_analytics_data_v1alpha_ListReportTasksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ListReportTasksResponse_descriptor, diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetPropertyQuotasSnapshotRequest.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetPropertyQuotasSnapshotRequest.java new file mode 100644 index 000000000000..54265ef9f765 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetPropertyQuotasSnapshotRequest.java @@ -0,0 +1,659 @@ +/* + * Copyright 2024 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/analytics/data/v1alpha/analytics_data_api.proto + +// Protobuf Java Version: 3.25.4 +package com.google.analytics.data.v1alpha; + +/** + * + * + * + * A request to return the PropertyQuotasSnapshot for a given category. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest} + */ +public final class GetPropertyQuotasSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) + GetPropertyQuotasSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPropertyQuotasSnapshotRequest.newBuilder() to construct. + private GetPropertyQuotasSnapshotRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetPropertyQuotasSnapshotRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPropertyQuotasSnapshotRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest.class, + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *+ * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *+ * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + 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_); + } + 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_); + } + 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.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest other = + (com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest 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.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest 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.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + 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.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest 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.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest 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; + } + /** + * + * + *+ * A request to return the PropertyQuotasSnapshot for a given category. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest.class, + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest.Builder.class); + } + + // Construct using + // com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetPropertyQuotasSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest build() { + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest buildPartial() { + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest result = + new com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) { + return mergeFrom( + (com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest other) { + if (other + == com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + /** + * + * + * + * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *+ * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *+ * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ |= 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.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) + private static final com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest(); + } + + public static com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public GetPropertyQuotasSnapshotRequest 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.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetPropertyQuotasSnapshotRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetPropertyQuotasSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..4c6122298cff --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetPropertyQuotasSnapshotRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 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/analytics/data/v1alpha/analytics_data_api.proto + +// Protobuf Java Version: 3.25.4 +package com.google.analytics.data.v1alpha; + +public interface GetPropertyQuotasSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *+ * Required. Quotas from this property will be listed in the response. + * Format: `properties/{property}/propertyQuotasSnapshot` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshot.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshot.java new file mode 100644 index 000000000000..8fcc01b7441b --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshot.java @@ -0,0 +1,1467 @@ +/* + * Copyright 2024 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/analytics/data/v1alpha/analytics_data_api.proto + +// Protobuf Java Version: 3.25.4 +package com.google.analytics.data.v1alpha; + +/** + * + * + *+ * Current state of all Property Quotas organized by quota category. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.PropertyQuotasSnapshot} + */ +public final class PropertyQuotasSnapshot extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.PropertyQuotasSnapshot) + PropertyQuotasSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + // Use PropertyQuotasSnapshot.newBuilder() to construct. + private PropertyQuotasSnapshot(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PropertyQuotasSnapshot() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PropertyQuotasSnapshot(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot.class, + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *+ * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @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; + } + } + /** + * + * + *+ * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @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 CORE_PROPERTY_QUOTA_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.PropertyQuota corePropertyQuota_; + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ * + * @return Whether the corePropertyQuota field is set. + */ + @java.lang.Override + public boolean hasCorePropertyQuota() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ * + * @return The corePropertyQuota. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuota getCorePropertyQuota() { + return corePropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : corePropertyQuota_; + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getCorePropertyQuotaOrBuilder() { + return corePropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : corePropertyQuota_; + } + + public static final int REALTIME_PROPERTY_QUOTA_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.PropertyQuota realtimePropertyQuota_; + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ * + * @return Whether the realtimePropertyQuota field is set. + */ + @java.lang.Override + public boolean hasRealtimePropertyQuota() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ * + * @return The realtimePropertyQuota. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuota getRealtimePropertyQuota() { + return realtimePropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : realtimePropertyQuota_; + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder + getRealtimePropertyQuotaOrBuilder() { + return realtimePropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : realtimePropertyQuota_; + } + + public static final int FUNNEL_PROPERTY_QUOTA_FIELD_NUMBER = 3; + private com.google.analytics.data.v1alpha.PropertyQuota funnelPropertyQuota_; + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ * + * @return Whether the funnelPropertyQuota field is set. + */ + @java.lang.Override + public boolean hasFunnelPropertyQuota() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ * + * @return The funnelPropertyQuota. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuota getFunnelPropertyQuota() { + return funnelPropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : funnelPropertyQuota_; + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder + getFunnelPropertyQuotaOrBuilder() { + return funnelPropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : funnelPropertyQuota_; + } + + 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, getCorePropertyQuota()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRealtimePropertyQuota()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getFunnelPropertyQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + 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, getCorePropertyQuota()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRealtimePropertyQuota()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFunnelPropertyQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + 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.analytics.data.v1alpha.PropertyQuotasSnapshot)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot other = + (com.google.analytics.data.v1alpha.PropertyQuotasSnapshot) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCorePropertyQuota() != other.hasCorePropertyQuota()) return false; + if (hasCorePropertyQuota()) { + if (!getCorePropertyQuota().equals(other.getCorePropertyQuota())) return false; + } + if (hasRealtimePropertyQuota() != other.hasRealtimePropertyQuota()) return false; + if (hasRealtimePropertyQuota()) { + if (!getRealtimePropertyQuota().equals(other.getRealtimePropertyQuota())) return false; + } + if (hasFunnelPropertyQuota() != other.hasFunnelPropertyQuota()) return false; + if (hasFunnelPropertyQuota()) { + if (!getFunnelPropertyQuota().equals(other.getFunnelPropertyQuota())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCorePropertyQuota()) { + hash = (37 * hash) + CORE_PROPERTY_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + getCorePropertyQuota().hashCode(); + } + if (hasRealtimePropertyQuota()) { + hash = (37 * hash) + REALTIME_PROPERTY_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + getRealtimePropertyQuota().hashCode(); + } + if (hasFunnelPropertyQuota()) { + hash = (37 * hash) + FUNNEL_PROPERTY_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + getFunnelPropertyQuota().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot 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.analytics.data.v1alpha.PropertyQuotasSnapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot 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.analytics.data.v1alpha.PropertyQuotasSnapshot parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot 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.analytics.data.v1alpha.PropertyQuotasSnapshot parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot 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.analytics.data.v1alpha.PropertyQuotasSnapshot 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; + } + /** + * + * + *+ * Current state of all Property Quotas organized by quota category. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.PropertyQuotasSnapshot} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.PropertyQuotasSnapshot) + com.google.analytics.data.v1alpha.PropertyQuotasSnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot.class, + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.PropertyQuotasSnapshot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCorePropertyQuotaFieldBuilder(); + getRealtimePropertyQuotaFieldBuilder(); + getFunnelPropertyQuotaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + corePropertyQuota_ = null; + if (corePropertyQuotaBuilder_ != null) { + corePropertyQuotaBuilder_.dispose(); + corePropertyQuotaBuilder_ = null; + } + realtimePropertyQuota_ = null; + if (realtimePropertyQuotaBuilder_ != null) { + realtimePropertyQuotaBuilder_.dispose(); + realtimePropertyQuotaBuilder_ = null; + } + funnelPropertyQuota_ = null; + if (funnelPropertyQuotaBuilder_ != null) { + funnelPropertyQuotaBuilder_.dispose(); + funnelPropertyQuotaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuotasSnapshot_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuotasSnapshot getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.PropertyQuotasSnapshot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuotasSnapshot build() { + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuotasSnapshot buildPartial() { + com.google.analytics.data.v1alpha.PropertyQuotasSnapshot result = + new com.google.analytics.data.v1alpha.PropertyQuotasSnapshot(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.data.v1alpha.PropertyQuotasSnapshot result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.corePropertyQuota_ = + corePropertyQuotaBuilder_ == null + ? corePropertyQuota_ + : corePropertyQuotaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.realtimePropertyQuota_ = + realtimePropertyQuotaBuilder_ == null + ? realtimePropertyQuota_ + : realtimePropertyQuotaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.funnelPropertyQuota_ = + funnelPropertyQuotaBuilder_ == null + ? funnelPropertyQuota_ + : funnelPropertyQuotaBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + 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.analytics.data.v1alpha.PropertyQuotasSnapshot) { + return mergeFrom((com.google.analytics.data.v1alpha.PropertyQuotasSnapshot) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.PropertyQuotasSnapshot other) { + if (other == com.google.analytics.data.v1alpha.PropertyQuotasSnapshot.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCorePropertyQuota()) { + mergeCorePropertyQuota(other.getCorePropertyQuota()); + } + if (other.hasRealtimePropertyQuota()) { + mergeRealtimePropertyQuota(other.getRealtimePropertyQuota()); + } + if (other.hasFunnelPropertyQuota()) { + mergeFunnelPropertyQuota(other.getFunnelPropertyQuota()); + } + 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( + getCorePropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + getRealtimePropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + getFunnelPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + * + * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @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; + } + } + /** + * + * + *+ * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @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; + } + } + /** + * + * + *+ * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.PropertyQuota corePropertyQuota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + corePropertyQuotaBuilder_; + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ * + * @return Whether the corePropertyQuota field is set. + */ + public boolean hasCorePropertyQuota() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ * + * @return The corePropertyQuota. + */ + public com.google.analytics.data.v1alpha.PropertyQuota getCorePropertyQuota() { + if (corePropertyQuotaBuilder_ == null) { + return corePropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : corePropertyQuota_; + } else { + return corePropertyQuotaBuilder_.getMessage(); + } + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + public Builder setCorePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { + if (corePropertyQuotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + corePropertyQuota_ = value; + } else { + corePropertyQuotaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + public Builder setCorePropertyQuota( + com.google.analytics.data.v1alpha.PropertyQuota.Builder builderForValue) { + if (corePropertyQuotaBuilder_ == null) { + corePropertyQuota_ = builderForValue.build(); + } else { + corePropertyQuotaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + public Builder mergeCorePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { + if (corePropertyQuotaBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && corePropertyQuota_ != null + && corePropertyQuota_ + != com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance()) { + getCorePropertyQuotaBuilder().mergeFrom(value); + } else { + corePropertyQuota_ = value; + } + } else { + corePropertyQuotaBuilder_.mergeFrom(value); + } + if (corePropertyQuota_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + public Builder clearCorePropertyQuota() { + bitField0_ = (bitField0_ & ~0x00000002); + corePropertyQuota_ = null; + if (corePropertyQuotaBuilder_ != null) { + corePropertyQuotaBuilder_.dispose(); + corePropertyQuotaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + public com.google.analytics.data.v1alpha.PropertyQuota.Builder getCorePropertyQuotaBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCorePropertyQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder + getCorePropertyQuotaOrBuilder() { + if (corePropertyQuotaBuilder_ != null) { + return corePropertyQuotaBuilder_.getMessageOrBuilder(); + } else { + return corePropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : corePropertyQuota_; + } + } + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + getCorePropertyQuotaFieldBuilder() { + if (corePropertyQuotaBuilder_ == null) { + corePropertyQuotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder>( + getCorePropertyQuota(), getParentForChildren(), isClean()); + corePropertyQuota_ = null; + } + return corePropertyQuotaBuilder_; + } + + private com.google.analytics.data.v1alpha.PropertyQuota realtimePropertyQuota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + realtimePropertyQuotaBuilder_; + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ * + * @return Whether the realtimePropertyQuota field is set. + */ + public boolean hasRealtimePropertyQuota() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ * + * @return The realtimePropertyQuota. + */ + public com.google.analytics.data.v1alpha.PropertyQuota getRealtimePropertyQuota() { + if (realtimePropertyQuotaBuilder_ == null) { + return realtimePropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : realtimePropertyQuota_; + } else { + return realtimePropertyQuotaBuilder_.getMessage(); + } + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + public Builder setRealtimePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { + if (realtimePropertyQuotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + realtimePropertyQuota_ = value; + } else { + realtimePropertyQuotaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + public Builder setRealtimePropertyQuota( + com.google.analytics.data.v1alpha.PropertyQuota.Builder builderForValue) { + if (realtimePropertyQuotaBuilder_ == null) { + realtimePropertyQuota_ = builderForValue.build(); + } else { + realtimePropertyQuotaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + public Builder mergeRealtimePropertyQuota( + com.google.analytics.data.v1alpha.PropertyQuota value) { + if (realtimePropertyQuotaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && realtimePropertyQuota_ != null + && realtimePropertyQuota_ + != com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance()) { + getRealtimePropertyQuotaBuilder().mergeFrom(value); + } else { + realtimePropertyQuota_ = value; + } + } else { + realtimePropertyQuotaBuilder_.mergeFrom(value); + } + if (realtimePropertyQuota_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + public Builder clearRealtimePropertyQuota() { + bitField0_ = (bitField0_ & ~0x00000004); + realtimePropertyQuota_ = null; + if (realtimePropertyQuotaBuilder_ != null) { + realtimePropertyQuotaBuilder_.dispose(); + realtimePropertyQuotaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + public com.google.analytics.data.v1alpha.PropertyQuota.Builder + getRealtimePropertyQuotaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRealtimePropertyQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder + getRealtimePropertyQuotaOrBuilder() { + if (realtimePropertyQuotaBuilder_ != null) { + return realtimePropertyQuotaBuilder_.getMessageOrBuilder(); + } else { + return realtimePropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : realtimePropertyQuota_; + } + } + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + getRealtimePropertyQuotaFieldBuilder() { + if (realtimePropertyQuotaBuilder_ == null) { + realtimePropertyQuotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder>( + getRealtimePropertyQuota(), getParentForChildren(), isClean()); + realtimePropertyQuota_ = null; + } + return realtimePropertyQuotaBuilder_; + } + + private com.google.analytics.data.v1alpha.PropertyQuota funnelPropertyQuota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + funnelPropertyQuotaBuilder_; + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ * + * @return Whether the funnelPropertyQuota field is set. + */ + public boolean hasFunnelPropertyQuota() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ * + * @return The funnelPropertyQuota. + */ + public com.google.analytics.data.v1alpha.PropertyQuota getFunnelPropertyQuota() { + if (funnelPropertyQuotaBuilder_ == null) { + return funnelPropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : funnelPropertyQuota_; + } else { + return funnelPropertyQuotaBuilder_.getMessage(); + } + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + public Builder setFunnelPropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { + if (funnelPropertyQuotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + funnelPropertyQuota_ = value; + } else { + funnelPropertyQuotaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + public Builder setFunnelPropertyQuota( + com.google.analytics.data.v1alpha.PropertyQuota.Builder builderForValue) { + if (funnelPropertyQuotaBuilder_ == null) { + funnelPropertyQuota_ = builderForValue.build(); + } else { + funnelPropertyQuotaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + public Builder mergeFunnelPropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { + if (funnelPropertyQuotaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && funnelPropertyQuota_ != null + && funnelPropertyQuota_ + != com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance()) { + getFunnelPropertyQuotaBuilder().mergeFrom(value); + } else { + funnelPropertyQuota_ = value; + } + } else { + funnelPropertyQuotaBuilder_.mergeFrom(value); + } + if (funnelPropertyQuota_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + public Builder clearFunnelPropertyQuota() { + bitField0_ = (bitField0_ & ~0x00000008); + funnelPropertyQuota_ = null; + if (funnelPropertyQuotaBuilder_ != null) { + funnelPropertyQuotaBuilder_.dispose(); + funnelPropertyQuotaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + public com.google.analytics.data.v1alpha.PropertyQuota.Builder getFunnelPropertyQuotaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getFunnelPropertyQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder + getFunnelPropertyQuotaOrBuilder() { + if (funnelPropertyQuotaBuilder_ != null) { + return funnelPropertyQuotaBuilder_.getMessageOrBuilder(); + } else { + return funnelPropertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : funnelPropertyQuota_; + } + } + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + getFunnelPropertyQuotaFieldBuilder() { + if (funnelPropertyQuotaBuilder_ == null) { + funnelPropertyQuotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder>( + getFunnelPropertyQuota(), getParentForChildren(), isClean()); + funnelPropertyQuota_ = null; + } + return funnelPropertyQuotaBuilder_; + } + + @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.analytics.data.v1alpha.PropertyQuotasSnapshot) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.PropertyQuotasSnapshot) + private static final com.google.analytics.data.v1alpha.PropertyQuotasSnapshot DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.PropertyQuotasSnapshot(); + } + + public static com.google.analytics.data.v1alpha.PropertyQuotasSnapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public PropertyQuotasSnapshot 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.analytics.data.v1alpha.PropertyQuotasSnapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotName.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotName.java new file mode 100644 index 000000000000..e246c1fe3328 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotName.java @@ -0,0 +1,169 @@ +/* + * Copyright 2024 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.analytics.data.v1alpha; + +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 PropertyQuotasSnapshotName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/propertyQuotasSnapshot"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected PropertyQuotasSnapshotName() { + property = null; + } + + private PropertyQuotasSnapshotName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PropertyQuotasSnapshotName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static PropertyQuotasSnapshotName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, + "PropertyQuotasSnapshotName.parse: formattedString not in valid format"); + return of(matchMap.get("property")); + } + + 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 (PropertyQuotasSnapshotName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY.instantiate("property", property); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + PropertyQuotasSnapshotName that = ((PropertyQuotasSnapshotName) o); + return Objects.equals(this.property, that.property); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + return h; + } + + /** Builder for properties/{property}/propertyQuotasSnapshot. */ + public static class Builder { + private String property; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder(PropertyQuotasSnapshotName propertyQuotasSnapshotName) { + this.property = propertyQuotasSnapshotName.property; + } + + public PropertyQuotasSnapshotName build() { + return new PropertyQuotasSnapshotName(this); + } + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotOrBuilder.java new file mode 100644 index 000000000000..3ea513711379 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2024 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/analytics/data/v1alpha/analytics_data_api.proto + +// Protobuf Java Version: 3.25.4 +package com.google.analytics.data.v1alpha; + +public interface PropertyQuotasSnapshotOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.PropertyQuotasSnapshot) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *+ * Identifier. The property quota snapshot resource name. + *+ * + *string name = 4 [(.google.api.field_behavior) = IDENTIFIER];
+ * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ * + * @return Whether the corePropertyQuota field is set. + */ + boolean hasCorePropertyQuota(); + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ * + * @return The corePropertyQuota. + */ + com.google.analytics.data.v1alpha.PropertyQuota getCorePropertyQuota(); + /** + * + * + *+ * Property Quota for core property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;
+ */ + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getCorePropertyQuotaOrBuilder(); + + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ * + * @return Whether the realtimePropertyQuota field is set. + */ + boolean hasRealtimePropertyQuota(); + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ * + * @return The realtimePropertyQuota. + */ + com.google.analytics.data.v1alpha.PropertyQuota getRealtimePropertyQuota(); + /** + * + * + *+ * Property Quota for realtime property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;
+ */ + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getRealtimePropertyQuotaOrBuilder(); + + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ * + * @return Whether the funnelPropertyQuota field is set. + */ + boolean hasFunnelPropertyQuota(); + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ * + * @return The funnelPropertyQuota. + */ + com.google.analytics.data.v1alpha.PropertyQuota getFunnelPropertyQuota(); + /** + * + * + *+ * Property Quota for funnel property tokens + *+ * + *.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;
+ */ + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getFunnelPropertyQuotaOrBuilder(); +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTask.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTask.java index d52475e1c380..ccd40bb240f0 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTask.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTask.java @@ -639,7 +639,7 @@ public interface ReportDefinitionOrBuilder * not separately removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -1472,7 +1472,7 @@ public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuil * not separately removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -5201,7 +5201,7 @@ public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuil * not separately removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -5225,7 +5225,7 @@ public boolean getKeepEmptyRows() { * not separately removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -5253,7 +5253,7 @@ public Builder setKeepEmptyRows(boolean value) { * not separately removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -7442,7 +7442,7 @@ public com.google.analytics.data.v1alpha.ReportTask.ReportMetadata getDefaultIns * ** Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *@@ -7468,7 +7468,7 @@ public java.lang.String getName() { * *
* Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *@@ -8048,7 +8048,7 @@ public Builder mergeFrom( * *
* Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *@@ -8073,7 +8073,7 @@ public java.lang.String getName() { * *
* Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *@@ -8098,7 +8098,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
* Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *@@ -8122,7 +8122,7 @@ public Builder setName(java.lang.String value) { * *
* Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *@@ -8142,7 +8142,7 @@ public Builder clearName() { * *
* Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTaskOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTaskOrBuilder.java index 31d7a5729b79..21ee1b727a06 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTaskOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTaskOrBuilder.java @@ -29,7 +29,7 @@ public interface ReportTaskOrBuilder * *
* Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *@@ -44,7 +44,7 @@ public interface ReportTaskOrBuilder * *
* Output only. Identifier. The report task resource name assigned during - * creation. Format: `properties/{property}/reportTasks/{report_task}` + * creation. Format: "properties/{property}/reportTasks/{report_task}" ** *diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RestrictedMetricType.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RestrictedMetricType.java index a2cd07598703..bfbe43647c12 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RestrictedMetricType.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RestrictedMetricType.java @@ -23,8 +23,8 @@ * * *
- * Categories of data that you may be restricted from viewing on certain GA4 - * properties. + * Categories of data that you may be restricted from viewing on certain + * Google Analytics properties. ** * Protobuf enum {@code google.analytics.data.v1alpha.RestrictedMetricType} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java index f87b15a3f997..60a7b69f92d3 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java @@ -243,9 +243,9 @@ private FunnelVisualizationType(int value) { * * *- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. @@ -273,9 +273,9 @@ public java.lang.String getProperty() { * * *- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. @@ -1584,9 +1584,9 @@ public Builder mergeFrom( * * *- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. @@ -1613,9 +1613,9 @@ public java.lang.String getProperty() { * * *- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. @@ -1642,9 +1642,9 @@ public com.google.protobuf.ByteString getPropertyBytes() { * * *- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. @@ -1670,9 +1670,9 @@ public Builder setProperty(java.lang.String value) { * * *- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. @@ -1694,9 +1694,9 @@ public Builder clearProperty() { * * *- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java index fb03c453bbdb..5e11d4988a20 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java @@ -28,9 +28,9 @@ public interface RunFunnelReportRequestOrBuilder * * *- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. @@ -47,9 +47,9 @@ public interface RunFunnelReportRequestOrBuilder * * ** diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto index 25d3d4c273f1..3b2c2b0a989d 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto @@ -266,10 +266,26 @@ service AlphaAnalyticsData { option (google.api.method_signature) = "parent"; } + // Get all property quotas organized by quota category for a given property. + // This will charge 1 property quota from the category with the most quota. + rpc GetPropertyQuotasSnapshot(GetPropertyQuotasSnapshotRequest) + returns (PropertyQuotasSnapshot) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/propertyQuotasSnapshot}" + }; + option (google.api.method_signature) = "name"; + } + // Initiates the creation of a report task. This method quickly // returns a report task and initiates a long running // asynchronous request to form a customized report of your Google Analytics // event data. + // + // A report task will be retained and available for querying for 72 hours + // after it has been created. + // + // A report task created by one user can be listed and queried by all users + // who have access to the property. rpc CreateReportTask(CreateReportTaskRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -514,6 +530,40 @@ message ListRecurringAudienceListsResponse { optional string next_page_token = 2; } +// A request to return the PropertyQuotasSnapshot for a given category. +message GetPropertyQuotasSnapshotRequest { + // Required. Quotas from this property will be listed in the response. + // Format: `properties/{property}/propertyQuotasSnapshot` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/PropertyQuotasSnapshot" + } + ]; +} + +// Current state of all Property Quotas organized by quota category. +message PropertyQuotasSnapshot { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/PropertyQuotasSnapshot" + pattern: "properties/{property}/propertyQuotasSnapshot" + plural: "propertyQuotasSnapshots" + singular: "propertyQuotasSnapshot" + }; + + // Identifier. The property quota snapshot resource name. + string name = 4 [(google.api.field_behavior) = IDENTIFIER]; + + // Property Quota for core property tokens + PropertyQuota core_property_quota = 1; + + // Property Quota for realtime property tokens + PropertyQuota realtime_property_quota = 2; + + // Property Quota for funnel property tokens + PropertyQuota funnel_property_quota = 3; +} + // A request to retrieve configuration metadata about a specific audience list. message GetAudienceListRequest { // Required. The audience list resource name. @@ -844,9 +894,9 @@ message RunFunnelReportRequest { TRENDED_FUNNEL = 2; } - // Optional. A Google Analytics GA4 property identifier whose events are - // tracked. Specified in the URL path and not the body. To learn more, see - // [where to find your Property + // Optional. A Google Analytics property identifier whose events are tracked. + // Specified in the URL path and not the body. To learn more, see [where to + // find your Property // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). // Within a batch request, this property should either be unspecified or // consistent with the batch-level property. @@ -1030,7 +1080,7 @@ message ReportTask { // not separately removed by a filter. // // Regardless of this `keep_empty_rows` setting, only data recorded by the - // Google Analytics (GA4) property can be displayed in a report. + // Google Analytics property can be displayed in a report. // // For example if a property never logs a `purchase` event, then a query for // the `eventName` dimension and `eventCount` metric will not have a row @@ -1104,7 +1154,7 @@ message ReportTask { } // Output only. Identifier. The report task resource name assigned during - // creation. Format: `properties/{property}/reportTasks/{report_task}` + // creation. Format: "properties/{property}/reportTasks/{report_task}" string name = 1 [ (google.api.field_behavior) = IDENTIFIER, (google.api.field_behavior) = OUTPUT_ONLY diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto index b861a33ce215..59612d666210 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto @@ -1107,7 +1107,7 @@ enum EventExclusionDuration { // Another segment might be users who purchase a particular line of products or // who visit a specific part of your site or trigger certain events in your app. // -// To learn more, see [GA4 Segment +// To learn more, see [Segment // Builder](https://support.google.com/analytics/answer/9304353). message Segment { // The name for this segment. If unspecified, segments are named "Segment". @@ -1561,8 +1561,8 @@ enum MetricType { TYPE_KILOMETERS = 13; } -// Categories of data that you may be restricted from viewing on certain GA4 -// properties. +// Categories of data that you may be restricted from viewing on certain +// Google Analytics properties. enum RestrictedMetricType { // Unspecified type. RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/AsyncGetPropertyQuotasSnapshot.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/AsyncGetPropertyQuotasSnapshot.java new file mode 100644 index 000000000000..76dd2e07c58f --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/AsyncGetPropertyQuotasSnapshot.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 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.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_async] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshotName; +import com.google.api.core.ApiFuture; + +public class AsyncGetPropertyQuotasSnapshot { + + public static void main(String[] args) throws Exception { + asyncGetPropertyQuotasSnapshot(); + } + + public static void asyncGetPropertyQuotasSnapshot() 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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + GetPropertyQuotasSnapshotRequest request = + GetPropertyQuotasSnapshotRequest.newBuilder() + .setName(PropertyQuotasSnapshotName.of("[PROPERTY]").toString()) + .build(); + ApiFuture- * Optional. A Google Analytics GA4 property identifier whose events are - * tracked. Specified in the URL path and not the body. To learn more, see - * [where to find your Property + * Optional. A Google Analytics property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * Within a batch request, this property should either be unspecified or * consistent with the batch-level property. diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java index bbda1b2c472e..1acffaa4fa58 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java @@ -28,7 +28,7 @@ * Another segment might be users who purchase a particular line of products or * who visit a specific part of your site or trigger certain events in your app. * - * To learn more, see [GA4 Segment + * To learn more, see [Segment * Builder](https://support.google.com/analytics/answer/9304353). ** @@ -559,7 +559,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Another segment might be users who purchase a particular line of products or * who visit a specific part of your site or trigger certain events in your app. * - * To learn more, see [GA4 Segment + * To learn more, see [Segment * Builder](https://support.google.com/analytics/answer/9304353). *future = + alphaAnalyticsDataClient.getPropertyQuotasSnapshotCallable().futureCall(request); + // Do something. + PropertyQuotasSnapshot response = future.get(); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_async] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshot.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshot.java new file mode 100644 index 000000000000..311b3dd21d30 --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshot.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 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.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_sync] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshotName; + +public class SyncGetPropertyQuotasSnapshot { + + public static void main(String[] args) throws Exception { + syncGetPropertyQuotasSnapshot(); + } + + public static void syncGetPropertyQuotasSnapshot() 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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + GetPropertyQuotasSnapshotRequest request = + GetPropertyQuotasSnapshotRequest.newBuilder() + .setName(PropertyQuotasSnapshotName.of("[PROPERTY]").toString()) + .build(); + PropertyQuotasSnapshot response = alphaAnalyticsDataClient.getPropertyQuotasSnapshot(request); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshotPropertyquotassnapshotname.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshotPropertyquotassnapshotname.java new file mode 100644 index 000000000000..860f10d9a520 --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshotPropertyquotassnapshotname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 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.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_Propertyquotassnapshotname_sync] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshotName; + +public class SyncGetPropertyQuotasSnapshotPropertyquotassnapshotname { + + public static void main(String[] args) throws Exception { + syncGetPropertyQuotasSnapshotPropertyquotassnapshotname(); + } + + public static void syncGetPropertyQuotasSnapshotPropertyquotassnapshotname() 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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + PropertyQuotasSnapshotName name = PropertyQuotasSnapshotName.of("[PROPERTY]"); + PropertyQuotasSnapshot response = alphaAnalyticsDataClient.getPropertyQuotasSnapshot(name); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_Propertyquotassnapshotname_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshotString.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshotString.java new file mode 100644 index 000000000000..b44541092681 --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/getpropertyquotassnapshot/SyncGetPropertyQuotasSnapshotString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 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.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_String_sync] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshot; +import com.google.analytics.data.v1alpha.PropertyQuotasSnapshotName; + +public class SyncGetPropertyQuotasSnapshotString { + + public static void main(String[] args) throws Exception { + syncGetPropertyQuotasSnapshotString(); + } + + public static void syncGetPropertyQuotasSnapshotString() 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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) { + String name = PropertyQuotasSnapshotName.of("[PROPERTY]").toString(); + PropertyQuotasSnapshot response = alphaAnalyticsDataClient.getPropertyQuotasSnapshot(name); + } + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_String_sync] diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index 49eab424bd49..a1687e8812f0 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: diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index fd36b0293afe..84c19cca9dcd 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.46.0 +26.47.0 pom import diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index bfe11043a226..8e235d3e9bc1 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.46.0 +26.47.0 pom import diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 3261600a9310..235649b81bee 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.46.0 +26.47.0 pom import diff --git a/java-apihub/README.md b/java-apihub/README.md index 101cb614ee9d..3a9ea9ddf850 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.46.0 +26.47.0 pom import diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 356eb9d8b325..f3caee1fd25d 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.46.0 +26.47.0 pom import diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index c7c22d12f47f..623bc7e642b0 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.46.0 +26.47.0 pom import diff --git a/java-apphub/README.md b/java-apphub/README.md index 8457abf6e2e7..813b2c0a8ebd 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.46.0 +26.47.0 pom import diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index b5ca532c180e..7f90b72a8947 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.46.0 +26.47.0 pom import diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index eacf64ac4193..f7b0284119cb 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.46.0 +26.47.0 pom import diff --git a/java-asset/README.md b/java-asset/README.md index 6db431c258da..89e294ebd13f 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.46.0 +26.47.0 pom import diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 24b8a5b66b6c..7e1d01dba3f2 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.46.0 +26.47.0 pom import diff --git a/java-automl/README.md b/java-automl/README.md index 6167f56b6bda..692a6eb8aff2 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.46.0 +26.47.0 pom import diff --git a/java-backupdr/README.md b/java-backupdr/README.md index be848f18bd1b..2c928cea0157 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.46.0 +26.47.0 pom import diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index f5cdce6cd74e..c748cdcc2231 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.46.0 +26.47.0 pom import diff --git a/java-batch/README.md b/java-batch/README.md index 88d76c2ecb42..06cedce5626a 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.46.0 +26.47.0 pom import diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 12afe3f2ddc6..a0146f2e65db 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.46.0 +26.47.0 pom import diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index bcc6e784ae5e..5982b721988f 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.46.0 +26.47.0 pom import diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index a0504b424a1e..6005e32d718f 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.46.0 +26.47.0 pom import diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 5cacba7136f6..2bb77f8efc78 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.46.0 +26.47.0 pom import diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 45936dd29df3..edc464137cdd 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.46.0 +26.47.0 pom import diff --git a/java-biglake/README.md b/java-biglake/README.md index d2dbfc4cf507..e42fe233cfb6 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.46.0 +26.47.0 pom import diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 8a7a6b641511..9154fb92ff63 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.46.0 +26.47.0 pom import diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 1e168853985d..b65e4760ce43 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.46.0 +26.47.0 pom import diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 31c90fccde56..8a2b214f060a 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.46.0 +26.47.0 pom import diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index c58b6ed638b1..04cdae5a3bd2 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.46.0 +26.47.0 pom import diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index 8f0d5e352962..33153da9644d 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.46.0 +26.47.0 pom import diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index b5d5453de023..2feebb5724a8 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.46.0 +26.47.0 pom import diff --git a/java-billing/README.md b/java-billing/README.md index dc05d997af50..86ae1b5e6a84 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.46.0 +26.47.0 pom import diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 866f438d8d44..c73474b1427f 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.46.0 +26.47.0 pom import diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 0ca04e02d545..d08e9f5ee148 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.46.0 +26.47.0 pom import diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index d71c23107738..26e124dc752b 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.46.0 +26.47.0 pom import diff --git a/java-channel/README.md b/java-channel/README.md index 632fa90cbd98..bb8045e90506 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.46.0 +26.47.0 pom import diff --git a/java-chat/README.md b/java-chat/README.md index 92a09660ca92..f101613dde97 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.46.0 +26.47.0 pom import diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 9a5751c19378..653efd6b16d5 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.46.0 +26.47.0 pom import diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 0207e1f9a780..af72e3608f56 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/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.46.0 +26.47.0 pom import diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 40e549d6ca2e..35a47bd60b31 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/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.46.0 +26.47.0 pom import diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index 5d1dedf5fa14..3528d006170d 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/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.46.0 +26.47.0 pom import diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 29ae4853a830..08d0eff7775d 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/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.46.0 +26.47.0 pom import diff --git a/java-compute/README.md b/java-compute/README.md index 86297faf97a9..fd03660567b1 100644 --- a/java-compute/README.md +++ b/java-compute/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.46.0 +26.47.0 pom import diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index e8f1aaeffa7c..bc1fb7980f14 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/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.46.0 +26.47.0 pom import diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index 8e900cbd74a5..aa20d71a02b0 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/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.46.0 +26.47.0 pom import diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 300efcdc0ca1..09984bcd8243 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/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.46.0 +26.47.0 pom import diff --git a/java-container/README.md b/java-container/README.md index 38e6be1d41d4..0735f6b2766b 100644 --- a/java-container/README.md +++ b/java-container/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.46.0 +26.47.0 pom import diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 3baea0a2cfe2..89564117d041 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/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.46.0 +26.47.0 pom import diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index c86a34dc7d93..58aa0e65f35e 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/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.46.0 +26.47.0 pom import diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index e75acefd0396..b232069a0d64 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/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.46.0 +26.47.0 pom import diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index b7f2ebb46043..5afba3df421f 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/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.46.0 +26.47.0 pom import diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 3537df7266d9..d8ec892f27cb 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/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.46.0 +26.47.0 pom import diff --git a/java-dataform/README.md b/java-dataform/README.md index ef8b4583d9c5..c1c6950de6b6 100644 --- a/java-dataform/README.md +++ b/java-dataform/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.46.0 +26.47.0 pom import diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 9960bdf16e01..8ee7051a98d6 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/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.46.0 +26.47.0 pom import diff --git a/java-datalineage/README.md b/java-datalineage/README.md index d035c09a9a1b..96fc3d71c967 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/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.46.0 +26.47.0 pom import diff --git a/java-dataplex/README.md b/java-dataplex/README.md index e2e86fd9f1e9..d6f8f0fdb06e 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/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.46.0 +26.47.0 pom import diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index c63c5b45d912..e94fa5efde0c 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/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.46.0 +26.47.0 pom import diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 05ab610aa582..88829d071f2a 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/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.46.0 +26.47.0 pom import diff --git a/java-datastream/README.md b/java-datastream/README.md index 280cab46b036..61454c859a38 100644 --- a/java-datastream/README.md +++ b/java-datastream/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.46.0 +26.47.0 pom import diff --git a/java-debugger-client/README.md b/java-debugger-client/README.md index 00c939f43cc9..c1651111b657 100644 --- a/java-debugger-client/README.md +++ b/java-debugger-client/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.46.0 +26.47.0 pom import diff --git a/java-deploy/README.md b/java-deploy/README.md index 8918e71e07dc..9f93a65fa073 100644 --- a/java-deploy/README.md +++ b/java-deploy/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.46.0 +26.47.0 pom import diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 3179e0b5fb5d..80e56d2d3250 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/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.46.0 +26.47.0 pom import diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 4a1db12b0c20..de0ea017da82 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/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.46.0 +26.47.0 pom import diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index f76bab5f8ad5..6946d73b4328 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/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.46.0 +26.47.0 pom import diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index fb3ba22aa4f3..993d255e60ca 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/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.46.0 +26.47.0 pom import diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 9360ae991481..f01d75bafa4f 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/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.46.0 +26.47.0 pom import diff --git a/java-dlp/README.md b/java-dlp/README.md index c18bf35df1f8..c040fb67c3b9 100644 --- a/java-dlp/README.md +++ b/java-dlp/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.46.0 +26.47.0 pom import diff --git a/java-dms/README.md b/java-dms/README.md index 81ac1d591c4b..7ff7319e846d 100644 --- a/java-dms/README.md +++ b/java-dms/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.46.0 +26.47.0 pom import diff --git a/java-document-ai/README.md b/java-document-ai/README.md index ac607c9b652f..d040a056b3dd 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/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.46.0 +26.47.0 pom import diff --git a/java-domains/README.md b/java-domains/README.md index a0264c21dce1..941b2d5b88ba 100644 --- a/java-domains/README.md +++ b/java-domains/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.46.0 +26.47.0 pom import diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index fc2194e44191..19c35b2fc5da 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/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.46.0 +26.47.0 pom import diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index d9454e360df0..67413c402142 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/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.46.0 +26.47.0 pom import diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index c830897594f0..ad5309ea98ef 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/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.46.0 +26.47.0 pom import diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 07b027247b02..e1390dcb479a 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/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.46.0 +26.47.0 pom import diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index ffb90bee3f5a..81ff6404ff75 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/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.46.0 +26.47.0 pom import diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 06c61725fc8a..04ff809d4e69 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/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.46.0 +26.47.0 pom import diff --git a/java-filestore/README.md b/java-filestore/README.md index a7435fc89f0b..0eb928583ead 100644 --- a/java-filestore/README.md +++ b/java-filestore/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.46.0 +26.47.0 pom import diff --git a/java-functions/README.md b/java-functions/README.md index 9e61198bcd41..e7824757c186 100644 --- a/java-functions/README.md +++ b/java-functions/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.46.0 +26.47.0 pom import diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index eea38f2433c5..9b0f0bb3376e 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/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.46.0 +26.47.0 pom import diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 6f77d56e210a..af123021d9ee 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/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.46.0 +26.47.0 pom import diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 8c12daa59de4..c362a53a1f4f 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-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.46.0 +26.47.0 pom import diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 72eccb7839b0..9165b977f6dd 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/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.46.0 +26.47.0 pom import diff --git a/java-gkehub/README.md b/java-gkehub/README.md index a4bb1160e645..b6f52a87103d 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/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.46.0 +26.47.0 pom import diff --git a/java-grafeas/README.md b/java-grafeas/README.md index 3b99898d60db..610b8560a075 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/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.46.0 +26.47.0 pom import diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index 9c589c10b79e..992319beb0c7 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/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.46.0 +26.47.0 pom import diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 1de0e4d38f61..d8079718a5de 100644 --- a/java-iam-admin/README.md +++ b/java-iam-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.46.0 +26.47.0 pom import diff --git a/java-iam/README.md b/java-iam/README.md index e1c51ec43361..618d9f43887e 100644 --- a/java-iam/README.md +++ b/java-iam/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.46.0 +26.47.0 pom import diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index fd2b2bbbc958..260be66c3891 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/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.46.0 +26.47.0 pom import diff --git a/java-iap/README.md b/java-iap/README.md index 10514e6d872d..b97c5cfa1be7 100644 --- a/java-iap/README.md +++ b/java-iap/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.46.0 +26.47.0 pom import diff --git a/java-ids/README.md b/java-ids/README.md index 90f3bc5e9dc3..5236d67545b4 100644 --- a/java-ids/README.md +++ b/java-ids/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.46.0 +26.47.0 pom import diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index 248d17cc212e..4f6df41bf863 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/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.46.0 +26.47.0 pom import diff --git a/java-iot/README.md b/java-iot/README.md index 3b365606eb61..a19a545d1397 100644 --- a/java-iot/README.md +++ b/java-iot/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.46.0 +26.47.0 pom import diff --git a/java-kms/README.md b/java-kms/README.md index 8cb01b731bcd..384f06dd8310 100644 --- a/java-kms/README.md +++ b/java-kms/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.46.0 +26.47.0 pom import diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 26b74f3ac24b..ce37edae673f 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/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.46.0 +26.47.0 pom import diff --git a/java-language/README.md b/java-language/README.md index 9da98ef31c98..696c224a6ddd 100644 --- a/java-language/README.md +++ b/java-language/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.46.0 +26.47.0 pom import diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index f8533540bd99..d58a830e972d 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/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.46.0 +26.47.0 pom import diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index 38b1dcb4983a..d7b332dce49f 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/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.46.0 +26.47.0 pom import diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 183cefd1eaba..00f4800d4cdc 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/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.46.0 +26.47.0 pom import diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 779e9ff2e4d0..08d4eb584003 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/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.46.0 +26.47.0 pom import diff --git a/java-maps-area-insights/README.md b/java-maps-area-insights/README.md index 68e39c457f94..05cffab3b7e5 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/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.46.0 +26.47.0 pom import diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 3b9299437e06..1fd646ad6a3c 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/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.46.0 +26.47.0 pom import diff --git a/java-maps-places/README.md b/java-maps-places/README.md index dbdc460ad706..d40090ac27b2 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/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.46.0 +26.47.0 pom import diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index d12f23aca2b9..a62f946fa893 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/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.46.0 +26.47.0 pom import diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 18f1edaabb0c..d85c0e2495d8 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/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.46.0 +26.47.0 pom import diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 79b163794637..2673af0b98ab 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/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.46.0 +26.47.0 pom import diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index 51e66f5dccd9..11cbf3517b54 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/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.46.0 +26.47.0 pom import diff --git a/java-meet/README.md b/java-meet/README.md index ed5869f92809..40ad26c010a6 100644 --- a/java-meet/README.md +++ b/java-meet/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.46.0 +26.47.0 pom import diff --git a/java-memcache/README.md b/java-memcache/README.md index a203a973b59d..7b810e2be286 100644 --- a/java-memcache/README.md +++ b/java-memcache/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.46.0 +26.47.0 pom import diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index 64616ed82025..f6ffe190c15c 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/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.46.0 +26.47.0 pom import diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index a91d36c79d43..9c5279018b96 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/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.46.0 +26.47.0 pom import diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 0fb09891fadf..d97ac7c37d2d 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/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.46.0 +26.47.0 pom import diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 361e7ded05d6..998834fefd1e 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/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.46.0 +26.47.0 pom import diff --git a/java-netapp/README.md b/java-netapp/README.md index 9d5393af78f5..c2fa14836043 100644 --- a/java-netapp/README.md +++ b/java-netapp/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.46.0 +26.47.0 pom import diff --git a/java-network-management/README.md b/java-network-management/README.md index 8bd7cb8e9521..ad88585dac35 100644 --- a/java-network-management/README.md +++ b/java-network-management/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.46.0 +26.47.0 pom import diff --git a/java-network-security/README.md b/java-network-security/README.md index 5edad83bce5e..cdf04c9436d9 100644 --- a/java-network-security/README.md +++ b/java-network-security/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.46.0 +26.47.0 pom import diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index 827d76c76abb..61bf771257a7 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/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.46.0 +26.47.0 pom import diff --git a/java-networkservices/README.md b/java-networkservices/README.md index c6f641bcba56..f121496416ec 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/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.46.0 +26.47.0 pom import diff --git a/java-notebooks/README.md b/java-notebooks/README.md index d7990395b8ed..34a6f31d9210 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/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.46.0 +26.47.0 pom import diff --git a/java-optimization/README.md b/java-optimization/README.md index 384e9e3f2cd4..58d8627eaf63 100644 --- a/java-optimization/README.md +++ b/java-optimization/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.46.0 +26.47.0 pom import diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 5750897e47dd..2389c72558c2 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/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.46.0 +26.47.0 pom import diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 31d6fc31efe5..c53a1ec7e64b 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/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.46.0 +26.47.0 pom import diff --git a/java-os-config/README.md b/java-os-config/README.md index eec107610fc5..2609765dded5 100644 --- a/java-os-config/README.md +++ b/java-os-config/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.46.0 +26.47.0 pom import diff --git a/java-os-login/README.md b/java-os-login/README.md index f48bb7fa39d3..c7497485630f 100644 --- a/java-os-login/README.md +++ b/java-os-login/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.46.0 +26.47.0 pom import diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index 6ef5f3af5d98..77a853a9ea4d 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/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.46.0 +26.47.0 pom import diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 631c2e49655c..d0dbbc166c28 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/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.46.0 +26.47.0 pom import diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index 05a56f8b27fc..1213f63cd149 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/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.46.0 +26.47.0 pom import diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index db37c5b6bfa4..fd4811963043 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/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.46.0 +26.47.0 pom import diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 513598920f4a..754491580ca2 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/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.46.0 +26.47.0 pom import diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index ccc61e9baf69..8dd85c0cf823 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/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.46.0 +26.47.0 pom import diff --git a/java-profiler/README.md b/java-profiler/README.md index 66fff3f6ed1f..1dfaebe21ea0 100644 --- a/java-profiler/README.md +++ b/java-profiler/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.46.0 +26.47.0 pom import diff --git a/java-publicca/README.md b/java-publicca/README.md index 39a065a38c7b..c2e9a2eb8e1a 100644 --- a/java-publicca/README.md +++ b/java-publicca/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.46.0 +26.47.0 pom import diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index ad296e6af6c7..22f7a1b2bc72 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/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.46.0 +26.47.0 pom import diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 079495f72d01..cbcc33800c5b 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/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.46.0 +26.47.0 pom import diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index f87527918b97..150f22a12306 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -24,7 +24,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom -26.46.0 +26.47.0 pom import diff --git a/java-recommender/README.md b/java-recommender/README.md index 67823aaacae8..0f0f85fb6908 100644 --- a/java-recommender/README.md +++ b/java-recommender/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.46.0 +26.47.0 pom import diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index a72471769358..68645634abb5 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/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.46.0 +26.47.0 pom import diff --git a/java-redis/README.md b/java-redis/README.md index 65a53e96391d..b2ea6ddc1134 100644 --- a/java-redis/README.md +++ b/java-redis/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.46.0 +26.47.0 pom import diff --git a/java-resource-settings/README.md b/java-resource-settings/README.md index b49c9b14d1eb..dfe9837b77a8 100644 --- a/java-resource-settings/README.md +++ b/java-resource-settings/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.46.0 +26.47.0 pom import diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index f24cdbc046c3..acab7865808d 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/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.46.0 +26.47.0 pom import diff --git a/java-retail/README.md b/java-retail/README.md index 636b7d16d32f..a8f63173c0cd 100644 --- a/java-retail/README.md +++ b/java-retail/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.46.0 +26.47.0 pom import diff --git a/java-run/README.md b/java-run/README.md index 5f735f1e3265..f0b96931b43b 100644 --- a/java-run/README.md +++ b/java-run/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.46.0 +26.47.0 pom import diff --git a/java-scheduler/README.md b/java-scheduler/README.md index e0e6c727aa91..68b448450528 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/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.46.0 +26.47.0 pom import diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 8bd7d70f2c93..890b7d7082ed 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/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.46.0 +26.47.0 pom import diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 9ba4995a302f..9179f78349e4 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/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.46.0 +26.47.0 pom import diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index 4518b3517258..c95a06ce5211 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/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.46.0 +26.47.0 pom import diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index 5cf733a36893..8673ca5590b1 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/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.46.0 +26.47.0 pom import diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 90a64521580a..717c817f0c55 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/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.46.0 +26.47.0 pom import diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 36bb4816ac86..1b9d5936b491 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/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.46.0 +26.47.0 pom import diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 053c12230f2a..a035cb4bf276 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/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.46.0 +26.47.0 pom import diff --git a/java-service-control/README.md b/java-service-control/README.md index 9028708ba0a7..8aee6ffe69a5 100644 --- a/java-service-control/README.md +++ b/java-service-control/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.46.0 +26.47.0 pom import diff --git a/java-service-management/README.md b/java-service-management/README.md index 443d11fef41c..ba721c068103 100644 --- a/java-service-management/README.md +++ b/java-service-management/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.46.0 +26.47.0 pom import diff --git a/java-service-usage/README.md b/java-service-usage/README.md index ffa1361fb0c7..817c754dc5fa 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/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.46.0 +26.47.0 pom import diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 2e22de4982bb..ac20fbb3f0b1 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/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.46.0 +26.47.0 pom import diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index de2775441f7a..5730248c5527 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/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.46.0 +26.47.0 pom import diff --git a/java-shell/README.md b/java-shell/README.md index e038914cf0e9..927c2e6523cb 100644 --- a/java-shell/README.md +++ b/java-shell/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.46.0 +26.47.0 pom import diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index 23cfe245e696..e037d146eaee 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 4923a7e11b67..01032f33a26b 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index d951eeb39492..2a1ef00947bb 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index cf779b0183d8..3e9859fc94bf 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index cbbf299614c0..69ff1d3ebf05 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index a6affbeda904..b82cf3d499b5 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 78debe696ad0..3476e19b8a11 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 3598f2e55384..b4bd563e1bda 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index 0a2ae4f60eeb..9f9b26a0b947 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/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.46.0 +26.47.0 pom import diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 1fae2eb162a6..0bd49b654cf5 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/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.46.0 +26.47.0 pom import diff --git a/java-speech/README.md b/java-speech/README.md index b985e9001d59..51eab281842d 100644 --- a/java-speech/README.md +++ b/java-speech/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.46.0 +26.47.0 pom import diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 42532a386cb5..9cc7c5110b57 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/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.46.0 +26.47.0 pom import diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index d103db22513e..234ec3f3c4d8 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/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.46.0 +26.47.0 pom import diff --git a/java-talent/README.md b/java-talent/README.md index 200eece80db6..b476213d2a72 100644 --- a/java-talent/README.md +++ b/java-talent/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.46.0 +26.47.0 pom import diff --git a/java-tasks/README.md b/java-tasks/README.md index ca6491341b6d..2399e66caa4d 100644 --- a/java-tasks/README.md +++ b/java-tasks/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.46.0 +26.47.0 pom import diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index 22b80b43952f..9456f7361bdc 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/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.46.0 +26.47.0 pom import diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index edf986277d48..77819af13ca4 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/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.46.0 +26.47.0 pom import diff --git a/java-tpu/README.md b/java-tpu/README.md index d3c4612addcb..c45829651df0 100644 --- a/java-tpu/README.md +++ b/java-tpu/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.46.0 +26.47.0 pom import diff --git a/java-trace/README.md b/java-trace/README.md index 39b80697f8f6..0a051d6f046c 100644 --- a/java-trace/README.md +++ b/java-trace/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.46.0 +26.47.0 pom import diff --git a/java-translate/README.md b/java-translate/README.md index 9b5a30875fc7..ad742b249e18 100644 --- a/java-translate/README.md +++ b/java-translate/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.46.0 +26.47.0 pom import diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 3790488f6242..0fbed2aa73cc 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/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.46.0 +26.47.0 pom import diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index f46e0f5c987e..e7ac972fc578 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/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.46.0 +26.47.0 pom import diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 121b4984b8ff..f02b24541b41 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/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.46.0 +26.47.0 pom import diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index e6004d6bdf62..1d9926f83828 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/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.46.0 +26.47.0 pom import diff --git a/java-vision/README.md b/java-vision/README.md index 83198032ddcd..559661fcbd1a 100644 --- a/java-vision/README.md +++ b/java-vision/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.46.0 +26.47.0 pom import diff --git a/java-visionai/README.md b/java-visionai/README.md index d0df409ca4cc..6bbd0ef72385 100644 --- a/java-visionai/README.md +++ b/java-visionai/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.46.0 +26.47.0 pom import diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index d05001483e65..6b3926cc8fe2 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/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.46.0 +26.47.0 pom import diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 129b187080fe..27cc4863087a 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/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.46.0 +26.47.0 pom import diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 9643975e909e..ffb69451b041 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/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.46.0 +26.47.0 pom import diff --git a/java-webrisk/README.md b/java-webrisk/README.md index e072ee66a216..a602399855d3 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/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.46.0 +26.47.0 pom import diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index 102ae9eb5870..f00e5940c396 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/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.46.0 +26.47.0 pom import diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 44dc5a365352..3edc716760a3 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/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.46.0 +26.47.0 pom import diff --git a/java-workflows/README.md b/java-workflows/README.md index 0bb4eb05ae87..138177d1783e 100644 --- a/java-workflows/README.md +++ b/java-workflows/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.46.0 +26.47.0 pom import diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index dc4c26288569..3bf050ccd2f5 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/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.46.0 +26.47.0 pom import diff --git a/java-workstations/README.md b/java-workstations/README.md index 7de3e50a8f0b..03160c664fa7 100644 --- a/java-workstations/README.md +++ b/java-workstations/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.46.0 +26.47.0 pom import com.google.cloud libraries-bom -26.46.0 +26.47.0 pom import