Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -3179,11 +3179,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return Whether the source field is set.
Expand All @@ -3197,11 +3197,11 @@ public boolean hasSource() {
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The source.
Expand All @@ -3217,11 +3217,11 @@ public com.google.cloud.agentregistry.v1.Binding.Source getSource() {
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
@java.lang.Override
Expand Down Expand Up @@ -4569,11 +4569,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return Whether the source field is set.
Expand All @@ -4586,11 +4586,11 @@ public boolean hasSource() {
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The source.
Expand All @@ -4609,11 +4609,11 @@ public com.google.cloud.agentregistry.v1.Binding.Source getSource() {
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder setSource(com.google.cloud.agentregistry.v1.Binding.Source value) {
Expand All @@ -4634,11 +4634,11 @@ public Builder setSource(com.google.cloud.agentregistry.v1.Binding.Source value)
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder setSource(
Expand All @@ -4657,11 +4657,11 @@ public Builder setSource(
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder mergeSource(com.google.cloud.agentregistry.v1.Binding.Source value) {
Expand All @@ -4687,11 +4687,11 @@ public Builder mergeSource(com.google.cloud.agentregistry.v1.Binding.Source valu
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder clearSource() {
Expand All @@ -4709,11 +4709,11 @@ public Builder clearSource() {
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public com.google.cloud.agentregistry.v1.Binding.Source.Builder getSourceBuilder() {
Expand All @@ -4726,11 +4726,11 @@ public com.google.cloud.agentregistry.v1.Binding.Source.Builder getSourceBuilder
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder getSourceOrBuilder() {
Expand All @@ -4747,11 +4747,11 @@ public com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder getSourceOrBuil
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
private com.google.protobuf.SingleFieldBuilder<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ public interface BindingOrBuilder
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return Whether the source field is set.
Expand All @@ -174,11 +174,11 @@ public interface BindingOrBuilder
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The source.
Expand All @@ -189,11 +189,11 @@ public interface BindingOrBuilder
*
*
* <pre>
* Required. The target Agent of the Binding.
* Optional. The source Agent of the Binding.
* </pre>
*
* <code>
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];
* .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder getSourceOrBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n"
+ "\013description\030\003 \001(\tB\003\340A\001\022B\n"
+ "\006source\030\004"
+ " \001(\0132-.google.cloud.agentregistry.v1.Binding.SourceB\003\340A\002\022B\n"
+ " \001(\0132-.google.cloud.agentregistry.v1.Binding.SourceB\003\340A\001\022B\n"
+ "\006target\030\005 \001(\0132-.goog"
+ "le.cloud.agentregistry.v1.Binding.TargetB\003\340A\002\0224\n"
+ "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ message CreateServiceRequest {

// Message for fetching available Bindings.
message FetchAvailableBindingsRequest {
// The reference of the source Agent.
// Required. The reference of the source Agent Registry resource.
oneof source {
// The identifier of the source Agent.
// Format:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ message Binding {
// Can have a maximum length of `2048` characters.
string description = 3 [(google.api.field_behavior) = OPTIONAL];

// Required. The target Agent of the Binding.
Source source = 4 [(google.api.field_behavior) = REQUIRED];
// Optional. The source Agent of the Binding.
Source source = 4 [(google.api.field_behavior) = OPTIONAL];

// Required. The target Agent Registry Resource of the Binding.
Target target = 5 [(google.api.field_behavior) = REQUIRED];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,21 @@
* </td>
* </tr>
* <tr>
* <td><p> Chat</td>
* <td><p> Provides a chat interface for interacting with Google Analytics data through the API.
* <p> This product uses AI and may display inaccurate info. Your chat activity may be used to improve the product and your use is subject to Google's [Terms](https://policies.google.com/terms), [AI Use Policy](https://policies.google.com/terms/generative-ai/use-policy), and [Privacy Policy](https://policies.google.com/privacy). [Learn more about Chat AI Privacy](https://support.google.com/helpguide/answer/14185196).</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> chat(ChatRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> chatCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> RunReport</td>
* <td><p> Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name.</td>
* <td>
Expand Down Expand Up @@ -2627,6 +2642,81 @@ public final ListReportTasksPagedResponse listReportTasks(ListReportTasksRequest
return stub.listReportTasksCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Provides a chat interface for interacting with Google Analytics data through the API.
*
* <p>This product uses AI and may display inaccurate info. Your chat activity may be used to
* improve the product and your use is subject to Google's
* [Terms](https://policies.google.com/terms), [AI Use
* Policy](https://policies.google.com/terms/generative-ai/use-policy), and [Privacy
* Policy](https://policies.google.com/privacy). [Learn more about Chat AI
* Privacy](https://support.google.com/helpguide/answer/14185196).
*
* <p>Sample code:
*
* <pre>{@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()) {
* ChatRequest request =
* ChatRequest.newBuilder()
* .setProperty(PropertyName.of("[PROPERTY]").toString())
* .setUserQuery("userQuery326624189")
* .setSessionId("sessionId607796817")
* .setReturnPropertyQuota(true)
* .build();
* ChatResponse response = alphaAnalyticsDataClient.chat(request);
* }
* }</pre>
*
* @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 ChatResponse chat(ChatRequest request) {
return chatCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Provides a chat interface for interacting with Google Analytics data through the API.
*
* <p>This product uses AI and may display inaccurate info. Your chat activity may be used to
* improve the product and your use is subject to Google's
* [Terms](https://policies.google.com/terms), [AI Use
* Policy](https://policies.google.com/terms/generative-ai/use-policy), and [Privacy
* Policy](https://policies.google.com/privacy). [Learn more about Chat AI
* Privacy](https://support.google.com/helpguide/answer/14185196).
*
* <p>Sample code:
*
* <pre>{@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()) {
* ChatRequest request =
* ChatRequest.newBuilder()
* .setProperty(PropertyName.of("[PROPERTY]").toString())
* .setUserQuery("userQuery326624189")
* .setSessionId("sessionId607796817")
* .setReturnPropertyQuota(true)
* .build();
* ApiFuture<ChatResponse> future = alphaAnalyticsDataClient.chatCallable().futureCall(request);
* // Do something.
* ChatResponse response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<ChatRequest, ChatResponse> chatCallable() {
return stub.chatCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a customized report of your Google Analytics event data. Reports contain statistics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ public UnaryCallSettings<GetReportTaskRequest, ReportTask> getReportTaskSettings
return ((AlphaAnalyticsDataStubSettings) getStubSettings()).listReportTasksSettings();
}

/** Returns the object with the settings used for calls to chat. */
public UnaryCallSettings<ChatRequest, ChatResponse> chatSettings() {
return ((AlphaAnalyticsDataStubSettings) getStubSettings()).chatSettings();
}

/** Returns the object with the settings used for calls to runReport. */
public UnaryCallSettings<RunReportRequest, RunReportResponse> runReportSettings() {
return ((AlphaAnalyticsDataStubSettings) getStubSettings()).runReportSettings();
Expand Down Expand Up @@ -434,6 +439,11 @@ public UnaryCallSettings.Builder<GetReportTaskRequest, ReportTask> getReportTask
return getStubSettingsBuilder().listReportTasksSettings();
}

/** Returns the builder for the settings used for calls to chat. */
public UnaryCallSettings.Builder<ChatRequest, ChatResponse> chatSettings() {
return getStubSettingsBuilder().chatSettings();
}

/** Returns the builder for the settings used for calls to runReport. */
public UnaryCallSettings.Builder<RunReportRequest, RunReportResponse> runReportSettings() {
return getStubSettingsBuilder().runReportSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"grpc": {
"libraryClient": "AlphaAnalyticsDataClient",
"rpcs": {
"Chat": {
"methods": ["chat", "chatCallable"]
},
"CreateAudienceList": {
"methods": ["createAudienceListAsync", "createAudienceListAsync", "createAudienceListAsync", "createAudienceListOperationCallable", "createAudienceListCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

import com.google.analytics.data.v1alpha.AudienceList;
import com.google.analytics.data.v1alpha.AudienceListMetadata;
import com.google.analytics.data.v1alpha.ChatRequest;
import com.google.analytics.data.v1alpha.ChatResponse;
import com.google.analytics.data.v1alpha.CreateAudienceListRequest;
import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest;
import com.google.analytics.data.v1alpha.CreateReportTaskRequest;
Expand Down Expand Up @@ -166,6 +168,10 @@ public UnaryCallable<ListReportTasksRequest, ListReportTasksResponse> listReport
throw new UnsupportedOperationException("Not implemented: listReportTasksCallable()");
}

public UnaryCallable<ChatRequest, ChatResponse> chatCallable() {
throw new UnsupportedOperationException("Not implemented: chatCallable()");
}

public UnaryCallable<RunReportRequest, RunReportResponse> runReportCallable() {
throw new UnsupportedOperationException("Not implemented: runReportCallable()");
}
Expand Down
Loading
Loading