config

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlowControlLimitExceededBehaviorProto_name = map[int32]string{
	0: "UNSET_BEHAVIOR",
	1: "THROW_EXCEPTION",
	2: "BLOCK",
	3: "IGNORE",
}
View Source
var FlowControlLimitExceededBehaviorProto_value = map[string]int32{
	"UNSET_BEHAVIOR":  0,
	"THROW_EXCEPTION": 1,
	"BLOCK":           2,
	"IGNORE":          3,
}
View Source
var ReleaseLevel_name = map[int32]string{
	0: "UNSET_RELEASE_LEVEL",
	1: "ALPHA",
	2: "BETA",
	3: "GA",
	4: "DEPRECATED",
}
View Source
var ReleaseLevel_value = map[string]int32{
	"UNSET_RELEASE_LEVEL": 0,
	"ALPHA":               1,
	"BETA":                2,
	"GA":                  3,
	"DEPRECATED":          4,
}
View Source
var ResourceNameTreatment_name = map[int32]string{
	0: "UNSET_TREATMENT",
	1: "NONE",
	2: "VALIDATE",
	3: "STATIC_TYPES",
	4: "SAMPLE_ONLY",
}
View Source
var ResourceNameTreatment_value = map[string]int32{
	"UNSET_TREATMENT": 0,
	"NONE":            1,
	"VALIDATE":        2,
	"STATIC_TYPES":    3,
	"SAMPLE_ONLY":     4,
}
View Source
var VisibilityProto_name = map[int32]string{
	0: "UNSET_VISIBILITY",
	1: "PUBLIC",
	2: "PACKAGE",
	3: "PRIVATE",
	4: "DISABLED",
}
View Source
var VisibilityProto_value = map[string]int32{
	"UNSET_VISIBILITY": 0,
	"PUBLIC":           1,
	"PACKAGE":          2,
	"PRIVATE":          3,
	"DISABLED":         4,
}

Functions

This section is empty.

Types

type BatchingConfigProto

type BatchingConfigProto struct {
	// The thresholds which trigger a batched request to be sent.
	Thresholds *BatchingSettingsProto `protobuf:"bytes,1,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
	// The request and response fields used in batching.
	BatchDescriptor      *BatchingDescriptorProto `protobuf:"bytes,2,opt,name=batch_descriptor,json=batchDescriptor,proto3" json:"batch_descriptor,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

`BatchingConfigProto` defines the batching configuration for an API method.

func (*BatchingConfigProto) Descriptor

func (*BatchingConfigProto) Descriptor() ([]byte, []int)

func (*BatchingConfigProto) GetBatchDescriptor

func (m *BatchingConfigProto) GetBatchDescriptor() *BatchingDescriptorProto

func (*BatchingConfigProto) GetThresholds

func (m *BatchingConfigProto) GetThresholds() *BatchingSettingsProto

func (*BatchingConfigProto) ProtoMessage

func (*BatchingConfigProto) ProtoMessage()

func (*BatchingConfigProto) Reset

func (m *BatchingConfigProto) Reset()

func (*BatchingConfigProto) String

func (m *BatchingConfigProto) String() string

func (*BatchingConfigProto) XXX_DiscardUnknown

func (m *BatchingConfigProto) XXX_DiscardUnknown()

func (*BatchingConfigProto) XXX_Marshal

func (m *BatchingConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchingConfigProto) XXX_Merge

func (m *BatchingConfigProto) XXX_Merge(src proto.Message)

func (*BatchingConfigProto) XXX_Size

func (m *BatchingConfigProto) XXX_Size() int

func (*BatchingConfigProto) XXX_Unmarshal

func (m *BatchingConfigProto) XXX_Unmarshal(b []byte) error

type BatchingDescriptorProto

type BatchingDescriptorProto struct {
	// The repeated field in the request message to be aggregated by batching.
	BatchedField string `protobuf:"bytes,1,opt,name=batched_field,json=batchedField,proto3" json:"batched_field,omitempty"`
	// A list of the fields in the request message. Two requests will be batched
	// together only if the values of every field specified in
	// `request_discriminator_fields` is equal between the two requests.
	DiscriminatorFields []string `protobuf:"bytes,2,rep,name=discriminator_fields,json=discriminatorFields,proto3" json:"discriminator_fields,omitempty"`
	// Optional. When present, indicates the field in the response message to be
	// used to demultiplex the response into multiple response messages, in
	// correspondence with the multiple request messages originally batched
	// together.
	SubresponseField     string   `protobuf:"bytes,3,opt,name=subresponse_field,json=subresponseField,proto3" json:"subresponse_field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`BatchingDescriptorProto` specifies the fields of the request message to be used for batching, and, optionally, the fields of the response message to be used for demultiplexing.

func (*BatchingDescriptorProto) Descriptor

func (*BatchingDescriptorProto) Descriptor() ([]byte, []int)

func (*BatchingDescriptorProto) GetBatchedField

func (m *BatchingDescriptorProto) GetBatchedField() string

func (*BatchingDescriptorProto) GetDiscriminatorFields

func (m *BatchingDescriptorProto) GetDiscriminatorFields() []string

func (*BatchingDescriptorProto) GetSubresponseField

func (m *BatchingDescriptorProto) GetSubresponseField() string

func (*BatchingDescriptorProto) ProtoMessage

func (*BatchingDescriptorProto) ProtoMessage()

func (*BatchingDescriptorProto) Reset

func (m *BatchingDescriptorProto) Reset()

func (*BatchingDescriptorProto) String

func (m *BatchingDescriptorProto) String() string

func (*BatchingDescriptorProto) XXX_DiscardUnknown

func (m *BatchingDescriptorProto) XXX_DiscardUnknown()

func (*BatchingDescriptorProto) XXX_Marshal

func (m *BatchingDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchingDescriptorProto) XXX_Merge

func (m *BatchingDescriptorProto) XXX_Merge(src proto.Message)

func (*BatchingDescriptorProto) XXX_Size

func (m *BatchingDescriptorProto) XXX_Size() int

func (*BatchingDescriptorProto) XXX_Unmarshal

func (m *BatchingDescriptorProto) XXX_Unmarshal(b []byte) error

type BatchingSettingsProto

type BatchingSettingsProto struct {
	// The number of elements of a field collected into a batch which, if
	// exceeded, causes the batch to be sent.
	ElementCountThreshold uint32 `` /* 127-byte string literal not displayed */
	// The aggregated size of the batched field which, if exceeded, causes the
	// batch to be sent. This size is computed by aggregating the sizes of the
	// request field to be batched, not of the entire request message.
	RequestByteThreshold uint64 `protobuf:"varint,2,opt,name=request_byte_threshold,json=requestByteThreshold,proto3" json:"request_byte_threshold,omitempty"`
	// The duration, in milliseconds, after which a batch should be sent,
	// starting from the addition of the first message to that batch.
	DelayThresholdMillis uint64 `protobuf:"varint,3,opt,name=delay_threshold_millis,json=delayThresholdMillis,proto3" json:"delay_threshold_millis,omitempty"`
	// The maximum number of elements collected in a batch that could be accepted by server.
	ElementCountLimit uint32 `protobuf:"varint,4,opt,name=element_count_limit,json=elementCountLimit,proto3" json:"element_count_limit,omitempty"`
	// The maximum size of the request that could be accepted by server.
	RequestByteLimit                 uint32                                `protobuf:"varint,5,opt,name=request_byte_limit,json=requestByteLimit,proto3" json:"request_byte_limit,omitempty"`
	FlowControlElementLimit          uint32                                `` /* 135-byte string literal not displayed */
	FlowControlByteLimit             uint32                                `` /* 126-byte string literal not displayed */
	FlowControlLimitExceededBehavior FlowControlLimitExceededBehaviorProto `` /* 230-byte string literal not displayed */
	XXX_NoUnkeyedLiteral             struct{}                              `json:"-"`
	XXX_unrecognized                 []byte                                `json:"-"`
	XXX_sizecache                    int32                                 `json:"-"`
}

`BatchingSettingsProto` specifies a set of batching thresholds, each of which acts as a trigger to send a batch of messages as a request. At least one threshold must be positive nonzero.

func (*BatchingSettingsProto) Descriptor

func (*BatchingSettingsProto) Descriptor() ([]byte, []int)

func (*BatchingSettingsProto) GetDelayThresholdMillis

func (m *BatchingSettingsProto) GetDelayThresholdMillis() uint64

func (*BatchingSettingsProto) GetElementCountLimit

func (m *BatchingSettingsProto) GetElementCountLimit() uint32

func (*BatchingSettingsProto) GetElementCountThreshold

func (m *BatchingSettingsProto) GetElementCountThreshold() uint32

func (*BatchingSettingsProto) GetFlowControlByteLimit

func (m *BatchingSettingsProto) GetFlowControlByteLimit() uint32

func (*BatchingSettingsProto) GetFlowControlElementLimit

func (m *BatchingSettingsProto) GetFlowControlElementLimit() uint32

func (*BatchingSettingsProto) GetFlowControlLimitExceededBehavior

func (m *BatchingSettingsProto) GetFlowControlLimitExceededBehavior() FlowControlLimitExceededBehaviorProto

func (*BatchingSettingsProto) GetRequestByteLimit

func (m *BatchingSettingsProto) GetRequestByteLimit() uint32

func (*BatchingSettingsProto) GetRequestByteThreshold

func (m *BatchingSettingsProto) GetRequestByteThreshold() uint64

func (*BatchingSettingsProto) ProtoMessage

func (*BatchingSettingsProto) ProtoMessage()

func (*BatchingSettingsProto) Reset

func (m *BatchingSettingsProto) Reset()

func (*BatchingSettingsProto) String

func (m *BatchingSettingsProto) String() string

func (*BatchingSettingsProto) XXX_DiscardUnknown

func (m *BatchingSettingsProto) XXX_DiscardUnknown()

func (*BatchingSettingsProto) XXX_Marshal

func (m *BatchingSettingsProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchingSettingsProto) XXX_Merge

func (m *BatchingSettingsProto) XXX_Merge(src proto.Message)

func (*BatchingSettingsProto) XXX_Size

func (m *BatchingSettingsProto) XXX_Size() int

func (*BatchingSettingsProto) XXX_Unmarshal

func (m *BatchingSettingsProto) XXX_Unmarshal(b []byte) error

type CollectionConfigProto

type CollectionConfigProto struct {
	// A pattern to describe the names of the resources of this
	// collection, using the platform's conventions for URI patterns. A
	// generator may use this to generate methods to compose and
	// decompose such names. The pattern should use named placeholders
	// as in `shelves/{shelf}/books/{book}`; those will be taken as
	// hints for the parameter names of the generated methods.  If
	// empty, no name methods are generated.
	NamePattern string `protobuf:"bytes,1,opt,name=name_pattern,json=namePattern,proto3" json:"name_pattern,omitempty"`
	// Name to be used as a basis for generated methods and classes.
	EntityName           string                              `protobuf:"bytes,2,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	LanguageOverrides    []*CollectionLanguageOverridesProto `protobuf:"bytes,3,rep,name=language_overrides,json=languageOverrides,proto3" json:"language_overrides,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (*CollectionConfigProto) Descriptor

func (*CollectionConfigProto) Descriptor() ([]byte, []int)

func (*CollectionConfigProto) GetEntityName

func (m *CollectionConfigProto) GetEntityName() string

func (*CollectionConfigProto) GetLanguageOverrides

func (m *CollectionConfigProto) GetLanguageOverrides() []*CollectionLanguageOverridesProto

func (*CollectionConfigProto) GetNamePattern

func (m *CollectionConfigProto) GetNamePattern() string

func (*CollectionConfigProto) ProtoMessage

func (*CollectionConfigProto) ProtoMessage()

func (*CollectionConfigProto) Reset

func (m *CollectionConfigProto) Reset()

func (*CollectionConfigProto) String

func (m *CollectionConfigProto) String() string

func (*CollectionConfigProto) XXX_DiscardUnknown

func (m *CollectionConfigProto) XXX_DiscardUnknown()

func (*CollectionConfigProto) XXX_Marshal

func (m *CollectionConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionConfigProto) XXX_Merge

func (m *CollectionConfigProto) XXX_Merge(src proto.Message)

func (*CollectionConfigProto) XXX_Size

func (m *CollectionConfigProto) XXX_Size() int

func (*CollectionConfigProto) XXX_Unmarshal

func (m *CollectionConfigProto) XXX_Unmarshal(b []byte) error

type CollectionLanguageOverridesProto

type CollectionLanguageOverridesProto struct {
	// The language of the generated code.
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// The entity name to override the default with
	EntityName string `protobuf:"bytes,2,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	// Optional fully-qualified type-name of a common resource-name
	CommonResourceName   string   `protobuf:"bytes,3,opt,name=common_resource_name,json=commonResourceName,proto3" json:"common_resource_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CollectionLanguageOverridesProto) Descriptor

func (*CollectionLanguageOverridesProto) Descriptor() ([]byte, []int)

func (*CollectionLanguageOverridesProto) GetCommonResourceName

func (m *CollectionLanguageOverridesProto) GetCommonResourceName() string

func (*CollectionLanguageOverridesProto) GetEntityName

func (m *CollectionLanguageOverridesProto) GetEntityName() string

func (*CollectionLanguageOverridesProto) GetLanguage

func (m *CollectionLanguageOverridesProto) GetLanguage() string

func (*CollectionLanguageOverridesProto) ProtoMessage

func (*CollectionLanguageOverridesProto) ProtoMessage()

func (*CollectionLanguageOverridesProto) Reset

func (*CollectionLanguageOverridesProto) String

func (*CollectionLanguageOverridesProto) XXX_DiscardUnknown

func (m *CollectionLanguageOverridesProto) XXX_DiscardUnknown()

func (*CollectionLanguageOverridesProto) XXX_Marshal

func (m *CollectionLanguageOverridesProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionLanguageOverridesProto) XXX_Merge

func (*CollectionLanguageOverridesProto) XXX_Size

func (m *CollectionLanguageOverridesProto) XXX_Size() int

func (*CollectionLanguageOverridesProto) XXX_Unmarshal

func (m *CollectionLanguageOverridesProto) XXX_Unmarshal(b []byte) error

type CollectionOneofProto

type CollectionOneofProto struct {
	// Name to be used as a basis for generated methods and classes.
	OneofName string `protobuf:"bytes,1,opt,name=oneof_name,json=oneofName,proto3" json:"oneof_name,omitempty"`
	// A list of the entity names of the CollectionConfigs to be included in the
	// oneof collection.
	CollectionNames      []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CollectionOneofProto) Descriptor

func (*CollectionOneofProto) Descriptor() ([]byte, []int)

func (*CollectionOneofProto) GetCollectionNames

func (m *CollectionOneofProto) GetCollectionNames() []string

func (*CollectionOneofProto) GetOneofName

func (m *CollectionOneofProto) GetOneofName() string

func (*CollectionOneofProto) ProtoMessage

func (*CollectionOneofProto) ProtoMessage()

func (*CollectionOneofProto) Reset

func (m *CollectionOneofProto) Reset()

func (*CollectionOneofProto) String

func (m *CollectionOneofProto) String() string

func (*CollectionOneofProto) XXX_DiscardUnknown

func (m *CollectionOneofProto) XXX_DiscardUnknown()

func (*CollectionOneofProto) XXX_Marshal

func (m *CollectionOneofProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionOneofProto) XXX_Merge

func (m *CollectionOneofProto) XXX_Merge(src proto.Message)

func (*CollectionOneofProto) XXX_Size

func (m *CollectionOneofProto) XXX_Size() int

func (*CollectionOneofProto) XXX_Unmarshal

func (m *CollectionOneofProto) XXX_Unmarshal(b []byte) error

type ConfigProto

type ConfigProto struct {
	// The settings of generated code in a specific language.
	LanguageSettings map[string]*LanguageSettingsProto `` /* 197-byte string literal not displayed */
	// The configuration for the license header to put on generated files.
	LicenseHeader *LicenseHeaderProto `protobuf:"bytes,7,opt,name=license_header,json=licenseHeader,proto3" json:"license_header,omitempty"`
	// A list of API interface configurations.
	Interfaces []*InterfaceConfigProto `protobuf:"bytes,10,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	// A list of resource name collection configs. This must be consistent with
	// collections defined in the interfaces.
	Collections []*CollectionConfigProto `protobuf:"bytes,15,rep,name=collections,proto3" json:"collections,omitempty"`
	// A list of resource name oneof configs.
	CollectionOneofs        []*CollectionOneofProto        `protobuf:"bytes,16,rep,name=collection_oneofs,json=collectionOneofs,proto3" json:"collection_oneofs,omitempty"`
	FixedResourceNameValues []*FixedResourceNameValueProto `` /* 135-byte string literal not displayed */
	// Set this value to toggle String format functions for resource name
	// entities. If this is not set, it will fallback to default behavior.
	// This option is exposed for backward compatibility of Java clients.
	// TODO(andrealin): Migrate this to a command-line option after migrating
	// off artman.
	// [DEPRECATED]
	EnableStringFormatFunctionsOverride *wrappers.BoolValue `` /* 173-byte string literal not displayed */
	// A list of message resource name configurations.
	ResourceNameGeneration []*ResourceNameMessageConfigProto `` /* 130-byte string literal not displayed */
	// A required field to specify the version of GAPIC config schema.
	// It is versioned using Semantic Versioning 2.0.0 (semver) and follows the
	// semver specification. Currently, the only valid value is "1.0.0" and "2.0.0"
	// Those following "2.0.0" should also follow the config_v2.proto schema.
	ConfigSchemaVersion  string   `protobuf:"bytes,21,opt,name=config_schema_version,json=configSchemaVersion,proto3" json:"config_schema_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`ConfigProto` specifies the configuration of code generation for GAPIC. The user provides it via a YAML file; this message here represents the schema for this file.

Example of a YAML configuration:

type: com.google.api.codegen.ConfigProto
generator:
  id: java
interfaces:
- name: google.example.library.v1.LibraryService
  collections:
  - name_pattern: shelves/{shelf}
    entity_name: shelf
  - name_pattern: shelves/{shelf}/books/{book}
    entity_name: book
    ...
  retry_codes_def:
  - name: idempotent
    retry_codes:
    ...
  - name: non_idempotent
    retry_codes:
  retry_params_def:
  - name: default
    ...
  methods:
  - name: PublishBooks
    flattening:
      groups:
      - parameters:
        - name
      - parameters:
        - name
        - version
    page_streaming:
      request:
        token_field: page_token
      response:
        token_field: next_page_token
        resources_field: books
    batching:
      thresholds:
        element_count_threshold: 5
        request_byte_threshold: 16384
      batch_descriptor:
        batched_field: pictures
        request_discriminator_fields:
        - album
        - labels
        subresponse_field: pic_id
    retry_codes_name: idempotent
    retry_params_name: default
    field_name_patterns:
      name: book
  - name: GetBook
  ...
...

func (*ConfigProto) Descriptor

func (*ConfigProto) Descriptor() ([]byte, []int)

func (*ConfigProto) GetCollectionOneofs

func (m *ConfigProto) GetCollectionOneofs() []*CollectionOneofProto

func (*ConfigProto) GetCollections

func (m *ConfigProto) GetCollections() []*CollectionConfigProto

func (*ConfigProto) GetConfigSchemaVersion

func (m *ConfigProto) GetConfigSchemaVersion() string

func (*ConfigProto) GetEnableStringFormatFunctionsOverride

func (m *ConfigProto) GetEnableStringFormatFunctionsOverride() *wrappers.BoolValue

func (*ConfigProto) GetFixedResourceNameValues

func (m *ConfigProto) GetFixedResourceNameValues() []*FixedResourceNameValueProto

func (*ConfigProto) GetInterfaces

func (m *ConfigProto) GetInterfaces() []*InterfaceConfigProto

func (*ConfigProto) GetLanguageSettings

func (m *ConfigProto) GetLanguageSettings() map[string]*LanguageSettingsProto

func (*ConfigProto) GetLicenseHeader

func (m *ConfigProto) GetLicenseHeader() *LicenseHeaderProto

func (*ConfigProto) GetResourceNameGeneration

func (m *ConfigProto) GetResourceNameGeneration() []*ResourceNameMessageConfigProto

func (*ConfigProto) ProtoMessage

func (*ConfigProto) ProtoMessage()

func (*ConfigProto) Reset

func (m *ConfigProto) Reset()

func (*ConfigProto) String

func (m *ConfigProto) String() string

func (*ConfigProto) XXX_DiscardUnknown

func (m *ConfigProto) XXX_DiscardUnknown()

func (*ConfigProto) XXX_Marshal

func (m *ConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigProto) XXX_Merge

func (m *ConfigProto) XXX_Merge(src proto.Message)

func (*ConfigProto) XXX_Size

func (m *ConfigProto) XXX_Size() int

func (*ConfigProto) XXX_Unmarshal

func (m *ConfigProto) XXX_Unmarshal(b []byte) error

type FixedResourceNameValueProto

type FixedResourceNameValueProto struct {
	// Name to be used as a basis for generated methods and classes.
	EntityName string `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	// The fixed, unformatted string value accepted by this configuration.
	FixedValue           string   `protobuf:"bytes,2,opt,name=fixed_value,json=fixedValue,proto3" json:"fixed_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DEPRECATED. Use CollectionConfigProto instead.

func (*FixedResourceNameValueProto) Descriptor

func (*FixedResourceNameValueProto) Descriptor() ([]byte, []int)

func (*FixedResourceNameValueProto) GetEntityName

func (m *FixedResourceNameValueProto) GetEntityName() string

func (*FixedResourceNameValueProto) GetFixedValue

func (m *FixedResourceNameValueProto) GetFixedValue() string

func (*FixedResourceNameValueProto) ProtoMessage

func (*FixedResourceNameValueProto) ProtoMessage()

func (*FixedResourceNameValueProto) Reset

func (m *FixedResourceNameValueProto) Reset()

func (*FixedResourceNameValueProto) String

func (m *FixedResourceNameValueProto) String() string

func (*FixedResourceNameValueProto) XXX_DiscardUnknown

func (m *FixedResourceNameValueProto) XXX_DiscardUnknown()

func (*FixedResourceNameValueProto) XXX_Marshal

func (m *FixedResourceNameValueProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FixedResourceNameValueProto) XXX_Merge

func (m *FixedResourceNameValueProto) XXX_Merge(src proto.Message)

func (*FixedResourceNameValueProto) XXX_Size

func (m *FixedResourceNameValueProto) XXX_Size() int

func (*FixedResourceNameValueProto) XXX_Unmarshal

func (m *FixedResourceNameValueProto) XXX_Unmarshal(b []byte) error

type FlatteningConfigProto

type FlatteningConfigProto struct {
	// Specifies a list of flattening groups.
	Groups               []*FlatteningGroupProto `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

`FlatteningConfigProto` describes the parameter groups for which a generator should produce method overloads which allow a client to directly pass request message fields as method parameters. This information may or may not be used, depending on the target language.

func (*FlatteningConfigProto) Descriptor

func (*FlatteningConfigProto) Descriptor() ([]byte, []int)

func (*FlatteningConfigProto) GetGroups

func (m *FlatteningConfigProto) GetGroups() []*FlatteningGroupProto

func (*FlatteningConfigProto) ProtoMessage

func (*FlatteningConfigProto) ProtoMessage()

func (*FlatteningConfigProto) Reset

func (m *FlatteningConfigProto) Reset()

func (*FlatteningConfigProto) String

func (m *FlatteningConfigProto) String() string

func (*FlatteningConfigProto) XXX_DiscardUnknown

func (m *FlatteningConfigProto) XXX_DiscardUnknown()

func (*FlatteningConfigProto) XXX_Marshal

func (m *FlatteningConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FlatteningConfigProto) XXX_Merge

func (m *FlatteningConfigProto) XXX_Merge(src proto.Message)

func (*FlatteningConfigProto) XXX_Size

func (m *FlatteningConfigProto) XXX_Size() int

func (*FlatteningConfigProto) XXX_Unmarshal

func (m *FlatteningConfigProto) XXX_Unmarshal(b []byte) error

type FlatteningGroupProto

type FlatteningGroupProto struct {
	// The list of parameters to include in this flattening group. Each
	// parameter must be a field of the request message.
	Parameters          []string `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty"`
	FlatteningGroupName string   `protobuf:"bytes,2,opt,name=flattening_group_name,json=flatteningGroupName,proto3" json:"flattening_group_name,omitempty"`
	// Map flattening parameters listed in parameters field to a resource name
	// treatment. This is used to override the resource_name_treament setting in
	// MethodConfigProto.
	ParameterResourceNameTreatment map[string]ResourceNameTreatment `` /* 294-byte string literal not displayed */
	XXX_NoUnkeyedLiteral           struct{}                         `json:"-"`
	XXX_unrecognized               []byte                           `json:"-"`
	XXX_sizecache                  int32                            `json:"-"`
}

`FlatteningGroupProto` represents a list of parameters to be flattened.

func (*FlatteningGroupProto) Descriptor

func (*FlatteningGroupProto) Descriptor() ([]byte, []int)

func (*FlatteningGroupProto) GetFlatteningGroupName

func (m *FlatteningGroupProto) GetFlatteningGroupName() string

func (*FlatteningGroupProto) GetParameterResourceNameTreatment

func (m *FlatteningGroupProto) GetParameterResourceNameTreatment() map[string]ResourceNameTreatment

func (*FlatteningGroupProto) GetParameters

func (m *FlatteningGroupProto) GetParameters() []string

func (*FlatteningGroupProto) ProtoMessage

func (*FlatteningGroupProto) ProtoMessage()

func (*FlatteningGroupProto) Reset

func (m *FlatteningGroupProto) Reset()

func (*FlatteningGroupProto) String

func (m *FlatteningGroupProto) String() string

func (*FlatteningGroupProto) XXX_DiscardUnknown

func (m *FlatteningGroupProto) XXX_DiscardUnknown()

func (*FlatteningGroupProto) XXX_Marshal

func (m *FlatteningGroupProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FlatteningGroupProto) XXX_Merge

func (m *FlatteningGroupProto) XXX_Merge(src proto.Message)

func (*FlatteningGroupProto) XXX_Size

func (m *FlatteningGroupProto) XXX_Size() int

func (*FlatteningGroupProto) XXX_Unmarshal

func (m *FlatteningGroupProto) XXX_Unmarshal(b []byte) error

type FlowControlLimitExceededBehaviorProto

type FlowControlLimitExceededBehaviorProto int32
const (
	FlowControlLimitExceededBehaviorProto_UNSET_BEHAVIOR  FlowControlLimitExceededBehaviorProto = 0
	FlowControlLimitExceededBehaviorProto_THROW_EXCEPTION FlowControlLimitExceededBehaviorProto = 1
	FlowControlLimitExceededBehaviorProto_BLOCK           FlowControlLimitExceededBehaviorProto = 2
	FlowControlLimitExceededBehaviorProto_IGNORE          FlowControlLimitExceededBehaviorProto = 3
)

func (FlowControlLimitExceededBehaviorProto) EnumDescriptor

func (FlowControlLimitExceededBehaviorProto) EnumDescriptor() ([]byte, []int)

func (FlowControlLimitExceededBehaviorProto) String

type InterfaceConfigProto

type InterfaceConfigProto struct {
	// The fully qualified name of the API interface.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Language specific documentation. Injected after proto docs.
	LangDoc map[string]string `` /* 170-byte string literal not displayed */
	// Configuration of smoke test.
	SmokeTest *SmokeTestConfigProto `protobuf:"bytes,5,opt,name=smoke_test,json=smokeTest,proto3" json:"smoke_test,omitempty"`
	// A list of resource collection configurations.
	Collections []*CollectionConfigProto `protobuf:"bytes,10,rep,name=collections,proto3" json:"collections,omitempty"`
	// A list of method configurations.
	Methods []*MethodConfigProto `protobuf:"bytes,20,rep,name=methods,proto3" json:"methods,omitempty"`
	// Definition for retryable codes
	RetryCodesDef []*RetryCodesDefinitionProto `protobuf:"bytes,30,rep,name=retry_codes_def,json=retryCodesDef,proto3" json:"retry_codes_def,omitempty"`
	// Definition for retry/backoff parameters
	RetryParamsDef []*RetryParamsDefinitionProto `protobuf:"bytes,31,rep,name=retry_params_def,json=retryParamsDef,proto3" json:"retry_params_def,omitempty"`
	// Params that are always required to construct an instance of the
	// API wrapper class.
	RequiredConstructorParams []string `` /* 139-byte string literal not displayed */
	XXX_NoUnkeyedLiteral      struct{} `json:"-"`
	XXX_unrecognized          []byte   `json:"-"`
	XXX_sizecache             int32    `json:"-"`
}

func (*InterfaceConfigProto) Descriptor

func (*InterfaceConfigProto) Descriptor() ([]byte, []int)

func (*InterfaceConfigProto) GetCollections

func (m *InterfaceConfigProto) GetCollections() []*CollectionConfigProto

func (*InterfaceConfigProto) GetLangDoc

func (m *InterfaceConfigProto) GetLangDoc() map[string]string

func (*InterfaceConfigProto) GetMethods

func (m *InterfaceConfigProto) GetMethods() []*MethodConfigProto

func (*InterfaceConfigProto) GetName

func (m *InterfaceConfigProto) GetName() string

func (*InterfaceConfigProto) GetRequiredConstructorParams

func (m *InterfaceConfigProto) GetRequiredConstructorParams() []string

func (*InterfaceConfigProto) GetRetryCodesDef

func (m *InterfaceConfigProto) GetRetryCodesDef() []*RetryCodesDefinitionProto

func (*InterfaceConfigProto) GetRetryParamsDef

func (m *InterfaceConfigProto) GetRetryParamsDef() []*RetryParamsDefinitionProto

func (*InterfaceConfigProto) GetSmokeTest

func (m *InterfaceConfigProto) GetSmokeTest() *SmokeTestConfigProto

func (*InterfaceConfigProto) ProtoMessage

func (*InterfaceConfigProto) ProtoMessage()

func (*InterfaceConfigProto) Reset

func (m *InterfaceConfigProto) Reset()

func (*InterfaceConfigProto) String

func (m *InterfaceConfigProto) String() string

func (*InterfaceConfigProto) XXX_DiscardUnknown

func (m *InterfaceConfigProto) XXX_DiscardUnknown()

func (*InterfaceConfigProto) XXX_Marshal

func (m *InterfaceConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InterfaceConfigProto) XXX_Merge

func (m *InterfaceConfigProto) XXX_Merge(src proto.Message)

func (*InterfaceConfigProto) XXX_Size

func (m *InterfaceConfigProto) XXX_Size() int

func (*InterfaceConfigProto) XXX_Unmarshal

func (m *InterfaceConfigProto) XXX_Unmarshal(b []byte) error

type LanguageSettingsProto

type LanguageSettingsProto struct {
	// Package name used for the language.
	PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
	// Location of the domain layer, if any, that the user should use
	// instead of the generated client.
	DomainLayerLocation string `protobuf:"bytes,2,opt,name=domain_layer_location,json=domainLayerLocation,proto3" json:"domain_layer_location,omitempty"`
	// Set the interface name to be used when generating GAPIC code for
	// particular interfaces. Keys are fully qualified interface names;
	// values are unqualified interface names (to specify the package/namespace,
	// use the package_name setting).
	InterfaceNames map[string]string `` /* 191-byte string literal not displayed */
	// Overrides ConfigProto::license_header.
	LicenseHeaderOverride *LicenseHeaderProto `` /* 126-byte string literal not displayed */
	// The release level of the client in the language
	ReleaseLevel         ReleaseLevel `` /* 139-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*LanguageSettingsProto) Descriptor

func (*LanguageSettingsProto) Descriptor() ([]byte, []int)

func (*LanguageSettingsProto) GetDomainLayerLocation

func (m *LanguageSettingsProto) GetDomainLayerLocation() string

func (*LanguageSettingsProto) GetInterfaceNames

func (m *LanguageSettingsProto) GetInterfaceNames() map[string]string

func (*LanguageSettingsProto) GetLicenseHeaderOverride

func (m *LanguageSettingsProto) GetLicenseHeaderOverride() *LicenseHeaderProto

func (*LanguageSettingsProto) GetPackageName

func (m *LanguageSettingsProto) GetPackageName() string

func (*LanguageSettingsProto) GetReleaseLevel

func (m *LanguageSettingsProto) GetReleaseLevel() ReleaseLevel

func (*LanguageSettingsProto) ProtoMessage

func (*LanguageSettingsProto) ProtoMessage()

func (*LanguageSettingsProto) Reset

func (m *LanguageSettingsProto) Reset()

func (*LanguageSettingsProto) String

func (m *LanguageSettingsProto) String() string

func (*LanguageSettingsProto) XXX_DiscardUnknown

func (m *LanguageSettingsProto) XXX_DiscardUnknown()

func (*LanguageSettingsProto) XXX_Marshal

func (m *LanguageSettingsProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LanguageSettingsProto) XXX_Merge

func (m *LanguageSettingsProto) XXX_Merge(src proto.Message)

func (*LanguageSettingsProto) XXX_Size

func (m *LanguageSettingsProto) XXX_Size() int

func (*LanguageSettingsProto) XXX_Unmarshal

func (m *LanguageSettingsProto) XXX_Unmarshal(b []byte) error

type LicenseHeaderProto

type LicenseHeaderProto struct {
	// The file containing the copyright line(s).
	CopyrightFile string `protobuf:"bytes,1,opt,name=copyright_file,json=copyrightFile,proto3" json:"copyright_file,omitempty"`
	// The file containing the raw license header without any copyright line(s).
	LicenseFile          string   `protobuf:"bytes,2,opt,name=license_file,json=licenseFile,proto3" json:"license_file,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DEPRECATED.

func (*LicenseHeaderProto) Descriptor

func (*LicenseHeaderProto) Descriptor() ([]byte, []int)

func (*LicenseHeaderProto) GetCopyrightFile

func (m *LicenseHeaderProto) GetCopyrightFile() string

func (*LicenseHeaderProto) GetLicenseFile

func (m *LicenseHeaderProto) GetLicenseFile() string

func (*LicenseHeaderProto) ProtoMessage

func (*LicenseHeaderProto) ProtoMessage()

func (*LicenseHeaderProto) Reset

func (m *LicenseHeaderProto) Reset()

func (*LicenseHeaderProto) String

func (m *LicenseHeaderProto) String() string

func (*LicenseHeaderProto) XXX_DiscardUnknown

func (m *LicenseHeaderProto) XXX_DiscardUnknown()

func (*LicenseHeaderProto) XXX_Marshal

func (m *LicenseHeaderProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LicenseHeaderProto) XXX_Merge

func (m *LicenseHeaderProto) XXX_Merge(src proto.Message)

func (*LicenseHeaderProto) XXX_Size

func (m *LicenseHeaderProto) XXX_Size() int

func (*LicenseHeaderProto) XXX_Unmarshal

func (m *LicenseHeaderProto) XXX_Unmarshal(b []byte) error

type LongRunningConfigProto

type LongRunningConfigProto struct {
	// The fully-qualified type that is returned from an Operation when it is
	// complete.
	ReturnType string `protobuf:"bytes,1,opt,name=return_type,json=returnType,proto3" json:"return_type,omitempty"`
	// The fully-qualified type of the metadata of an Operation.
	MetadataType string `protobuf:"bytes,2,opt,name=metadata_type,json=metadataType,proto3" json:"metadata_type,omitempty"`
	// Whether or not the server implements delete.
	ImplementsDelete bool `protobuf:"varint,3,opt,name=implements_delete,json=implementsDelete,proto3" json:"implements_delete,omitempty"`
	// Whether or not the server implements cancel.
	ImplementsCancel bool `protobuf:"varint,4,opt,name=implements_cancel,json=implementsCancel,proto3" json:"implements_cancel,omitempty"`
	// Initial delay after which first poll request will be made.
	InitialPollDelayMillis uint64 `` /* 132-byte string literal not displayed */
	// Multiplier to gradually increase delay between subsequent polls until it
	// reaches max_poll_delay_millis.
	PollDelayMultiplier float64 `protobuf:"fixed64,6,opt,name=poll_delay_multiplier,json=pollDelayMultiplier,proto3" json:"poll_delay_multiplier,omitempty"`
	// Maximum time between two subsequent poll requests.
	MaxPollDelayMillis uint64 `protobuf:"varint,7,opt,name=max_poll_delay_millis,json=maxPollDelayMillis,proto3" json:"max_poll_delay_millis,omitempty"`
	// Total polling timeout.
	TotalPollTimeoutMillis uint64   `` /* 132-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

LongRunningProto describes settings to use when generating API methods that use the long-running operation pattern.

func (*LongRunningConfigProto) Descriptor

func (*LongRunningConfigProto) Descriptor() ([]byte, []int)

func (*LongRunningConfigProto) GetImplementsCancel

func (m *LongRunningConfigProto) GetImplementsCancel() bool

func (*LongRunningConfigProto) GetImplementsDelete

func (m *LongRunningConfigProto) GetImplementsDelete() bool

func (*LongRunningConfigProto) GetInitialPollDelayMillis

func (m *LongRunningConfigProto) GetInitialPollDelayMillis() uint64

func (*LongRunningConfigProto) GetMaxPollDelayMillis

func (m *LongRunningConfigProto) GetMaxPollDelayMillis() uint64

func (*LongRunningConfigProto) GetMetadataType

func (m *LongRunningConfigProto) GetMetadataType() string

func (*LongRunningConfigProto) GetPollDelayMultiplier

func (m *LongRunningConfigProto) GetPollDelayMultiplier() float64

func (*LongRunningConfigProto) GetReturnType

func (m *LongRunningConfigProto) GetReturnType() string

func (*LongRunningConfigProto) GetTotalPollTimeoutMillis

func (m *LongRunningConfigProto) GetTotalPollTimeoutMillis() uint64

func (*LongRunningConfigProto) ProtoMessage

func (*LongRunningConfigProto) ProtoMessage()

func (*LongRunningConfigProto) Reset

func (m *LongRunningConfigProto) Reset()

func (*LongRunningConfigProto) String

func (m *LongRunningConfigProto) String() string

func (*LongRunningConfigProto) XXX_DiscardUnknown

func (m *LongRunningConfigProto) XXX_DiscardUnknown()

func (*LongRunningConfigProto) XXX_Marshal

func (m *LongRunningConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LongRunningConfigProto) XXX_Merge

func (m *LongRunningConfigProto) XXX_Merge(src proto.Message)

func (*LongRunningConfigProto) XXX_Size

func (m *LongRunningConfigProto) XXX_Size() int

func (*LongRunningConfigProto) XXX_Unmarshal

func (m *LongRunningConfigProto) XXX_Unmarshal(b []byte) error

type MethodConfigProto

type MethodConfigProto struct {
	// The fully qualified name of the method.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Specifies the configuration for parameter flattening.
	Flattening *FlatteningConfigProto `protobuf:"bytes,2,opt,name=flattening,proto3" json:"flattening,omitempty"`
	// Specifies the configuration for paging.
	PageStreaming *PageStreamingConfigProto `protobuf:"bytes,3,opt,name=page_streaming,json=pageStreaming,proto3" json:"page_streaming,omitempty"`
	// Specifies the configuration for gRPC-streaming responses.
	// Note that this is for configuring paged gRPC-streaming responses.
	// Some method can be gRPC-streaming even if this field does not exist.
	GrpcStreaming *PageStreamingConfigProto `protobuf:"bytes,13,opt,name=grpc_streaming,json=grpcStreaming,proto3" json:"grpc_streaming,omitempty"`
	// Specifies the configuration for retryable codes.
	// The name must be defined in InterfaceConfigProto::retry_codes_def.
	RetryCodesName string `protobuf:"bytes,4,opt,name=retry_codes_name,json=retryCodesName,proto3" json:"retry_codes_name,omitempty"`
	// Specifies the configuration for retry/backoff parameters.
	// The name must be defined in InterfaceConfigProto::retry_params_def.
	RetryParamsName string `protobuf:"bytes,5,opt,name=retry_params_name,json=retryParamsName,proto3" json:"retry_params_name,omitempty"`
	// Specifies the default timeout for a non-retrying call. If the call is
	// retrying, refer to `retry_params_name` instead.
	TimeoutMillis uint64 `protobuf:"varint,11,opt,name=timeout_millis,json=timeoutMillis,proto3" json:"timeout_millis,omitempty"`
	// Specifies the configuration for batching.
	Batching *BatchingConfigProto `protobuf:"bytes,6,opt,name=batching,proto3" json:"batching,omitempty"`
	// Fields that are always required for a request to be valid.
	RequiredFields []string `protobuf:"bytes,8,rep,name=required_fields,json=requiredFields,proto3" json:"required_fields,omitempty"`
	// Maps the field name of the request type to entity_name of CollectionConfigProto.
	// It is used to specify the string pattern that the field must follow.
	FieldNamePatterns map[string]string `` /* 202-byte string literal not displayed */
	// Specifies complex structure fields that need to be initialized by the sample code for
	// the sample to be usable.
	SampleCodeInitFields []string `` /* 126-byte string literal not displayed */
	// Specifies sets of parameter values to be used together in a
	// sample. If this is not set, no samples are output.
	//
	// UNDER DEVELOPMENT: Usage of this field for sample generation is
	// still being developed. For now, continue using
	// `sample_code_init_fields` to generate in-code samples.
	SampleValueSets []*SampleValueSet `protobuf:"bytes,16,rep,name=sample_value_sets,json=sampleValueSets,proto3" json:"sample_value_sets,omitempty"`
	// Defines combinations of method calling forms (sample code
	// structures as output by the client library generator) and
	// `sample_value_sets` that should be combined to generate samples.
	//
	// UNDER DEVELOPMENT: Usage of this field for sample generation is
	// still being developed. For now, continue using
	// `sample_code_init_fields` to generate in-code samples.
	Samples *SampleConfiguration `protobuf:"bytes,17,opt,name=samples,proto3" json:"samples,omitempty"`
	// Route calls through a different gRPC interface than the one this method
	// is contained in. This specifically supports the Pub/Sub IAM hack to route
	// IAM methods to IamPolicy for Pub/Sub.
	RerouteToGrpcInterface string `` /* 132-byte string literal not displayed */
	// TODO: Remove this config once there are no use cases.
	// Specifies the list of the method's input message fields (including nested
	// ones, using the dot notation), which should be url-encoded in
	// "x-goog-request-params" header
	HeaderRequestParams []string                 `protobuf:"bytes,14,rep,name=header_request_params,json=headerRequestParams,proto3" json:"header_request_params,omitempty"`
	SurfaceTreatments   []*SurfaceTreatmentProto `protobuf:"bytes,20,rep,name=surface_treatments,json=surfaceTreatments,proto3" json:"surface_treatments,omitempty"`
	// Set the resource name treatment for fields
	ResourceNameTreatment ResourceNameTreatment `` /* 178-byte string literal not displayed */
	// Long-running settings.
	LongRunning          *LongRunningConfigProto `protobuf:"bytes,30,opt,name=long_running,json=longRunning,proto3" json:"long_running,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

`MethodConfigProto` describes the generator configuration for a method.

func (*MethodConfigProto) Descriptor

func (*MethodConfigProto) Descriptor() ([]byte, []int)

func (*MethodConfigProto) GetBatching

func (m *MethodConfigProto) GetBatching() *BatchingConfigProto

func (*MethodConfigProto) GetFieldNamePatterns

func (m *MethodConfigProto) GetFieldNamePatterns() map[string]string

func (*MethodConfigProto) GetFlattening

func (m *MethodConfigProto) GetFlattening() *FlatteningConfigProto

func (*MethodConfigProto) GetGrpcStreaming

func (m *MethodConfigProto) GetGrpcStreaming() *PageStreamingConfigProto

func (*MethodConfigProto) GetHeaderRequestParams

func (m *MethodConfigProto) GetHeaderRequestParams() []string

func (*MethodConfigProto) GetLongRunning

func (m *MethodConfigProto) GetLongRunning() *LongRunningConfigProto

func (*MethodConfigProto) GetName

func (m *MethodConfigProto) GetName() string

func (*MethodConfigProto) GetPageStreaming

func (m *MethodConfigProto) GetPageStreaming() *PageStreamingConfigProto

func (*MethodConfigProto) GetRequiredFields

func (m *MethodConfigProto) GetRequiredFields() []string

func (*MethodConfigProto) GetRerouteToGrpcInterface

func (m *MethodConfigProto) GetRerouteToGrpcInterface() string

func (*MethodConfigProto) GetResourceNameTreatment

func (m *MethodConfigProto) GetResourceNameTreatment() ResourceNameTreatment

func (*MethodConfigProto) GetRetryCodesName

func (m *MethodConfigProto) GetRetryCodesName() string

func (*MethodConfigProto) GetRetryParamsName

func (m *MethodConfigProto) GetRetryParamsName() string

func (*MethodConfigProto) GetSampleCodeInitFields

func (m *MethodConfigProto) GetSampleCodeInitFields() []string

func (*MethodConfigProto) GetSampleValueSets

func (m *MethodConfigProto) GetSampleValueSets() []*SampleValueSet

func (*MethodConfigProto) GetSamples

func (m *MethodConfigProto) GetSamples() *SampleConfiguration

func (*MethodConfigProto) GetSurfaceTreatments

func (m *MethodConfigProto) GetSurfaceTreatments() []*SurfaceTreatmentProto

func (*MethodConfigProto) GetTimeoutMillis

func (m *MethodConfigProto) GetTimeoutMillis() uint64

func (*MethodConfigProto) ProtoMessage

func (*MethodConfigProto) ProtoMessage()

func (*MethodConfigProto) Reset

func (m *MethodConfigProto) Reset()

func (*MethodConfigProto) String

func (m *MethodConfigProto) String() string

func (*MethodConfigProto) XXX_DiscardUnknown

func (m *MethodConfigProto) XXX_DiscardUnknown()

func (*MethodConfigProto) XXX_Marshal

func (m *MethodConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MethodConfigProto) XXX_Merge

func (m *MethodConfigProto) XXX_Merge(src proto.Message)

func (*MethodConfigProto) XXX_Size

func (m *MethodConfigProto) XXX_Size() int

func (*MethodConfigProto) XXX_Unmarshal

func (m *MethodConfigProto) XXX_Unmarshal(b []byte) error

type OutputSpec

type OutputSpec struct {
	// A loop construct.
	Loop *OutputSpec_LoopStatement `protobuf:"bytes,1,opt,name=loop,proto3" json:"loop,omitempty"`
	// The elements of `print` consist of a printf-like format string
	// followed by variables to be interpolated in the string (for
	// example, ["%s=%s", thing.variable, thing.value]).  These
	// variables must either be `$resp` or have been previously defined
	// by `loop` or `define`.
	//
	// Note that this field name is singular because the array
	// represents a single print statement. A newline will be
	// automatically appended to the print statement.
	Print []string `protobuf:"bytes,2,rep,name=print,proto3" json:"print,omitempty"`
	// A variable definition construct, of the form
	// `name=var[. field...]`, where `name` is the new variable being
	// defined, `var` is either `$resp` or a variable that was
	// previously defined by `loop` or `define`, and everything to the
	// right of the period is any valid sequence of subfield or
	// bracketed list subscripts or map keys to dereference a descendant
	// of `var`.
	Define string `protobuf:"bytes,3,opt,name=define,proto3" json:"define,omitempty"`
	// The first element of `comment` is a printf-like format string, and
	// subsequent elements are variable names (not values) to be interpolated in
	// the string. The variable names will be converted to a language-idiomatic
	// style (snake case or camel case). The interpolated format string will then
	// be rendered as a comment in a language-idiomatic style.
	//
	// Like `print`, a newline will be automatically appended to the comment.
	Comment []string `protobuf:"bytes,4,rep,name=comment,proto3" json:"comment,omitempty"`
	// An output-to-local-file construct.
	WriteFile            *OutputSpec_WriteFileStatement `protobuf:"bytes,5,opt,name=write_file,json=writeFile,proto3" json:"write_file,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

func (*OutputSpec) Descriptor

func (*OutputSpec) Descriptor() ([]byte, []int)

func (*OutputSpec) GetComment

func (m *OutputSpec) GetComment() []string

func (*OutputSpec) GetDefine

func (m *OutputSpec) GetDefine() string

func (*OutputSpec) GetLoop

func (m *OutputSpec) GetLoop() *OutputSpec_LoopStatement

func (*OutputSpec) GetPrint

func (m *OutputSpec) GetPrint() []string

func (*OutputSpec) GetWriteFile

func (m *OutputSpec) GetWriteFile() *OutputSpec_WriteFileStatement

func (*OutputSpec) ProtoMessage

func (*OutputSpec) ProtoMessage()

func (*OutputSpec) Reset

func (m *OutputSpec) Reset()

func (*OutputSpec) String

func (m *OutputSpec) String() string

func (*OutputSpec) XXX_DiscardUnknown

func (m *OutputSpec) XXX_DiscardUnknown()

func (*OutputSpec) XXX_Marshal

func (m *OutputSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutputSpec) XXX_Merge

func (m *OutputSpec) XXX_Merge(src proto.Message)

func (*OutputSpec) XXX_Size

func (m *OutputSpec) XXX_Size() int

func (*OutputSpec) XXX_Unmarshal

func (m *OutputSpec) XXX_Unmarshal(b []byte) error

type OutputSpec_LoopStatement

type OutputSpec_LoopStatement struct {
	// The collection over which to iterate.
	// Exactly one of `map` and `collection` should be specified.
	Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// The iteration variable.
	// Required and should only be specified if `collection` is specified.
	Variable string `protobuf:"bytes,2,opt,name=variable,proto3" json:"variable,omitempty"`
	// The contents of the loop.
	Body []*OutputSpec `protobuf:"bytes,3,rep,name=body,proto3" json:"body,omitempty"`
	// The map over which to iterate.
	// Exactly one of `map` and `collection` should be specified.
	Map string `protobuf:"bytes,4,opt,name=map,proto3" json:"map,omitempty"`
	// The iteration variable for key.
	// Can only be specified when `map` is specified.
	// At least one of `key` and `value` should be specified if `map` is specified.
	Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"`
	// The iteration variable for value.
	// Can only be specified when `map` is specified.
	// At least one of `key` and `value` should be specified if `map` is specified.
	Value                string   `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OutputSpec_LoopStatement) Descriptor

func (*OutputSpec_LoopStatement) Descriptor() ([]byte, []int)

func (*OutputSpec_LoopStatement) GetBody

func (m *OutputSpec_LoopStatement) GetBody() []*OutputSpec

func (*OutputSpec_LoopStatement) GetCollection

func (m *OutputSpec_LoopStatement) GetCollection() string

func (*OutputSpec_LoopStatement) GetKey

func (m *OutputSpec_LoopStatement) GetKey() string

func (*OutputSpec_LoopStatement) GetMap

func (m *OutputSpec_LoopStatement) GetMap() string

func (*OutputSpec_LoopStatement) GetValue

func (m *OutputSpec_LoopStatement) GetValue() string

func (*OutputSpec_LoopStatement) GetVariable

func (m *OutputSpec_LoopStatement) GetVariable() string

func (*OutputSpec_LoopStatement) ProtoMessage

func (*OutputSpec_LoopStatement) ProtoMessage()

func (*OutputSpec_LoopStatement) Reset

func (m *OutputSpec_LoopStatement) Reset()

func (*OutputSpec_LoopStatement) String

func (m *OutputSpec_LoopStatement) String() string

func (*OutputSpec_LoopStatement) XXX_DiscardUnknown

func (m *OutputSpec_LoopStatement) XXX_DiscardUnknown()

func (*OutputSpec_LoopStatement) XXX_Marshal

func (m *OutputSpec_LoopStatement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutputSpec_LoopStatement) XXX_Merge

func (m *OutputSpec_LoopStatement) XXX_Merge(src proto.Message)

func (*OutputSpec_LoopStatement) XXX_Size

func (m *OutputSpec_LoopStatement) XXX_Size() int

func (*OutputSpec_LoopStatement) XXX_Unmarshal

func (m *OutputSpec_LoopStatement) XXX_Unmarshal(b []byte) error

type OutputSpec_WriteFileStatement

type OutputSpec_WriteFileStatement struct {
	// The name of the file to write to.
	//
	// Similar to `print`, the elements of `file_name` consists of a printf-like
	// format string followed by variables to be interpolated in the string,
	// for example, ["file_name_%s.txt", thing.field]. These
	// variables must either be `$resp` or have been previously defined
	// by `loop` or `define`.
	FileName []string `protobuf:"bytes,1,rep,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	// The content to write to the local file, of the pattern
	// `var[.field...]`. Similar to the right hand side of `define`.
	// `var` is either `$resp` or a variable that was
	// previously defined by `loop` or `define`, and everything to the
	// right of the period is any valid sequence of subfield or
	// bracketed list subscripts or map keys to dereference a descendant
	// of `var`.
	Contents             string   `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OutputSpec_WriteFileStatement) Descriptor

func (*OutputSpec_WriteFileStatement) Descriptor() ([]byte, []int)

func (*OutputSpec_WriteFileStatement) GetContents

func (m *OutputSpec_WriteFileStatement) GetContents() string

func (*OutputSpec_WriteFileStatement) GetFileName

func (m *OutputSpec_WriteFileStatement) GetFileName() []string

func (*OutputSpec_WriteFileStatement) ProtoMessage

func (*OutputSpec_WriteFileStatement) ProtoMessage()

func (*OutputSpec_WriteFileStatement) Reset

func (m *OutputSpec_WriteFileStatement) Reset()

func (*OutputSpec_WriteFileStatement) String

func (*OutputSpec_WriteFileStatement) XXX_DiscardUnknown

func (m *OutputSpec_WriteFileStatement) XXX_DiscardUnknown()

func (*OutputSpec_WriteFileStatement) XXX_Marshal

func (m *OutputSpec_WriteFileStatement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutputSpec_WriteFileStatement) XXX_Merge

func (m *OutputSpec_WriteFileStatement) XXX_Merge(src proto.Message)

func (*OutputSpec_WriteFileStatement) XXX_Size

func (m *OutputSpec_WriteFileStatement) XXX_Size() int

func (*OutputSpec_WriteFileStatement) XXX_Unmarshal

func (m *OutputSpec_WriteFileStatement) XXX_Unmarshal(b []byte) error

type PageStreamingConfigProto

type PageStreamingConfigProto struct {
	// Specifies request information of the list method.
	Request *PageStreamingRequestProto `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Specifies response information of the list method.
	Response             *PageStreamingResponseProto `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

`PageStreamingConfigProto` describes information for generating a method which transforms a paging list rpc into a stream of resources.

func (*PageStreamingConfigProto) Descriptor

func (*PageStreamingConfigProto) Descriptor() ([]byte, []int)

func (*PageStreamingConfigProto) GetRequest

func (*PageStreamingConfigProto) GetResponse

func (*PageStreamingConfigProto) ProtoMessage

func (*PageStreamingConfigProto) ProtoMessage()

func (*PageStreamingConfigProto) Reset

func (m *PageStreamingConfigProto) Reset()

func (*PageStreamingConfigProto) String

func (m *PageStreamingConfigProto) String() string

func (*PageStreamingConfigProto) XXX_DiscardUnknown

func (m *PageStreamingConfigProto) XXX_DiscardUnknown()

func (*PageStreamingConfigProto) XXX_Marshal

func (m *PageStreamingConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PageStreamingConfigProto) XXX_Merge

func (m *PageStreamingConfigProto) XXX_Merge(src proto.Message)

func (*PageStreamingConfigProto) XXX_Size

func (m *PageStreamingConfigProto) XXX_Size() int

func (*PageStreamingConfigProto) XXX_Unmarshal

func (m *PageStreamingConfigProto) XXX_Unmarshal(b []byte) error

type PageStreamingRequestProto

type PageStreamingRequestProto struct {
	// The name of the field in the request containing the page token.
	TokenField string `protobuf:"bytes,1,opt,name=token_field,json=tokenField,proto3" json:"token_field,omitempty"`
	// Optional. The name of the field, if present, specifying the maximum number
	// of elements to be returned in the response.
	PageSizeField        string   `protobuf:"bytes,2,opt,name=page_size_field,json=pageSizeField,proto3" json:"page_size_field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`PageStreamingRequestProto` defines which fields match the paging pattern in the request.

func (*PageStreamingRequestProto) Descriptor

func (*PageStreamingRequestProto) Descriptor() ([]byte, []int)

func (*PageStreamingRequestProto) GetPageSizeField

func (m *PageStreamingRequestProto) GetPageSizeField() string

func (*PageStreamingRequestProto) GetTokenField

func (m *PageStreamingRequestProto) GetTokenField() string

func (*PageStreamingRequestProto) ProtoMessage

func (*PageStreamingRequestProto) ProtoMessage()

func (*PageStreamingRequestProto) Reset

func (m *PageStreamingRequestProto) Reset()

func (*PageStreamingRequestProto) String

func (m *PageStreamingRequestProto) String() string

func (*PageStreamingRequestProto) XXX_DiscardUnknown

func (m *PageStreamingRequestProto) XXX_DiscardUnknown()

func (*PageStreamingRequestProto) XXX_Marshal

func (m *PageStreamingRequestProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PageStreamingRequestProto) XXX_Merge

func (m *PageStreamingRequestProto) XXX_Merge(src proto.Message)

func (*PageStreamingRequestProto) XXX_Size

func (m *PageStreamingRequestProto) XXX_Size() int

func (*PageStreamingRequestProto) XXX_Unmarshal

func (m *PageStreamingRequestProto) XXX_Unmarshal(b []byte) error

type PageStreamingResponseProto

type PageStreamingResponseProto struct {
	// The name of the field in the response containing the next page
	// token.
	TokenField string `protobuf:"bytes,1,opt,name=token_field,json=tokenField,proto3" json:"token_field,omitempty"`
	// The name of the field in the response containing the list of
	// resources belonging to the page.
	ResourcesField       string   `protobuf:"bytes,2,opt,name=resources_field,json=resourcesField,proto3" json:"resources_field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`PageStreamingResponseProto` defines which fields match the paging pattern in the response.

func (*PageStreamingResponseProto) Descriptor

func (*PageStreamingResponseProto) Descriptor() ([]byte, []int)

func (*PageStreamingResponseProto) GetResourcesField

func (m *PageStreamingResponseProto) GetResourcesField() string

func (*PageStreamingResponseProto) GetTokenField

func (m *PageStreamingResponseProto) GetTokenField() string

func (*PageStreamingResponseProto) ProtoMessage

func (*PageStreamingResponseProto) ProtoMessage()

func (*PageStreamingResponseProto) Reset

func (m *PageStreamingResponseProto) Reset()

func (*PageStreamingResponseProto) String

func (m *PageStreamingResponseProto) String() string

func (*PageStreamingResponseProto) XXX_DiscardUnknown

func (m *PageStreamingResponseProto) XXX_DiscardUnknown()

func (*PageStreamingResponseProto) XXX_Marshal

func (m *PageStreamingResponseProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PageStreamingResponseProto) XXX_Merge

func (m *PageStreamingResponseProto) XXX_Merge(src proto.Message)

func (*PageStreamingResponseProto) XXX_Size

func (m *PageStreamingResponseProto) XXX_Size() int

func (*PageStreamingResponseProto) XXX_Unmarshal

func (m *PageStreamingResponseProto) XXX_Unmarshal(b []byte) error

type ReleaseLevel

type ReleaseLevel int32

ReleaseLevel indicates the stage of development of a piece of code and relatedly what the promises are on quality. ALPHA: Not feature complete, expect breaking changes BETA: Feature complete, minimal breaking changes GA: General availability, no breaking changes without major version bump

const (
	ReleaseLevel_UNSET_RELEASE_LEVEL ReleaseLevel = 0
	ReleaseLevel_ALPHA               ReleaseLevel = 1
	ReleaseLevel_BETA                ReleaseLevel = 2
	ReleaseLevel_GA                  ReleaseLevel = 3
	ReleaseLevel_DEPRECATED          ReleaseLevel = 4
)

func (ReleaseLevel) EnumDescriptor

func (ReleaseLevel) EnumDescriptor() ([]byte, []int)

func (ReleaseLevel) String

func (x ReleaseLevel) String() string

type ResourceNameMessageConfigProto

type ResourceNameMessageConfigProto struct {
	// The simple name of the message.
	MessageName string `protobuf:"bytes,1,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
	// A list of field simple names and corresponding entity names, as defined in
	// the collection configs.
	FieldEntityMap       map[string]string `` /* 193-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

`ResourceNameMessageConfigProto` specifies the fields of a message that support a resource name type.

func (*ResourceNameMessageConfigProto) Descriptor

func (*ResourceNameMessageConfigProto) Descriptor() ([]byte, []int)

func (*ResourceNameMessageConfigProto) GetFieldEntityMap

func (m *ResourceNameMessageConfigProto) GetFieldEntityMap() map[string]string

func (*ResourceNameMessageConfigProto) GetMessageName

func (m *ResourceNameMessageConfigProto) GetMessageName() string

func (*ResourceNameMessageConfigProto) ProtoMessage

func (*ResourceNameMessageConfigProto) ProtoMessage()

func (*ResourceNameMessageConfigProto) Reset

func (m *ResourceNameMessageConfigProto) Reset()

func (*ResourceNameMessageConfigProto) String

func (*ResourceNameMessageConfigProto) XXX_DiscardUnknown

func (m *ResourceNameMessageConfigProto) XXX_DiscardUnknown()

func (*ResourceNameMessageConfigProto) XXX_Marshal

func (m *ResourceNameMessageConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceNameMessageConfigProto) XXX_Merge

func (m *ResourceNameMessageConfigProto) XXX_Merge(src proto.Message)

func (*ResourceNameMessageConfigProto) XXX_Size

func (m *ResourceNameMessageConfigProto) XXX_Size() int

func (*ResourceNameMessageConfigProto) XXX_Unmarshal

func (m *ResourceNameMessageConfigProto) XXX_Unmarshal(b []byte) error

type ResourceNameTreatment

type ResourceNameTreatment int32

The ResourceNameTreatment enum can be used to specify how to treat the resource name formats defined in the field_name_patterns and response_field_name_patterns fields. UNSET: default value NONE: the collection configs will not be used by the generated code. VALIDATE: string fields will be validated by the client against the specified resource name formats. STATIC_TYPES: the client will use generated types for resource names. SAMPLE_ONLY: the generated types for resource names will only be used in samples.

const (
	ResourceNameTreatment_UNSET_TREATMENT ResourceNameTreatment = 0
	ResourceNameTreatment_NONE            ResourceNameTreatment = 1
	ResourceNameTreatment_VALIDATE        ResourceNameTreatment = 2
	ResourceNameTreatment_STATIC_TYPES    ResourceNameTreatment = 3
	ResourceNameTreatment_SAMPLE_ONLY     ResourceNameTreatment = 4
)

func (ResourceNameTreatment) EnumDescriptor

func (ResourceNameTreatment) EnumDescriptor() ([]byte, []int)

func (ResourceNameTreatment) String

func (x ResourceNameTreatment) String() string

type RetryCodesDefinitionProto

type RetryCodesDefinitionProto struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	RetryCodes           []string `protobuf:"bytes,2,rep,name=retry_codes,json=retryCodes,proto3" json:"retry_codes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`RetryConfigDefinitionProto` specifies, by name, GRPC codes that a method should consider retryable.

func (*RetryCodesDefinitionProto) Descriptor

func (*RetryCodesDefinitionProto) Descriptor() ([]byte, []int)

func (*RetryCodesDefinitionProto) GetName

func (m *RetryCodesDefinitionProto) GetName() string

func (*RetryCodesDefinitionProto) GetRetryCodes

func (m *RetryCodesDefinitionProto) GetRetryCodes() []string

func (*RetryCodesDefinitionProto) ProtoMessage

func (*RetryCodesDefinitionProto) ProtoMessage()

func (*RetryCodesDefinitionProto) Reset

func (m *RetryCodesDefinitionProto) Reset()

func (*RetryCodesDefinitionProto) String

func (m *RetryCodesDefinitionProto) String() string

func (*RetryCodesDefinitionProto) XXX_DiscardUnknown

func (m *RetryCodesDefinitionProto) XXX_DiscardUnknown()

func (*RetryCodesDefinitionProto) XXX_Marshal

func (m *RetryCodesDefinitionProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RetryCodesDefinitionProto) XXX_Merge

func (m *RetryCodesDefinitionProto) XXX_Merge(src proto.Message)

func (*RetryCodesDefinitionProto) XXX_Size

func (m *RetryCodesDefinitionProto) XXX_Size() int

func (*RetryCodesDefinitionProto) XXX_Unmarshal

func (m *RetryCodesDefinitionProto) XXX_Unmarshal(b []byte) error

type RetryParamsDefinitionProto

type RetryParamsDefinitionProto struct {
	Name                    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	InitialRetryDelayMillis uint64   `` /* 135-byte string literal not displayed */
	RetryDelayMultiplier    float64  `protobuf:"fixed64,3,opt,name=retry_delay_multiplier,json=retryDelayMultiplier,proto3" json:"retry_delay_multiplier,omitempty"`
	MaxRetryDelayMillis     uint64   `protobuf:"varint,4,opt,name=max_retry_delay_millis,json=maxRetryDelayMillis,proto3" json:"max_retry_delay_millis,omitempty"`
	InitialRpcTimeoutMillis uint64   `` /* 135-byte string literal not displayed */
	RpcTimeoutMultiplier    float64  `protobuf:"fixed64,6,opt,name=rpc_timeout_multiplier,json=rpcTimeoutMultiplier,proto3" json:"rpc_timeout_multiplier,omitempty"`
	MaxRpcTimeoutMillis     uint64   `protobuf:"varint,7,opt,name=max_rpc_timeout_millis,json=maxRpcTimeoutMillis,proto3" json:"max_rpc_timeout_millis,omitempty"`
	TotalTimeoutMillis      uint64   `protobuf:"varint,8,opt,name=total_timeout_millis,json=totalTimeoutMillis,proto3" json:"total_timeout_millis,omitempty"`
	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
	XXX_unrecognized        []byte   `json:"-"`
	XXX_sizecache           int32    `json:"-"`
}

`RetryParamsDefinitionProto` specifies, by name, the backoff behavior of a method when retrying.

func (*RetryParamsDefinitionProto) Descriptor

func (*RetryParamsDefinitionProto) Descriptor() ([]byte, []int)

func (*RetryParamsDefinitionProto) GetInitialRetryDelayMillis

func (m *RetryParamsDefinitionProto) GetInitialRetryDelayMillis() uint64

func (*RetryParamsDefinitionProto) GetInitialRpcTimeoutMillis

func (m *RetryParamsDefinitionProto) GetInitialRpcTimeoutMillis() uint64

func (*RetryParamsDefinitionProto) GetMaxRetryDelayMillis

func (m *RetryParamsDefinitionProto) GetMaxRetryDelayMillis() uint64

func (*RetryParamsDefinitionProto) GetMaxRpcTimeoutMillis

func (m *RetryParamsDefinitionProto) GetMaxRpcTimeoutMillis() uint64

func (*RetryParamsDefinitionProto) GetName

func (m *RetryParamsDefinitionProto) GetName() string

func (*RetryParamsDefinitionProto) GetRetryDelayMultiplier

func (m *RetryParamsDefinitionProto) GetRetryDelayMultiplier() float64

func (*RetryParamsDefinitionProto) GetRpcTimeoutMultiplier

func (m *RetryParamsDefinitionProto) GetRpcTimeoutMultiplier() float64

func (*RetryParamsDefinitionProto) GetTotalTimeoutMillis

func (m *RetryParamsDefinitionProto) GetTotalTimeoutMillis() uint64

func (*RetryParamsDefinitionProto) ProtoMessage

func (*RetryParamsDefinitionProto) ProtoMessage()

func (*RetryParamsDefinitionProto) Reset

func (m *RetryParamsDefinitionProto) Reset()

func (*RetryParamsDefinitionProto) String

func (m *RetryParamsDefinitionProto) String() string

func (*RetryParamsDefinitionProto) XXX_DiscardUnknown

func (m *RetryParamsDefinitionProto) XXX_DiscardUnknown()

func (*RetryParamsDefinitionProto) XXX_Marshal

func (m *RetryParamsDefinitionProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RetryParamsDefinitionProto) XXX_Merge

func (m *RetryParamsDefinitionProto) XXX_Merge(src proto.Message)

func (*RetryParamsDefinitionProto) XXX_Size

func (m *RetryParamsDefinitionProto) XXX_Size() int

func (*RetryParamsDefinitionProto) XXX_Unmarshal

func (m *RetryParamsDefinitionProto) XXX_Unmarshal(b []byte) error

type SampleConfiguration

type SampleConfiguration struct {
	// The configuration for in-code samples, which appear in the format
	// and location idiomatic to each generated language. The various
	// in-code samples will be presented in the order in which they are
	// configured here. If this field is not specified, one in-code
	// sample will be produced for this method.
	InCode []*SampleConfiguration_SampleTypeConfiguration `protobuf:"bytes,1,rep,name=in_code,json=inCode,proto3" json:"in_code,omitempty"`
	// The configuration for stand-alone, runnable samples in each
	// generated language. If this field is not specified, a stand-alone
	// sample is generated for every combination of calling form and
	// `MethodConfigProto.sample_value_sets`, if the latter is defined.
	//
	// If multiple samples configured here would result in files
	// clobbering each other (ie. two files with the same path but not
	// with identical calling forms, value sets, and region tags), an
	// exception is raised.
	Standalone []*SampleConfiguration_SampleTypeConfiguration `protobuf:"bytes,2,rep,name=standalone,proto3" json:"standalone,omitempty"`
	// The configuration for user-parametrized samples ("API explorer
	// samples") that can be displayed in, for example, an interactive
	// UI. The various explorer samples will be presented in the order
	// in which they are configured here. If this field is not
	// specified, an explorer sample is generated for every combination
	// of calling form and `MethodConfigProto.sample_value_sets`, if the
	// latter is defined.
	//
	// If multiple samples configured here would result in files
	// clobbering each other (ie. two files with the same path but not
	// with identical calling forms, value sets, and region tags), an
	// exception is raised.
	ApiExplorer          []*SampleConfiguration_SampleTypeConfiguration `protobuf:"bytes,3,rep,name=api_explorer,json=apiExplorer,proto3" json:"api_explorer,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                       `json:"-"`
	XXX_unrecognized     []byte                                         `json:"-"`
	XXX_sizecache        int32                                          `json:"-"`
}

`SampleConfiguration` defines combinations of "calling forms" (sample code structures as output by the client library generator) and sample value sets that should be combined to generate samples.

func (*SampleConfiguration) Descriptor

func (*SampleConfiguration) Descriptor() ([]byte, []int)

func (*SampleConfiguration) GetApiExplorer

func (*SampleConfiguration) GetInCode

func (*SampleConfiguration) GetStandalone

func (*SampleConfiguration) ProtoMessage

func (*SampleConfiguration) ProtoMessage()

func (*SampleConfiguration) Reset

func (m *SampleConfiguration) Reset()

func (*SampleConfiguration) String

func (m *SampleConfiguration) String() string

func (*SampleConfiguration) XXX_DiscardUnknown

func (m *SampleConfiguration) XXX_DiscardUnknown()

func (*SampleConfiguration) XXX_Marshal

func (m *SampleConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SampleConfiguration) XXX_Merge

func (m *SampleConfiguration) XXX_Merge(src proto.Message)

func (*SampleConfiguration) XXX_Size

func (m *SampleConfiguration) XXX_Size() int

func (*SampleConfiguration) XXX_Unmarshal

func (m *SampleConfiguration) XXX_Unmarshal(b []byte) error

type SampleConfiguration_SampleTypeConfiguration

type SampleConfiguration_SampleTypeConfiguration struct {
	// One or more expressions matching the method calling forms
	// (defined by the client generator) applicable to this
	// method. Any expressions that do not match a calling form in a
	// particular language are ignored for that language. If not
	// specified, samples are generated for all such forms.
	//
	// An expression matches an ID if the sequence of characters in
	// the expression before the first "*", if any, match the initial
	// sequence of characters in the ID. This allows for prefix
	// matching. In particular, the expression "*" will
	// match all IDs.
	//
	// TODO(vchudnov-g): Point to a reference listing the possible calling forms
	// for each method type.
	CallingForms []string `protobuf:"bytes,1,rep,name=calling_forms,json=callingForms,proto3" json:"calling_forms,omitempty"`
	// One or more expressions matching the
	// `MethodConfigProto.sample_value_sets.id`s defined for this
	// method. Any expressions on this list that do not match a
	// `SampleValueSet.id` cause a fatal error during code
	// generation. If not specified or if empty, no samples of this
	// type will be generated.
	//
	// An expression matches an ID if the sequence of characters in
	// the expression before the first "*", if any, match the initial
	// sequence of characters in the ID. This allows for prefix
	// matching. In particular, the expression "*" will
	// match all IDs.
	ValueSets []string `protobuf:"bytes,2,rep,name=value_sets,json=valueSets,proto3" json:"value_sets,omitempty"`
	// The region tag value to be used inside each of these particular
	// samples to bracket off (in language-specific comments)
	// important areas of the sample. A region tag value can only
	// consist of word characters (letters, numbers, or underscores)
	// as well as the special tokens "%m", "%c", and "%v" (no quotes)
	// which get replaced by each sample's method name, calling form,
	// and value set, respectively. If not specified, `region_tag`
	// defaults to "sample".
	RegionTag            string   `protobuf:"bytes,3,opt,name=region_tag,json=regionTag,proto3" json:"region_tag,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`SampleTypeConfiguration` defines the samples that will show up as a particular sample type. If order matters for this sample type, the order of the samples is taken to be primarily the order in which the `calling_forms` appear, and secondarily, for each such form, the order in which the `value_sets` appear.

func (*SampleConfiguration_SampleTypeConfiguration) Descriptor

func (*SampleConfiguration_SampleTypeConfiguration) GetCallingForms

func (m *SampleConfiguration_SampleTypeConfiguration) GetCallingForms() []string

func (*SampleConfiguration_SampleTypeConfiguration) GetRegionTag

func (*SampleConfiguration_SampleTypeConfiguration) GetValueSets

func (*SampleConfiguration_SampleTypeConfiguration) ProtoMessage

func (*SampleConfiguration_SampleTypeConfiguration) Reset

func (*SampleConfiguration_SampleTypeConfiguration) String

func (*SampleConfiguration_SampleTypeConfiguration) XXX_DiscardUnknown

func (m *SampleConfiguration_SampleTypeConfiguration) XXX_DiscardUnknown()

func (*SampleConfiguration_SampleTypeConfiguration) XXX_Marshal

func (m *SampleConfiguration_SampleTypeConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SampleConfiguration_SampleTypeConfiguration) XXX_Merge

func (*SampleConfiguration_SampleTypeConfiguration) XXX_Size

func (*SampleConfiguration_SampleTypeConfiguration) XXX_Unmarshal

type SampleInitAttribute

type SampleInitAttribute struct {
	// Required. The part of the request object this attribute is talking about.
	Parameter string `protobuf:"bytes,1,opt,name=parameter,proto3" json:"parameter,omitempty"`
	// In a sample, the call to client lib method is itself in a function.
	// If `sample_argument_name` is not empty, the part of the request object specified by `path`
	// should be accepted as a parameter, with the given name, to the sample function.
	SampleArgumentName string `protobuf:"bytes,2,opt,name=sample_argument_name,json=sampleArgumentName,proto3" json:"sample_argument_name,omitempty"`
	// If `read_file` is true, then during sample initialization, the value of this
	// attribute gets replaced by the contents of the local file with the given name.
	// This is only allowed when this parameter is a bytes field.
	// If this parameter is required or optional, the original value of this parameter
	// is the file name.
	// If this parameter is repeated, the original value of this parameter is a list of
	// comma-separated list of file names.
	ReadFile bool `protobuf:"varint,3,opt,name=read_file,json=readFile,proto3" json:"read_file,omitempty"`
	// The description of the parameter passed to the sample function.
	// Should only be specified when `sample_argument_name` is specified.
	Description          string   `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`SampleInitAttribute` controls how a sample initializes the request object.

func (*SampleInitAttribute) Descriptor

func (*SampleInitAttribute) Descriptor() ([]byte, []int)

func (*SampleInitAttribute) GetDescription

func (m *SampleInitAttribute) GetDescription() string

func (*SampleInitAttribute) GetParameter

func (m *SampleInitAttribute) GetParameter() string

func (*SampleInitAttribute) GetReadFile

func (m *SampleInitAttribute) GetReadFile() bool

func (*SampleInitAttribute) GetSampleArgumentName

func (m *SampleInitAttribute) GetSampleArgumentName() string

func (*SampleInitAttribute) ProtoMessage

func (*SampleInitAttribute) ProtoMessage()

func (*SampleInitAttribute) Reset

func (m *SampleInitAttribute) Reset()

func (*SampleInitAttribute) String

func (m *SampleInitAttribute) String() string

func (*SampleInitAttribute) XXX_DiscardUnknown

func (m *SampleInitAttribute) XXX_DiscardUnknown()

func (*SampleInitAttribute) XXX_Marshal

func (m *SampleInitAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SampleInitAttribute) XXX_Merge

func (m *SampleInitAttribute) XXX_Merge(src proto.Message)

func (*SampleInitAttribute) XXX_Size

func (m *SampleInitAttribute) XXX_Size() int

func (*SampleInitAttribute) XXX_Unmarshal

func (m *SampleInitAttribute) XXX_Unmarshal(b []byte) error

type SampleParameters

type SampleParameters struct {
	// A set of default values to be used together in samples. Each
	// member of can be specified in one of two formats:
	// * `DOTTED.RESOURCE.NAME=VALUE`, to specify the entire value of
	//   `NAME`.  If `VALUE` is not specified, it is treated as the
	//    default zero value for `NAME`'s type.
	// * `DOTTED.RESOURCE.NAME%FIELD=VALUE`, if `NAME` is required to be
	//   a specially formatted string using `FIELD` as one of possibly
	//   several placeholders.
	Defaults []string `protobuf:"bytes,1,rep,name=defaults,proto3" json:"defaults,omitempty"`
	// Attributes governing how to init request object.
	// Each attribute must have unique, non-overlapping, path.
	Attributes           []*SampleInitAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

`SampleInitAttribute` controls request object initialization.

func (*SampleParameters) Descriptor

func (*SampleParameters) Descriptor() ([]byte, []int)

func (*SampleParameters) GetAttributes

func (m *SampleParameters) GetAttributes() []*SampleInitAttribute

func (*SampleParameters) GetDefaults

func (m *SampleParameters) GetDefaults() []string

func (*SampleParameters) ProtoMessage

func (*SampleParameters) ProtoMessage()

func (*SampleParameters) Reset

func (m *SampleParameters) Reset()

func (*SampleParameters) String

func (m *SampleParameters) String() string

func (*SampleParameters) XXX_DiscardUnknown

func (m *SampleParameters) XXX_DiscardUnknown()

func (*SampleParameters) XXX_Marshal

func (m *SampleParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SampleParameters) XXX_Merge

func (m *SampleParameters) XXX_Merge(src proto.Message)

func (*SampleParameters) XXX_Size

func (m *SampleParameters) XXX_Size() int

func (*SampleParameters) XXX_Unmarshal

func (m *SampleParameters) XXX_Unmarshal(b []byte) error

type SampleValueSet

type SampleValueSet struct {
	// An identifier, unique to a particular API method, for this set of
	// values.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// A short, user-visible name for this set of values. This name may
	// be used in a UI menu, for example.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// A longer description for this set of values. This may be
	// used in the sample itself or in a UI element such as hoverbox.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// How to initialize the request object for the RPC.
	Parameters *SampleParameters `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// How to process a successful response from the client library
	// function being exemplified.
	OnSuccess            []*OutputSpec `protobuf:"bytes,5,rep,name=on_success,json=onSuccess,proto3" json:"on_success,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

`SampleValueSet` defines a set of parameter values used in generating samples.

func (*SampleValueSet) Descriptor

func (*SampleValueSet) Descriptor() ([]byte, []int)

func (*SampleValueSet) GetDescription

func (m *SampleValueSet) GetDescription() string

func (*SampleValueSet) GetId

func (m *SampleValueSet) GetId() string

func (*SampleValueSet) GetOnSuccess

func (m *SampleValueSet) GetOnSuccess() []*OutputSpec

func (*SampleValueSet) GetParameters

func (m *SampleValueSet) GetParameters() *SampleParameters

func (*SampleValueSet) GetTitle

func (m *SampleValueSet) GetTitle() string

func (*SampleValueSet) ProtoMessage

func (*SampleValueSet) ProtoMessage()

func (*SampleValueSet) Reset

func (m *SampleValueSet) Reset()

func (*SampleValueSet) String

func (m *SampleValueSet) String() string

func (*SampleValueSet) XXX_DiscardUnknown

func (m *SampleValueSet) XXX_DiscardUnknown()

func (*SampleValueSet) XXX_Marshal

func (m *SampleValueSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SampleValueSet) XXX_Merge

func (m *SampleValueSet) XXX_Merge(src proto.Message)

func (*SampleValueSet) XXX_Size

func (m *SampleValueSet) XXX_Size() int

func (*SampleValueSet) XXX_Unmarshal

func (m *SampleValueSet) XXX_Unmarshal(b []byte) error

type SmokeTestConfigProto

type SmokeTestConfigProto struct {
	// The name of the method used in the smoke test.
	// There must be a flattening defined in that method, and that
	// flattened method will be used as the one to generate a smoke test on.
	Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	// A list describing the name and the value of the init fields.
	InitFields           []string `protobuf:"bytes,2,rep,name=init_fields,json=initFields,proto3" json:"init_fields,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SmokeTestConfigProto) Descriptor

func (*SmokeTestConfigProto) Descriptor() ([]byte, []int)

func (*SmokeTestConfigProto) GetInitFields

func (m *SmokeTestConfigProto) GetInitFields() []string

func (*SmokeTestConfigProto) GetMethod

func (m *SmokeTestConfigProto) GetMethod() string

func (*SmokeTestConfigProto) ProtoMessage

func (*SmokeTestConfigProto) ProtoMessage()

func (*SmokeTestConfigProto) Reset

func (m *SmokeTestConfigProto) Reset()

func (*SmokeTestConfigProto) String

func (m *SmokeTestConfigProto) String() string

func (*SmokeTestConfigProto) XXX_DiscardUnknown

func (m *SmokeTestConfigProto) XXX_DiscardUnknown()

func (*SmokeTestConfigProto) XXX_Marshal

func (m *SmokeTestConfigProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SmokeTestConfigProto) XXX_Merge

func (m *SmokeTestConfigProto) XXX_Merge(src proto.Message)

func (*SmokeTestConfigProto) XXX_Size

func (m *SmokeTestConfigProto) XXX_Size() int

func (*SmokeTestConfigProto) XXX_Unmarshal

func (m *SmokeTestConfigProto) XXX_Unmarshal(b []byte) error

type SurfaceTreatmentProto

type SurfaceTreatmentProto struct {
	// The languages affected by this treatment.
	IncludeLanguages []string `protobuf:"bytes,1,rep,name=include_languages,json=includeLanguages,proto3" json:"include_languages,omitempty"`
	// The visibility of the surface.
	Visibility VisibilityProto `protobuf:"varint,2,opt,name=visibility,proto3,enum=com.google.api.codegen.VisibilityProto" json:"visibility,omitempty"`
	// Whether the method is deprecated.
	ReleaseLevel         ReleaseLevel `` /* 139-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

SurfaceTreatmentProto describes treatments to the code generation that are expected to be different for each language.

func (*SurfaceTreatmentProto) Descriptor

func (*SurfaceTreatmentProto) Descriptor() ([]byte, []int)

func (*SurfaceTreatmentProto) GetIncludeLanguages

func (m *SurfaceTreatmentProto) GetIncludeLanguages() []string

func (*SurfaceTreatmentProto) GetReleaseLevel

func (m *SurfaceTreatmentProto) GetReleaseLevel() ReleaseLevel

func (*SurfaceTreatmentProto) GetVisibility

func (m *SurfaceTreatmentProto) GetVisibility() VisibilityProto

func (*SurfaceTreatmentProto) ProtoMessage

func (*SurfaceTreatmentProto) ProtoMessage()

func (*SurfaceTreatmentProto) Reset

func (m *SurfaceTreatmentProto) Reset()

func (*SurfaceTreatmentProto) String

func (m *SurfaceTreatmentProto) String() string

func (*SurfaceTreatmentProto) XXX_DiscardUnknown

func (m *SurfaceTreatmentProto) XXX_DiscardUnknown()

func (*SurfaceTreatmentProto) XXX_Marshal

func (m *SurfaceTreatmentProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SurfaceTreatmentProto) XXX_Merge

func (m *SurfaceTreatmentProto) XXX_Merge(src proto.Message)

func (*SurfaceTreatmentProto) XXX_Size

func (m *SurfaceTreatmentProto) XXX_Size() int

func (*SurfaceTreatmentProto) XXX_Unmarshal

func (m *SurfaceTreatmentProto) XXX_Unmarshal(b []byte) error

type VisibilityProto

type VisibilityProto int32
const (
	VisibilityProto_UNSET_VISIBILITY VisibilityProto = 0
	VisibilityProto_PUBLIC           VisibilityProto = 1
	VisibilityProto_PACKAGE          VisibilityProto = 2
	VisibilityProto_PRIVATE          VisibilityProto = 3
	VisibilityProto_DISABLED         VisibilityProto = 4
)

func (VisibilityProto) EnumDescriptor

func (VisibilityProto) EnumDescriptor() ([]byte, []int)

func (VisibilityProto) String

func (x VisibilityProto) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL