Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
chore: blacken new additions
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Oct 14, 2019
1 parent e96cde3 commit 64a9ae8
Show file tree
Hide file tree
Showing 7 changed files with 6,123 additions and 3,740 deletions.
9 changes: 3 additions & 6 deletions dialogflow_v2/gapic/enums.py
Expand Up @@ -154,6 +154,7 @@ class SpeechModelVariant(enum.IntEnum):
docs <https://cloud.google.com/dialogflow/docs/data-logging>`__ for
how to make your project eligible.
"""

SPEECH_MODEL_VARIANT_UNSPECIFIED = 0
USE_BEST_AVAILABLE = 1
USE_STANDARD = 2
Expand Down Expand Up @@ -190,12 +191,12 @@ class ApiVersion(enum.IntEnum):
API_VERSION_V2 (int): V2 API.
API_VERSION_V2_BETA_1 (int): V2beta1 API.
"""

API_VERSION_UNSPECIFIED = 0
API_VERSION_V1 = 1
API_VERSION_V2 = 2
API_VERSION_V2_BETA_1 = 3


class MatchMode(enum.IntEnum):
"""
Match mode determines how intents are detected from user queries.
Expand All @@ -212,7 +213,6 @@ class MatchMode(enum.IntEnum):
MATCH_MODE_HYBRID = 1
MATCH_MODE_ML_ONLY = 2


class Tier(enum.IntEnum):
"""
Represents the agent tier.
Expand All @@ -223,6 +223,7 @@ class Tier(enum.IntEnum):
TIER_ENTERPRISE (int): Enterprise tier (Essentials).
TIER_ENTERPRISE_PLUS (int): Enterprise tier (Plus).
"""

TIER_UNSPECIFIED = 0
TIER_STANDARD = 1
TIER_ENTERPRISE = 2
Expand All @@ -245,7 +246,6 @@ class AutoExpansionMode(enum.IntEnum):
AUTO_EXPANSION_MODE_UNSPECIFIED = 0
AUTO_EXPANSION_MODE_DEFAULT = 1


class Kind(enum.IntEnum):
"""
Represents kinds of entities.
Expand Down Expand Up @@ -283,7 +283,6 @@ class WebhookState(enum.IntEnum):
WEBHOOK_STATE_ENABLED = 1
WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING = 2


class TrainingPhrase(object):
class Type(enum.IntEnum):
"""
Expand All @@ -305,7 +304,6 @@ class Type(enum.IntEnum):
EXAMPLE = 1
TEMPLATE = 2


class Message(object):
class Platform(enum.IntEnum):
"""
Expand Down Expand Up @@ -442,4 +440,3 @@ class MessageType(enum.IntEnum):
MESSAGE_TYPE_UNSPECIFIED = 0
TRANSCRIPT = 1
END_OF_SINGLE_UTTERANCE = 2

26 changes: 12 additions & 14 deletions dialogflow_v2beta1/gapic/enums.py
Expand Up @@ -154,6 +154,7 @@ class SpeechModelVariant(enum.IntEnum):
docs <https://cloud.google.com/dialogflow/docs/data-logging>`__ for
how to make your project eligible.
"""

SPEECH_MODEL_VARIANT_UNSPECIFIED = 0
USE_BEST_AVAILABLE = 1
USE_STANDARD = 2
Expand Down Expand Up @@ -190,12 +191,12 @@ class ApiVersion(enum.IntEnum):
API_VERSION_V2 (int): V2 API.
API_VERSION_V2_BETA_1 (int): V2beta1 API.
"""

API_VERSION_UNSPECIFIED = 0
API_VERSION_V1 = 1
API_VERSION_V2 = 2
API_VERSION_V2_BETA_1 = 3


class MatchMode(enum.IntEnum):
"""
Match mode determines how intents are detected from user queries.
Expand All @@ -212,7 +213,6 @@ class MatchMode(enum.IntEnum):
MATCH_MODE_HYBRID = 1
MATCH_MODE_ML_ONLY = 2


class Tier(enum.IntEnum):
"""
Represents the agent tier.
Expand All @@ -223,6 +223,7 @@ class Tier(enum.IntEnum):
TIER_ENTERPRISE (int): Enterprise tier (Essentials).
TIER_ENTERPRISE_PLUS (int): Enterprise tier (Plus).
"""

TIER_UNSPECIFIED = 0
TIER_STANDARD = 1
TIER_ENTERPRISE = 2
Expand Down Expand Up @@ -268,7 +269,6 @@ class AutoExpansionMode(enum.IntEnum):
AUTO_EXPANSION_MODE_UNSPECIFIED = 0
AUTO_EXPANSION_MODE_DEFAULT = 1


class Kind(enum.IntEnum):
"""
Represents kinds of entities.
Expand Down Expand Up @@ -306,7 +306,6 @@ class WebhookState(enum.IntEnum):
WEBHOOK_STATE_ENABLED = 1
WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING = 2


class TrainingPhrase(object):
class Type(enum.IntEnum):
"""
Expand All @@ -328,7 +327,6 @@ class Type(enum.IntEnum):
EXAMPLE = 1
TEMPLATE = 2


class Message(object):
class Platform(enum.IntEnum):
"""
Expand Down Expand Up @@ -420,7 +418,6 @@ class Platform(enum.IntEnum):
TELEPHONY = 10
GOOGLE_HANGOUTS = 11


class RbmCarouselCard(object):
class CardWidth(enum.IntEnum):
"""
Expand All @@ -431,11 +428,11 @@ class CardWidth(enum.IntEnum):
SMALL (int): 120 DP. Note that tall media cannot be used.
MEDIUM (int): 232 DP.
"""

CARD_WIDTH_UNSPECIFIED = 0
SMALL = 1
MEDIUM = 2


class RbmStandaloneCard(object):
class CardOrientation(enum.IntEnum):
"""
Expand All @@ -446,11 +443,11 @@ class CardOrientation(enum.IntEnum):
HORIZONTAL (int): Horizontal layout.
VERTICAL (int): Vertical layout.
"""

CARD_ORIENTATION_UNSPECIFIED = 0
HORIZONTAL = 1
VERTICAL = 2


class ThumbnailImageAlignment(enum.IntEnum):
"""
Thumbnail preview alignment for standalone cards with horizontal
Expand All @@ -461,11 +458,11 @@ class ThumbnailImageAlignment(enum.IntEnum):
LEFT (int): Thumbnail preview is left-aligned.
RIGHT (int): Thumbnail preview is right-aligned.
"""

THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED = 0
LEFT = 1
RIGHT = 2


class RbmCardContent(object):
class RbmMedia(object):
class Height(enum.IntEnum):
Expand All @@ -479,12 +476,12 @@ class Height(enum.IntEnum):
TALL (int): 264 DP. Not available for rich card carousels when the card width
is set to small.
"""

HEIGHT_UNSPECIFIED = 0
SHORT = 1
MEDIUM = 2
TALL = 3


class MediaContent(object):
class ResponseMediaType(enum.IntEnum):
"""
Expand All @@ -494,10 +491,10 @@ class ResponseMediaType(enum.IntEnum):
RESPONSE_MEDIA_TYPE_UNSPECIFIED (int): Unspecified.
AUDIO (int): Response media type is audio.
"""

RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0
AUDIO = 1


class BrowseCarouselCard(object):
class ImageDisplayOptions(enum.IntEnum):
"""
Expand All @@ -521,13 +518,13 @@ class ImageDisplayOptions(enum.IntEnum):
BLURRED_BACKGROUND (int): Pad the gaps between image and image frame with a blurred copy of the
same image.
"""

IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0
GRAY = 1
WHITE = 2
CROPPED = 3
BLURRED_BACKGROUND = 4


class BrowseCarouselCardItem(object):
class OpenUrlAction(object):
class UrlTypeHint(enum.IntEnum):
Expand All @@ -540,11 +537,11 @@ class UrlTypeHint(enum.IntEnum):
AMP_CONTENT (int): URL that points directly to AMP content, or to a canonical URL
which refers to AMP content via <link rel="amphtml">.
"""

URL_TYPE_HINT_UNSPECIFIED = 0
AMP_ACTION = 1
AMP_CONTENT = 2


class ColumnProperties(object):
class HorizontalAlignment(enum.IntEnum):
"""
Expand All @@ -556,6 +553,7 @@ class HorizontalAlignment(enum.IntEnum):
CENTER (int): Text is centered in the column.
TRAILING (int): Text is aligned to the trailing edge of the column.
"""

HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0
LEADING = 1
CENTER = 2
Expand Down Expand Up @@ -660,9 +658,9 @@ class Severity(enum.IntEnum):
ERROR (int): The agent may experience partial failures.
CRITICAL (int): The agent may completely fail.
"""

SEVERITY_UNSPECIFIED = 0
INFO = 1
WARNING = 2
ERROR = 3
CRITICAL = 4

105 changes: 60 additions & 45 deletions dialogflow_v2beta1/proto/gcs_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dialogflow_v2beta1/proto/gcs_pb2_grpc.py
@@ -1,3 +1,2 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

0 comments on commit 64a9ae8

Please sign in to comment.