Skip to content

Latest commit

 

History

History
56 lines (31 loc) · 2.78 KB

BufAny.md

File metadata and controls

56 lines (31 loc) · 2.78 KB

BufAny

Properties

Name Type Description Notes
Type Pointer to string A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one "/" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading "." is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. [optional]

Methods

NewBufAny

func NewBufAny() *BufAny

NewBufAny instantiates a new BufAny object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewBufAnyWithDefaults

func NewBufAnyWithDefaults() *BufAny

NewBufAnyWithDefaults instantiates a new BufAny object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetType

func (o *BufAny) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *BufAny) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetType

func (o *BufAny) SetType(v string)

SetType sets Type field to given value.

HasType

func (o *BufAny) HasType() bool

HasType returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]