asset

package
v0.0.0-...-c66870c Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContentType_name = map[int32]string{
	0: "CONTENT_TYPE_UNSPECIFIED",
	1: "RESOURCE",
	2: "IAM_POLICY",
}
View Source
var ContentType_value = map[string]int32{
	"CONTENT_TYPE_UNSPECIFIED": 0,
	"RESOURCE":                 1,
	"IAM_POLICY":               2,
}

Functions

func RegisterAssetServiceServer

func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer)

Types

type Asset

type Asset struct {
	// The full name of the asset. See:
	// https://cloud.google.com/apis/design/resource_names#full_resource_name
	// Example:
	// "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Type of the asset. Example: "google.compute.disk".
	AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
	// Representation of the resource.
	Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	// Representation of the actual IAM policy set on a cloud resource. For each
	// resource, there must be at most one IAM policy set on it.
	IamPolicy            *v1.Policy `protobuf:"bytes,4,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Cloud asset. This include all Google Cloud Platform resources, as well as IAM policies and other non-GCP assets.

func (*Asset) Descriptor

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

func (*Asset) GetAssetType

func (m *Asset) GetAssetType() string

func (*Asset) GetIamPolicy

func (m *Asset) GetIamPolicy() *v1.Policy

func (*Asset) GetName

func (m *Asset) GetName() string

func (*Asset) GetResource

func (m *Asset) GetResource() *Resource

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) Reset

func (m *Asset) Reset()

func (*Asset) String

func (m *Asset) String() string

func (*Asset) XXX_DiscardUnknown

func (m *Asset) XXX_DiscardUnknown()

func (*Asset) XXX_Marshal

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

func (*Asset) XXX_Merge

func (dst *Asset) XXX_Merge(src proto.Message)

func (*Asset) XXX_Size

func (m *Asset) XXX_Size() int

func (*Asset) XXX_Unmarshal

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

type AssetServiceClient

type AssetServiceClient interface {
	// Exports assets with time and resource types to a given Google Cloud Storage
	// location. The output format is newline delimited JSON.
	// This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing users
	// to keep track of the export.
	ExportAssets(ctx context.Context, in *ExportAssetsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Batch gets assets update history that overlaps a time window.
	// For RESOURCE content, this API outputs history with asset in both
	// non-delete or deleted status.
	// For IAM_POLICY content, this API only outputs history when asset and its
	// attached IAM POLICY both exist. So there may be gaps in the output history.
	BatchGetAssetsHistory(ctx context.Context, in *BatchGetAssetsHistoryRequest, opts ...grpc.CallOption) (*BatchGetAssetsHistoryResponse, error)
}

AssetServiceClient is the client API for AssetService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAssetServiceClient

func NewAssetServiceClient(cc *grpc.ClientConn) AssetServiceClient

type AssetServiceServer

type AssetServiceServer interface {
	// Exports assets with time and resource types to a given Google Cloud Storage
	// location. The output format is newline delimited JSON.
	// This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing users
	// to keep track of the export.
	ExportAssets(context.Context, *ExportAssetsRequest) (*longrunning.Operation, error)
	// Batch gets assets update history that overlaps a time window.
	// For RESOURCE content, this API outputs history with asset in both
	// non-delete or deleted status.
	// For IAM_POLICY content, this API only outputs history when asset and its
	// attached IAM POLICY both exist. So there may be gaps in the output history.
	BatchGetAssetsHistory(context.Context, *BatchGetAssetsHistoryRequest) (*BatchGetAssetsHistoryResponse, error)
}

AssetServiceServer is the server API for AssetService service.

type BatchGetAssetsHistoryRequest

type BatchGetAssetsHistoryRequest struct {
	// Required. The relative name of the root asset. It can only be an
	// organization ID (e.g. "organizations/123") or a project ID
	// (e.g. "projects/12345").
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// A list of the full names of the assets. See:
	// https://cloud.google.com/apis/design/resource_names#full_resource_name
	// Example:
	// "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
	//
	// The request becomes a no-op if the asset name list is empty.
	AssetNames []string `protobuf:"bytes,2,rep,name=asset_names,json=assetNames,proto3" json:"asset_names,omitempty"`
	// Required. The content type.
	ContentType ContentType `` /* 139-byte string literal not displayed */
	// Required. The time window for the asset history. The returned results
	// contain all temporal assets whose time window overlap with
	// read_time_window.
	ReadTimeWindow       *TimeWindow `protobuf:"bytes,4,opt,name=read_time_window,json=readTimeWindow,proto3" json:"read_time_window,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Batch get assets history request.

func (*BatchGetAssetsHistoryRequest) Descriptor

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

func (*BatchGetAssetsHistoryRequest) GetAssetNames

func (m *BatchGetAssetsHistoryRequest) GetAssetNames() []string

func (*BatchGetAssetsHistoryRequest) GetContentType

func (m *BatchGetAssetsHistoryRequest) GetContentType() ContentType

func (*BatchGetAssetsHistoryRequest) GetParent

func (m *BatchGetAssetsHistoryRequest) GetParent() string

func (*BatchGetAssetsHistoryRequest) GetReadTimeWindow

func (m *BatchGetAssetsHistoryRequest) GetReadTimeWindow() *TimeWindow

func (*BatchGetAssetsHistoryRequest) ProtoMessage

func (*BatchGetAssetsHistoryRequest) ProtoMessage()

func (*BatchGetAssetsHistoryRequest) Reset

func (m *BatchGetAssetsHistoryRequest) Reset()

func (*BatchGetAssetsHistoryRequest) String

func (*BatchGetAssetsHistoryRequest) XXX_DiscardUnknown

func (m *BatchGetAssetsHistoryRequest) XXX_DiscardUnknown()

func (*BatchGetAssetsHistoryRequest) XXX_Marshal

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

func (*BatchGetAssetsHistoryRequest) XXX_Merge

func (dst *BatchGetAssetsHistoryRequest) XXX_Merge(src proto.Message)

func (*BatchGetAssetsHistoryRequest) XXX_Size

func (m *BatchGetAssetsHistoryRequest) XXX_Size() int

func (*BatchGetAssetsHistoryRequest) XXX_Unmarshal

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

type BatchGetAssetsHistoryResponse

type BatchGetAssetsHistoryResponse struct {
	// A list of assets with valid time windows.
	Assets               []*TemporalAsset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Batch get assets history response.

func (*BatchGetAssetsHistoryResponse) Descriptor

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

func (*BatchGetAssetsHistoryResponse) GetAssets

func (m *BatchGetAssetsHistoryResponse) GetAssets() []*TemporalAsset

func (*BatchGetAssetsHistoryResponse) ProtoMessage

func (*BatchGetAssetsHistoryResponse) ProtoMessage()

func (*BatchGetAssetsHistoryResponse) Reset

func (m *BatchGetAssetsHistoryResponse) Reset()

func (*BatchGetAssetsHistoryResponse) String

func (*BatchGetAssetsHistoryResponse) XXX_DiscardUnknown

func (m *BatchGetAssetsHistoryResponse) XXX_DiscardUnknown()

func (*BatchGetAssetsHistoryResponse) XXX_Marshal

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

func (*BatchGetAssetsHistoryResponse) XXX_Merge

func (dst *BatchGetAssetsHistoryResponse) XXX_Merge(src proto.Message)

func (*BatchGetAssetsHistoryResponse) XXX_Size

func (m *BatchGetAssetsHistoryResponse) XXX_Size() int

func (*BatchGetAssetsHistoryResponse) XXX_Unmarshal

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

type ContentType

type ContentType int32

Asset content type.

const (
	// Unspecified content type.
	ContentType_CONTENT_TYPE_UNSPECIFIED ContentType = 0
	// Resource metadata.
	ContentType_RESOURCE ContentType = 1
	// The actual IAM policy set on a resource.
	ContentType_IAM_POLICY ContentType = 2
)

func (ContentType) EnumDescriptor

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

func (ContentType) String

func (x ContentType) String() string

type ExportAssetsRequest

type ExportAssetsRequest struct {
	// Required. The relative name of the root asset. It can only be an
	// organization number (e.g. "organizations/123") or a project number
	// (e.g. "projects/12345").
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Timestamp to take an asset snapshot. This can only be current or past
	// time. If not specified, the current time will be used. Due to delays in
	// resource data collection and indexing, there is a volatile window during
	// which running the same query may get different results.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// A list of asset types to take a snapshot for. Example:
	// "google.compute.disk". If specified, only matching assets will be returned.
	AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
	// A list of asset content types. If specified, only matching content will be
	// returned. Otherwise, no content but the asset name will be returned.
	ContentTypes []ContentType `` /* 149-byte string literal not displayed */
	// Required. Output configuration indicating where the results will be output
	// to. All results will be in newline delimited JSON format.
	OutputConfig         *OutputConfig `protobuf:"bytes,5,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Export asset request.

func (*ExportAssetsRequest) Descriptor

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

func (*ExportAssetsRequest) GetAssetTypes

func (m *ExportAssetsRequest) GetAssetTypes() []string

func (*ExportAssetsRequest) GetContentTypes

func (m *ExportAssetsRequest) GetContentTypes() []ContentType

func (*ExportAssetsRequest) GetOutputConfig

func (m *ExportAssetsRequest) GetOutputConfig() *OutputConfig

func (*ExportAssetsRequest) GetParent

func (m *ExportAssetsRequest) GetParent() string

func (*ExportAssetsRequest) GetReadTime

func (m *ExportAssetsRequest) GetReadTime() *timestamp.Timestamp

func (*ExportAssetsRequest) ProtoMessage

func (*ExportAssetsRequest) ProtoMessage()

func (*ExportAssetsRequest) Reset

func (m *ExportAssetsRequest) Reset()

func (*ExportAssetsRequest) String

func (m *ExportAssetsRequest) String() string

func (*ExportAssetsRequest) XXX_DiscardUnknown

func (m *ExportAssetsRequest) XXX_DiscardUnknown()

func (*ExportAssetsRequest) XXX_Marshal

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

func (*ExportAssetsRequest) XXX_Merge

func (dst *ExportAssetsRequest) XXX_Merge(src proto.Message)

func (*ExportAssetsRequest) XXX_Size

func (m *ExportAssetsRequest) XXX_Size() int

func (*ExportAssetsRequest) XXX_Unmarshal

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

type ExportAssetsResponse

type ExportAssetsResponse struct {
	// Required. Time the snapshot was taken.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// Required. Output configuration indicating where the results were output to.
	// All results are in JSON format.
	OutputConfig         *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

The export asset response. This message is returned by the [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned [google.longrunning.Operation.response][google.longrunning.Operation.response] field.

func (*ExportAssetsResponse) Descriptor

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

func (*ExportAssetsResponse) GetOutputConfig

func (m *ExportAssetsResponse) GetOutputConfig() *OutputConfig

func (*ExportAssetsResponse) GetReadTime

func (m *ExportAssetsResponse) GetReadTime() *timestamp.Timestamp

func (*ExportAssetsResponse) ProtoMessage

func (*ExportAssetsResponse) ProtoMessage()

func (*ExportAssetsResponse) Reset

func (m *ExportAssetsResponse) Reset()

func (*ExportAssetsResponse) String

func (m *ExportAssetsResponse) String() string

func (*ExportAssetsResponse) XXX_DiscardUnknown

func (m *ExportAssetsResponse) XXX_DiscardUnknown()

func (*ExportAssetsResponse) XXX_Marshal

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

func (*ExportAssetsResponse) XXX_Merge

func (dst *ExportAssetsResponse) XXX_Merge(src proto.Message)

func (*ExportAssetsResponse) XXX_Size

func (m *ExportAssetsResponse) XXX_Size() int

func (*ExportAssetsResponse) XXX_Unmarshal

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

type GcsDestination

type GcsDestination struct {
	// The path of the GCS objects. It's the same path that is used by gsutil, for
	// example: "gs://bucket_name/object_path". See:
	// https://cloud.google.com/storage/docs/viewing-editing-metadata for more
	// information.
	Uri                  string   `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Google Cloud Storage (GCS) location.

func (*GcsDestination) Descriptor

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

func (*GcsDestination) GetUri

func (m *GcsDestination) GetUri() string

func (*GcsDestination) ProtoMessage

func (*GcsDestination) ProtoMessage()

func (*GcsDestination) Reset

func (m *GcsDestination) Reset()

func (*GcsDestination) String

func (m *GcsDestination) String() string

func (*GcsDestination) XXX_DiscardUnknown

func (m *GcsDestination) XXX_DiscardUnknown()

func (*GcsDestination) XXX_Marshal

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

func (*GcsDestination) XXX_Merge

func (dst *GcsDestination) XXX_Merge(src proto.Message)

func (*GcsDestination) XXX_Size

func (m *GcsDestination) XXX_Size() int

func (*GcsDestination) XXX_Unmarshal

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

type OutputConfig

type OutputConfig struct {
	// Asset export destination.
	//
	// Types that are valid to be assigned to Destination:
	//	*OutputConfig_GcsDestination
	Destination          isOutputConfig_Destination `protobuf_oneof:"destination"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Output configuration for export assets destination.

func (*OutputConfig) Descriptor

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

func (*OutputConfig) GetDestination

func (m *OutputConfig) GetDestination() isOutputConfig_Destination

func (*OutputConfig) GetGcsDestination

func (m *OutputConfig) GetGcsDestination() *GcsDestination

func (*OutputConfig) ProtoMessage

func (*OutputConfig) ProtoMessage()

func (*OutputConfig) Reset

func (m *OutputConfig) Reset()

func (*OutputConfig) String

func (m *OutputConfig) String() string

func (*OutputConfig) XXX_DiscardUnknown

func (m *OutputConfig) XXX_DiscardUnknown()

func (*OutputConfig) XXX_Marshal

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

func (*OutputConfig) XXX_Merge

func (dst *OutputConfig) XXX_Merge(src proto.Message)

func (*OutputConfig) XXX_OneofFuncs

func (*OutputConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*OutputConfig) XXX_Size

func (m *OutputConfig) XXX_Size() int

func (*OutputConfig) XXX_Unmarshal

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

type OutputConfig_GcsDestination

type OutputConfig_GcsDestination struct {
	GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}

type Resource

type Resource struct {
	// The API version. Example: "v1".
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// The URL of the discovery document containing the resource's JSON schema.
	// Example:
	// "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest".
	// It will be left unspecified for resources without a discovery-based API,
	// such as Cloud Bigtable.
	DiscoveryDocumentUri string `protobuf:"bytes,2,opt,name=discovery_document_uri,json=discoveryDocumentUri,proto3" json:"discovery_document_uri,omitempty"`
	// The JSON schema name listed in the discovery document.
	// Example: "Project". It will be left unspecified for resources (such as
	// Cloud Bigtable) without a discovery-based API.
	DiscoveryName string `protobuf:"bytes,3,opt,name=discovery_name,json=discoveryName,proto3" json:"discovery_name,omitempty"`
	// The REST URL for accessing the resource. An HTTP GET operation using this
	// URL returns the resource itself.
	// Example:
	// `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
	// It will be left unspecified for resources without a REST API.
	ResourceUrl string `protobuf:"bytes,4,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
	// The full name of the immediate parent of this resource. See:
	// https://cloud.google.com/apis/design/resource_names#full_resource_name
	//
	// For GCP assets, it is the parent resource defined in the IAM policy
	// hierarchy: https://cloud.google.com/iam/docs/overview#policy_hierarchy.
	// Example: "//cloudresourcemanager.googleapis.com/projects/my_project_123".
	//
	// For third-party assets, it is up to the users to define.
	Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"`
	// The content of the resource, in which some sensitive fields are scrubbed
	// away and may not be present.
	Data                 *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Representation of a cloud resource.

func (*Resource) Descriptor

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

func (*Resource) GetData

func (m *Resource) GetData() *_struct.Struct

func (*Resource) GetDiscoveryDocumentUri

func (m *Resource) GetDiscoveryDocumentUri() string

func (*Resource) GetDiscoveryName

func (m *Resource) GetDiscoveryName() string

func (*Resource) GetParent

func (m *Resource) GetParent() string

func (*Resource) GetResourceUrl

func (m *Resource) GetResourceUrl() string

func (*Resource) GetVersion

func (m *Resource) GetVersion() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) String

func (m *Resource) String() string

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

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

func (*Resource) XXX_Merge

func (dst *Resource) XXX_Merge(src proto.Message)

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

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

type TemporalAsset

type TemporalAsset struct {
	// The time window when the asset data and state was observed.
	Window *TimeWindow `protobuf:"bytes,1,opt,name=window,proto3" json:"window,omitempty"`
	// If the asset is deleted or not.
	Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// Asset.
	Asset                *Asset   `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Temporal asset. In addition to the asset, the temporal asset includes the status of the asset and valid from and to time of it.

func (*TemporalAsset) Descriptor

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

func (*TemporalAsset) GetAsset

func (m *TemporalAsset) GetAsset() *Asset

func (*TemporalAsset) GetDeleted

func (m *TemporalAsset) GetDeleted() bool

func (*TemporalAsset) GetWindow

func (m *TemporalAsset) GetWindow() *TimeWindow

func (*TemporalAsset) ProtoMessage

func (*TemporalAsset) ProtoMessage()

func (*TemporalAsset) Reset

func (m *TemporalAsset) Reset()

func (*TemporalAsset) String

func (m *TemporalAsset) String() string

func (*TemporalAsset) XXX_DiscardUnknown

func (m *TemporalAsset) XXX_DiscardUnknown()

func (*TemporalAsset) XXX_Marshal

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

func (*TemporalAsset) XXX_Merge

func (dst *TemporalAsset) XXX_Merge(src proto.Message)

func (*TemporalAsset) XXX_Size

func (m *TemporalAsset) XXX_Size() int

func (*TemporalAsset) XXX_Unmarshal

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

type TimeWindow

type TimeWindow struct {
	// Start time of the time window (inclusive).
	// Infinite past if not specified.
	StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// End time of the time window (exclusive).
	// Infinite future if not specified.
	EndTime              *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

A time window of [start_time, end_time).

func (*TimeWindow) Descriptor

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

func (*TimeWindow) GetEndTime

func (m *TimeWindow) GetEndTime() *timestamp.Timestamp

func (*TimeWindow) GetStartTime

func (m *TimeWindow) GetStartTime() *timestamp.Timestamp

func (*TimeWindow) ProtoMessage

func (*TimeWindow) ProtoMessage()

func (*TimeWindow) Reset

func (m *TimeWindow) Reset()

func (*TimeWindow) String

func (m *TimeWindow) String() string

func (*TimeWindow) XXX_DiscardUnknown

func (m *TimeWindow) XXX_DiscardUnknown()

func (*TimeWindow) XXX_Marshal

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

func (*TimeWindow) XXX_Merge

func (dst *TimeWindow) XXX_Merge(src proto.Message)

func (*TimeWindow) XXX_Size

func (m *TimeWindow) XXX_Size() int

func (*TimeWindow) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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