Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions google/cloud/dataqna_v1alpha/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
]
}
}
},
"rest": {
"libraryClient": "AutoSuggestionServiceClient",
"rpcs": {
"SuggestQueries": {
"methods": [
"suggest_queries"
]
}
}
}
}
},
Expand Down Expand Up @@ -90,6 +100,36 @@
]
}
}
},
"rest": {
"libraryClient": "QuestionServiceClient",
"rpcs": {
"CreateQuestion": {
"methods": [
"create_question"
]
},
"ExecuteQuestion": {
"methods": [
"execute_question"
]
},
"GetQuestion": {
"methods": [
"get_question"
]
},
"GetUserFeedback": {
"methods": [
"get_user_feedback"
]
},
"UpdateUserFeedback": {
"methods": [
"update_user_feedback"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, AutoSuggestionServiceTransport
from .transports.grpc import AutoSuggestionServiceGrpcTransport
from .transports.grpc_asyncio import AutoSuggestionServiceGrpcAsyncIOTransport
from .transports.rest import AutoSuggestionServiceRestTransport


class AutoSuggestionServiceClientMeta(type):
Expand All @@ -54,6 +55,7 @@ class AutoSuggestionServiceClientMeta(type):
) # type: Dict[str, Type[AutoSuggestionServiceTransport]]
_transport_registry["grpc"] = AutoSuggestionServiceGrpcTransport
_transport_registry["grpc_asyncio"] = AutoSuggestionServiceGrpcAsyncIOTransport
_transport_registry["rest"] = AutoSuggestionServiceRestTransport

def get_transport_class(
cls,
Expand Down Expand Up @@ -396,6 +398,9 @@ def __init__(
transport (Union[str, AutoSuggestionServiceTransport]): The
transport to use. If set to None, a transport is chosen
automatically.
NOTE: "rest" transport functionality is currently in a
beta state (preview). We welcome your feedback via an
issue in this library's source repository.
client_options (google.api_core.client_options.ClientOptions): Custom options for the
client. It won't take effect if a ``transport`` instance is provided.
(1) The ``api_endpoint`` property can be used to override the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,23 @@
from .base import AutoSuggestionServiceTransport
from .grpc import AutoSuggestionServiceGrpcTransport
from .grpc_asyncio import AutoSuggestionServiceGrpcAsyncIOTransport
from .rest import (
AutoSuggestionServiceRestInterceptor,
AutoSuggestionServiceRestTransport,
)

# Compile a registry of transports.
_transport_registry = (
OrderedDict()
) # type: Dict[str, Type[AutoSuggestionServiceTransport]]
_transport_registry["grpc"] = AutoSuggestionServiceGrpcTransport
_transport_registry["grpc_asyncio"] = AutoSuggestionServiceGrpcAsyncIOTransport
_transport_registry["rest"] = AutoSuggestionServiceRestTransport

__all__ = (
"AutoSuggestionServiceTransport",
"AutoSuggestionServiceGrpcTransport",
"AutoSuggestionServiceGrpcAsyncIOTransport",
"AutoSuggestionServiceRestTransport",
"AutoSuggestionServiceRestInterceptor",
)
Loading