vendor: update all dependencies
This commit is contained in:
parent
940df88eb2
commit
d64789528d
4309 changed files with 1327278 additions and 1001118 deletions
263
vendor/google.golang.org/api/poly/v1/poly-gen.go
generated
vendored
263
vendor/google.golang.org/api/poly/v1/poly-gen.go
generated
vendored
|
@ -160,6 +160,15 @@ type Asset struct {
|
|||
// **not** returned by List Assets.
|
||||
License string `json:"license,omitempty"`
|
||||
|
||||
// Metadata: Application-defined opaque metadata for this asset. This
|
||||
// field is only
|
||||
// returned when querying for the signed-in user's own assets, not for
|
||||
// public
|
||||
// assets. This string is limited to 1K chars. It is up to the creator
|
||||
// of
|
||||
// the asset to define the format for this string (for example, JSON).
|
||||
Metadata string `json:"metadata,omitempty"`
|
||||
|
||||
// Name: The unique identifier for the asset in the
|
||||
// form:
|
||||
// `assets/{ASSET_ID}`.
|
||||
|
@ -226,6 +235,83 @@ func (s *Asset) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// AssetImportMessage: A message generated by the asset import process.
|
||||
type AssetImportMessage struct {
|
||||
// Code: The code associated with this message.
|
||||
//
|
||||
// Possible values:
|
||||
// "CODE_UNSPECIFIED" - Unknown error code.
|
||||
// "NO_IMPORTABLE_FILE" - The asset import did not include any file
|
||||
// that we can import (i.e. an OBJ
|
||||
// file).
|
||||
// "EMPTY_MODEL" - When generating the preview for the import, no
|
||||
// geometry was found.
|
||||
// "OBJ_PARSE_ERROR" - A problem was encountered while parsing the OBJ
|
||||
// file. The converter makes
|
||||
// a 'best effort' attempt to continue when encountering such issues.
|
||||
// In
|
||||
// some cases the resulting preview model may still be acceptable.
|
||||
// The
|
||||
// details can be found in the parse error message.
|
||||
// "EXPIRED" - The importer was not able to import the model before
|
||||
// the expiration time.
|
||||
// "IMAGE_ERROR" - The importer encountered a problem reading an image
|
||||
// file.
|
||||
// "EXTRA_FILES_WITH_ARCHIVE" - Multiple files were encountered in
|
||||
// addition to a ZIP archive. When
|
||||
// uploading an archive only one file is permitted.
|
||||
// "DEFAULT_MATERIALS" - Default materials are used in the model. This
|
||||
// means that one or more
|
||||
// faces is using default materials either because no usemtl statement
|
||||
// was
|
||||
// specified or because the requested material was not found due to
|
||||
// a
|
||||
// missing material file or bad material name. This does not cover the
|
||||
// case
|
||||
// of missing textures.
|
||||
// "FATAL_ERROR" - The importer encountered a fatal error and was
|
||||
// unable to import the
|
||||
// model.
|
||||
// "INVALID_ELEMENT_TYPE" - The import includes a file of an
|
||||
// unsupported element type. The file path
|
||||
// is specified.
|
||||
Code string `json:"code,omitempty"`
|
||||
|
||||
// FilePath: An optional file path. Only present for those error codes
|
||||
// that specify it.
|
||||
FilePath string `json:"filePath,omitempty"`
|
||||
|
||||
// ImageError: An optional image error. Only present for
|
||||
// INVALID_IMAGE_FILE.
|
||||
ImageError *ImageError `json:"imageError,omitempty"`
|
||||
|
||||
// ObjParseError: An optional OBJ parse error. Only present for
|
||||
// OBJ_PARSE_ERROR.
|
||||
ObjParseError *ObjParseError `json:"objParseError,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Code") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Code") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *AssetImportMessage) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod AssetImportMessage
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// File: Represents a file in Poly, which can be a root,
|
||||
// resource, or thumbnail file.
|
||||
type File struct {
|
||||
|
@ -366,6 +452,45 @@ func (s *FormatComplexity) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ImageError: A message resulting from reading an image file.
|
||||
type ImageError struct {
|
||||
// Code: The type of image error encountered. Optional for older image
|
||||
// errors.
|
||||
//
|
||||
// Possible values:
|
||||
// "CODE_UNSPECIFIED" - Unknown error code.
|
||||
// "INVALID_IMAGE" - We were unable to read the image file.
|
||||
// "IMAGE_TOO_BIG" - The image size is too large.
|
||||
// "WRONG_IMAGE_TYPE" - The image data does not match the expected
|
||||
// MIME type of the image.
|
||||
Code string `json:"code,omitempty"`
|
||||
|
||||
// FilePath: The file path in the import of the image that was rejected.
|
||||
FilePath string `json:"filePath,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Code") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Code") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *ImageError) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod ImageError
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ListAssetsResponse: A response message from a request to list.
|
||||
type ListAssetsResponse struct {
|
||||
// Assets: A list of assets that match the criteria specified in the
|
||||
|
@ -500,6 +625,99 @@ func (s *ListUserAssetsResponse) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ObjParseError: Details of an error resulting from parsing an OBJ file
|
||||
type ObjParseError struct {
|
||||
// Code: The type of problem found (required).
|
||||
//
|
||||
// Possible values:
|
||||
// "CODE_UNSPECIFIED" - Unknown error code.
|
||||
// "INCONSISTENT_VERTEX_REFS" - Vertex references are specified in an
|
||||
// inconsistent style for a face (e.g.
|
||||
// some vertices specify texture vertices but some don't).
|
||||
// "INVALID_COMMAND" - The command is invalid.
|
||||
// "INVALID_NUMBER" - A invalid number was specified.
|
||||
// "INVALID_VERTEX_REF" - An invalid vertex reference was specified.
|
||||
// "MISSING_GEOMETRIC_VERTEX" - A vertex reference does not specify a
|
||||
// geometric vertex.
|
||||
// "MISSING_TOKEN" - An expected token was not found.
|
||||
// "TOO_FEW_DIMENSIONS" - The vertex specified too few dimensions for
|
||||
// its usage.
|
||||
// "TOO_FEW_VERTICES" - The face specified too few vertices.
|
||||
// "TOO_MANY_DIMENSIONS" - The vertex specified too many dimensions
|
||||
// for its usage.
|
||||
// "UNSUPPORTED_COMMAND" - This command is a valid OBJ command but is
|
||||
// not supported. This error is
|
||||
// only generated for the first instance of such a command.
|
||||
// "UNUSED_TOKENS" - This line ended with unparsed token characters.
|
||||
// "VERTEX_NOT_FOUND" - The specified vertex was not found.
|
||||
// "NUMBER_OUT_OF_RANGE" - The specified number was too large or small
|
||||
// for its usage.
|
||||
// "INVALID_VALUE" - The specified parameter value was not recognized.
|
||||
// "INVALID_TEXTURE_OPTION" - The specified texture option is not
|
||||
// valid.
|
||||
// "TOO_MANY_PROBLEMS" - The maximum number of problems to report was
|
||||
// reached. Parsing continues,
|
||||
// but further problems will be ignored.
|
||||
// "MISSING_FILE_NAME" - An expected file name was not specified.
|
||||
// "FILE_NOT_FOUND" - The specified file was not found in the import.
|
||||
// "UNKNOWN_MATERIAL" - The specified material was not found in any
|
||||
// material definition in the
|
||||
// import.
|
||||
// "NO_MATERIAL_DEFINED" - Material parameters were specified before
|
||||
// the first material definition.
|
||||
// "INVALID_SMOOTHING_GROUP" - The smoothing group is not valid.
|
||||
// "MISSING_VERTEX_COLORS" - Vertex colors were specified for only
|
||||
// some vertices of a face.
|
||||
// "FILE_SUBSTITUTION" - A missing file was found at a different file
|
||||
// path.
|
||||
// "LINE_TOO_LONG" - A line in an OBJ or MTL file exceeded the maximum
|
||||
// line length.
|
||||
// "INVALID_FILE_PATH" - The file path was invalid. Only relative
|
||||
// paths are supported.
|
||||
Code string `json:"code,omitempty"`
|
||||
|
||||
// EndIndex: The ending character index at which the problem was found.
|
||||
EndIndex int64 `json:"endIndex,omitempty"`
|
||||
|
||||
// FilePath: The file path in which the problem was found.
|
||||
FilePath string `json:"filePath,omitempty"`
|
||||
|
||||
// Line: The text of the line. Note that this may be truncated if the
|
||||
// line was very
|
||||
// long. This may not include the error if it occurs after line
|
||||
// truncation.
|
||||
Line string `json:"line,omitempty"`
|
||||
|
||||
// LineNumber: Line number at which the problem was found.
|
||||
LineNumber int64 `json:"lineNumber,omitempty"`
|
||||
|
||||
// StartIndex: The starting character index at which the problem was
|
||||
// found.
|
||||
StartIndex int64 `json:"startIndex,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Code") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Code") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *ObjParseError) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod ObjParseError
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// PresentationParams: Hints for displaying the asset, based on
|
||||
// information available when the asset
|
||||
// was uploaded.
|
||||
|
@ -628,6 +846,51 @@ func (s *Quaternion) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// StartAssetImportResponse: A response message from a request to
|
||||
// list.
|
||||
// This is returned in the response field of the Operation.
|
||||
type StartAssetImportResponse struct {
|
||||
// AssetId: The id of newly created asset. If this is empty when the
|
||||
// operation is
|
||||
// complete it means the import failed. Please refer to
|
||||
// the
|
||||
// asset_import_message field to understand what went wrong.
|
||||
AssetId string `json:"assetId,omitempty"`
|
||||
|
||||
// AssetImportId: The id of the asset import.
|
||||
AssetImportId string `json:"assetImportId,omitempty"`
|
||||
|
||||
// AssetImportMessages: The message from the asset import. This will
|
||||
// contain any warnings
|
||||
// (or - in the case of failure - errors) that occurred during import.
|
||||
AssetImportMessages []*AssetImportMessage `json:"assetImportMessages,omitempty"`
|
||||
|
||||
// PublishUrl: The publish URL for the asset.
|
||||
PublishUrl string `json:"publishUrl,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AssetId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AssetId") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *StartAssetImportResponse) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod StartAssetImportResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// UserAsset: Data about the user's asset.
|
||||
type UserAsset struct {
|
||||
// Asset: An Asset.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue