genproto: google.golang.org/genproto/googleapis/cloud/asset/v1p2beta1 Index | Files

package asset

import "google.golang.org/genproto/googleapis/cloud/asset/v1p2beta1"

Index

Package Files

asset_service.pb.go assets.pb.go

Variables

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

Enum value maps for ContentType.

var File_google_cloud_asset_v1p2beta1_asset_service_proto protoreflect.FileDescriptor
var File_google_cloud_asset_v1p2beta1_assets_proto protoreflect.FileDescriptor

func RegisterAssetServiceServer Uses

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

type Asset Uses

type Asset struct {

    // The full name of the asset. For example:
    // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    // See [Resource
    // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    // for more information.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Type of the asset. Example: "compute.googleapis.com/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 Cloud IAM policy set on a cloud resource. For
    // each resource, there must be at most one Cloud IAM policy set on it.
    IamPolicy *v1.Policy `protobuf:"bytes,4,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"`
    // Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
    // represented as a list of relative resource names. Ancestry path starts with
    // the closest CRM ancestor and ends at root. If the asset is a CRM
    // project/folder/organization, this starts from the asset itself.
    //
    // Example: ["projects/123456789", "folders/5432", "organizations/1234"]
    Ancestors []string `protobuf:"bytes,6,rep,name=ancestors,proto3" json:"ancestors,omitempty"`
    // contains filtered or unexported fields
}

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

func (*Asset) Descriptor Uses

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

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetAncestors Uses

func (x *Asset) GetAncestors() []string

func (*Asset) GetAssetType Uses

func (x *Asset) GetAssetType() string

func (*Asset) GetIamPolicy Uses

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

func (*Asset) GetName Uses

func (x *Asset) GetName() string

func (*Asset) GetResource Uses

func (x *Asset) GetResource() *Resource

func (*Asset) ProtoMessage Uses

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect Uses

func (x *Asset) ProtoReflect() protoreflect.Message

func (*Asset) Reset Uses

func (x *Asset) Reset()

func (*Asset) String Uses

func (x *Asset) String() string

type AssetServiceClient Uses

type AssetServiceClient interface {
    // Creates a feed in a parent project/folder/organization to listen to its
    // asset updates.
    CreateFeed(ctx context.Context, in *CreateFeedRequest, opts ...grpc.CallOption) (*Feed, error)
    // Gets details about an asset feed.
    GetFeed(ctx context.Context, in *GetFeedRequest, opts ...grpc.CallOption) (*Feed, error)
    // Lists all asset feeds in a parent project/folder/organization.
    ListFeeds(ctx context.Context, in *ListFeedsRequest, opts ...grpc.CallOption) (*ListFeedsResponse, error)
    // Updates an asset feed configuration.
    UpdateFeed(ctx context.Context, in *UpdateFeedRequest, opts ...grpc.CallOption) (*Feed, error)
    // Deletes an asset feed.
    DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*empty.Empty, 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 Uses

func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClient

type AssetServiceServer Uses

type AssetServiceServer interface {
    // Creates a feed in a parent project/folder/organization to listen to its
    // asset updates.
    CreateFeed(context.Context, *CreateFeedRequest) (*Feed, error)
    // Gets details about an asset feed.
    GetFeed(context.Context, *GetFeedRequest) (*Feed, error)
    // Lists all asset feeds in a parent project/folder/organization.
    ListFeeds(context.Context, *ListFeedsRequest) (*ListFeedsResponse, error)
    // Updates an asset feed configuration.
    UpdateFeed(context.Context, *UpdateFeedRequest) (*Feed, error)
    // Deletes an asset feed.
    DeleteFeed(context.Context, *DeleteFeedRequest) (*empty.Empty, error)
}

AssetServiceServer is the server API for AssetService service.

type ContentType Uses

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) Descriptor Uses

func (ContentType) Descriptor() protoreflect.EnumDescriptor

func (ContentType) Enum Uses

func (x ContentType) Enum() *ContentType

func (ContentType) EnumDescriptor Uses

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

Deprecated: Use ContentType.Descriptor instead.

func (ContentType) Number Uses

func (x ContentType) Number() protoreflect.EnumNumber

func (ContentType) String Uses

func (x ContentType) String() string

func (ContentType) Type Uses

func (ContentType) Type() protoreflect.EnumType

type CreateFeedRequest Uses

type CreateFeedRequest struct {

    // Required. The name of the project/folder/organization where this feed
    // should be created in. It can only be an organization number (such as
    // "organizations/123"), a folder number (such as "folders/123"), a project ID
    // (such as "projects/my-project-id")", or a project number (such as
    // "projects/12345").
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. This is the client-assigned asset feed identifier and it needs to
    // be unique under a specific parent project/folder/organization.
    FeedId string `protobuf:"bytes,2,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"`
    // Required. The feed details. The field `name` must be empty and it will be generated
    // in the format of:
    // projects/project_number/feeds/feed_id
    // folders/folder_number/feeds/feed_id
    // organizations/organization_number/feeds/feed_id
    Feed *Feed `protobuf:"bytes,3,opt,name=feed,proto3" json:"feed,omitempty"`
    // contains filtered or unexported fields
}

Create asset feed request.

func (*CreateFeedRequest) Descriptor Uses

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

Deprecated: Use CreateFeedRequest.ProtoReflect.Descriptor instead.

func (*CreateFeedRequest) GetFeed Uses

func (x *CreateFeedRequest) GetFeed() *Feed

func (*CreateFeedRequest) GetFeedId Uses

func (x *CreateFeedRequest) GetFeedId() string

func (*CreateFeedRequest) GetParent Uses

func (x *CreateFeedRequest) GetParent() string

func (*CreateFeedRequest) ProtoMessage Uses

func (*CreateFeedRequest) ProtoMessage()

func (*CreateFeedRequest) ProtoReflect Uses

func (x *CreateFeedRequest) ProtoReflect() protoreflect.Message

func (*CreateFeedRequest) Reset Uses

func (x *CreateFeedRequest) Reset()

func (*CreateFeedRequest) String Uses

func (x *CreateFeedRequest) String() string

type DeleteFeedRequest Uses

type DeleteFeedRequest struct {

    // Required. The name of the feed and it must be in the format of:
    // projects/project_number/feeds/feed_id
    // folders/folder_number/feeds/feed_id
    // organizations/organization_number/feeds/feed_id
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

func (*DeleteFeedRequest) Descriptor Uses

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

Deprecated: Use DeleteFeedRequest.ProtoReflect.Descriptor instead.

func (*DeleteFeedRequest) GetName Uses

func (x *DeleteFeedRequest) GetName() string

func (*DeleteFeedRequest) ProtoMessage Uses

func (*DeleteFeedRequest) ProtoMessage()

func (*DeleteFeedRequest) ProtoReflect Uses

func (x *DeleteFeedRequest) ProtoReflect() protoreflect.Message

func (*DeleteFeedRequest) Reset Uses

func (x *DeleteFeedRequest) Reset()

func (*DeleteFeedRequest) String Uses

func (x *DeleteFeedRequest) String() string

type Feed Uses

type Feed struct {

    // Required. The format will be
    // projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    // folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
    // organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
    //
    // The client-assigned feed identifier must be unique within the parent
    // project/folder/organization.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // A list of the full names of the assets to receive updates. You must specify
    // either or both of asset_names and asset_types. Only asset updates matching
    // specified asset_names and asset_types are exported to the feed. For
    // example:
    // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    // See [Resource
    // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    // for more info.
    AssetNames []string `protobuf:"bytes,2,rep,name=asset_names,json=assetNames,proto3" json:"asset_names,omitempty"`
    // A list of types of the assets to receive updates. You must specify either
    // or both of asset_names and asset_types. Only asset updates matching
    // specified asset_names and asset_types are exported to the feed.
    // For example:
    // "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
    // Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
    // for all supported asset types.
    AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
    // Asset content type. If not specified, no content but the asset name and
    // type will be returned.
    ContentType ContentType `protobuf:"varint,4,opt,name=content_type,json=contentType,proto3,enum=google.cloud.asset.v1p2beta1.ContentType" json:"content_type,omitempty"`
    // Required. Feed output configuration defining where the asset updates are
    // published to.
    FeedOutputConfig *FeedOutputConfig `protobuf:"bytes,5,opt,name=feed_output_config,json=feedOutputConfig,proto3" json:"feed_output_config,omitempty"`
    // contains filtered or unexported fields
}

An asset feed used to export asset updates to a destinations. An asset feed filter controls what updates are exported. The asset feed must be created within a project, organization, or folder. Supported destinations are: Cloud Pub/Sub topics.

func (*Feed) Descriptor Uses

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

Deprecated: Use Feed.ProtoReflect.Descriptor instead.

func (*Feed) GetAssetNames Uses

func (x *Feed) GetAssetNames() []string

func (*Feed) GetAssetTypes Uses

func (x *Feed) GetAssetTypes() []string

func (*Feed) GetContentType Uses

func (x *Feed) GetContentType() ContentType

func (*Feed) GetFeedOutputConfig Uses

func (x *Feed) GetFeedOutputConfig() *FeedOutputConfig

func (*Feed) GetName Uses

func (x *Feed) GetName() string

func (*Feed) ProtoMessage Uses

func (*Feed) ProtoMessage()

func (*Feed) ProtoReflect Uses

func (x *Feed) ProtoReflect() protoreflect.Message

func (*Feed) Reset Uses

func (x *Feed) Reset()

func (*Feed) String Uses

func (x *Feed) String() string

type FeedOutputConfig Uses

type FeedOutputConfig struct {

    // Asset feed destination.
    //
    // Types that are assignable to Destination:
    //	*FeedOutputConfig_PubsubDestination
    Destination isFeedOutputConfig_Destination `protobuf_oneof:"destination"`
    // contains filtered or unexported fields
}

Output configuration for asset feed destination.

func (*FeedOutputConfig) Descriptor Uses

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

Deprecated: Use FeedOutputConfig.ProtoReflect.Descriptor instead.

func (*FeedOutputConfig) GetDestination Uses

func (m *FeedOutputConfig) GetDestination() isFeedOutputConfig_Destination

func (*FeedOutputConfig) GetPubsubDestination Uses

func (x *FeedOutputConfig) GetPubsubDestination() *PubsubDestination

func (*FeedOutputConfig) ProtoMessage Uses

func (*FeedOutputConfig) ProtoMessage()

func (*FeedOutputConfig) ProtoReflect Uses

func (x *FeedOutputConfig) ProtoReflect() protoreflect.Message

func (*FeedOutputConfig) Reset Uses

func (x *FeedOutputConfig) Reset()

func (*FeedOutputConfig) String Uses

func (x *FeedOutputConfig) String() string

type FeedOutputConfig_PubsubDestination Uses

type FeedOutputConfig_PubsubDestination struct {
    // Destination on Cloud Pubsub.
    PubsubDestination *PubsubDestination `protobuf:"bytes,1,opt,name=pubsub_destination,json=pubsubDestination,proto3,oneof"`
}

type GcsDestination Uses

type GcsDestination struct {

    // Required.
    //
    // Types that are assignable to ObjectUri:
    //	*GcsDestination_Uri
    ObjectUri isGcsDestination_ObjectUri `protobuf_oneof:"object_uri"`
    // contains filtered or unexported fields
}

A Cloud Storage location.

func (*GcsDestination) Descriptor Uses

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

Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.

func (*GcsDestination) GetObjectUri Uses

func (m *GcsDestination) GetObjectUri() isGcsDestination_ObjectUri

func (*GcsDestination) GetUri Uses

func (x *GcsDestination) GetUri() string

func (*GcsDestination) ProtoMessage Uses

func (*GcsDestination) ProtoMessage()

func (*GcsDestination) ProtoReflect Uses

func (x *GcsDestination) ProtoReflect() protoreflect.Message

func (*GcsDestination) Reset Uses

func (x *GcsDestination) Reset()

func (*GcsDestination) String Uses

func (x *GcsDestination) String() string

type GcsDestination_Uri Uses

type GcsDestination_Uri struct {
    // The uri of the Cloud Storage object. It's the same uri that is used by
    // gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    // Editing Object
    // Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
    // for more information.
    Uri string `protobuf:"bytes,1,opt,name=uri,proto3,oneof"`
}

type GetFeedRequest Uses

type GetFeedRequest struct {

    // Required. The name of the Feed and it must be in the format of:
    // projects/project_number/feeds/feed_id
    // folders/folder_number/feeds/feed_id
    // organizations/organization_number/feeds/feed_id
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Get asset feed request.

func (*GetFeedRequest) Descriptor Uses

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

Deprecated: Use GetFeedRequest.ProtoReflect.Descriptor instead.

func (*GetFeedRequest) GetName Uses

func (x *GetFeedRequest) GetName() string

func (*GetFeedRequest) ProtoMessage Uses

func (*GetFeedRequest) ProtoMessage()

func (*GetFeedRequest) ProtoReflect Uses

func (x *GetFeedRequest) ProtoReflect() protoreflect.Message

func (*GetFeedRequest) Reset Uses

func (x *GetFeedRequest) Reset()

func (*GetFeedRequest) String Uses

func (x *GetFeedRequest) String() string

type ListFeedsRequest Uses

type ListFeedsRequest struct {

    // Required. The parent project/folder/organization whose feeds are to be
    // listed. It can only be using project/folder/organization number (such as
    // "folders/12345")", or a project ID (such as "projects/my-project-id").
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // contains filtered or unexported fields
}

List asset feeds request.

func (*ListFeedsRequest) Descriptor Uses

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

Deprecated: Use ListFeedsRequest.ProtoReflect.Descriptor instead.

func (*ListFeedsRequest) GetParent Uses

func (x *ListFeedsRequest) GetParent() string

func (*ListFeedsRequest) ProtoMessage Uses

func (*ListFeedsRequest) ProtoMessage()

func (*ListFeedsRequest) ProtoReflect Uses

func (x *ListFeedsRequest) ProtoReflect() protoreflect.Message

func (*ListFeedsRequest) Reset Uses

func (x *ListFeedsRequest) Reset()

func (*ListFeedsRequest) String Uses

func (x *ListFeedsRequest) String() string

type ListFeedsResponse Uses

type ListFeedsResponse struct {

    // A list of feeds.
    Feeds []*Feed `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"`
    // contains filtered or unexported fields
}

func (*ListFeedsResponse) Descriptor Uses

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

Deprecated: Use ListFeedsResponse.ProtoReflect.Descriptor instead.

func (*ListFeedsResponse) GetFeeds Uses

func (x *ListFeedsResponse) GetFeeds() []*Feed

func (*ListFeedsResponse) ProtoMessage Uses

func (*ListFeedsResponse) ProtoMessage()

func (*ListFeedsResponse) ProtoReflect Uses

func (x *ListFeedsResponse) ProtoReflect() protoreflect.Message

func (*ListFeedsResponse) Reset Uses

func (x *ListFeedsResponse) Reset()

func (*ListFeedsResponse) String Uses

func (x *ListFeedsResponse) String() string

type OutputConfig Uses

type OutputConfig struct {

    // Asset export destination.
    //
    // Types that are assignable to Destination:
    //	*OutputConfig_GcsDestination
    Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
    // contains filtered or unexported fields
}

Output configuration for export assets destination.

func (*OutputConfig) Descriptor Uses

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

Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead.

func (*OutputConfig) GetDestination Uses

func (m *OutputConfig) GetDestination() isOutputConfig_Destination

func (*OutputConfig) GetGcsDestination Uses

func (x *OutputConfig) GetGcsDestination() *GcsDestination

func (*OutputConfig) ProtoMessage Uses

func (*OutputConfig) ProtoMessage()

func (*OutputConfig) ProtoReflect Uses

func (x *OutputConfig) ProtoReflect() protoreflect.Message

func (*OutputConfig) Reset Uses

func (x *OutputConfig) Reset()

func (*OutputConfig) String Uses

func (x *OutputConfig) String() string

type OutputConfig_GcsDestination Uses

type OutputConfig_GcsDestination struct {
    // Destination on Cloud Storage.
    GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}

type PubsubDestination Uses

type PubsubDestination struct {

    // The name of the Cloud Pub/Sub topic to publish to.
    // For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
    Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
    // contains filtered or unexported fields
}

A Cloud Pubsub destination.

func (*PubsubDestination) Descriptor Uses

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

Deprecated: Use PubsubDestination.ProtoReflect.Descriptor instead.

func (*PubsubDestination) GetTopic Uses

func (x *PubsubDestination) GetTopic() string

func (*PubsubDestination) ProtoMessage Uses

func (*PubsubDestination) ProtoMessage()

func (*PubsubDestination) ProtoReflect Uses

func (x *PubsubDestination) ProtoReflect() protoreflect.Message

func (*PubsubDestination) Reset Uses

func (x *PubsubDestination) Reset()

func (*PubsubDestination) String Uses

func (x *PubsubDestination) String() string

type Resource Uses

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.
    // For 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
    // [Resource
    // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    // for more information.
    //
    // For GCP assets, it is the parent resource defined in the [Cloud IAM policy
    // hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
    // For 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"`
    // contains filtered or unexported fields
}

Representation of a cloud resource.

func (*Resource) Descriptor Uses

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetData Uses

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

func (*Resource) GetDiscoveryDocumentUri Uses

func (x *Resource) GetDiscoveryDocumentUri() string

func (*Resource) GetDiscoveryName Uses

func (x *Resource) GetDiscoveryName() string

func (*Resource) GetParent Uses

func (x *Resource) GetParent() string

func (*Resource) GetResourceUrl Uses

func (x *Resource) GetResourceUrl() string

func (*Resource) GetVersion Uses

func (x *Resource) GetVersion() string

func (*Resource) ProtoMessage Uses

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect Uses

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset Uses

func (x *Resource) Reset()

func (*Resource) String Uses

func (x *Resource) String() string

type TemporalAsset Uses

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"`
    // contains filtered or unexported fields
}

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 Uses

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

Deprecated: Use TemporalAsset.ProtoReflect.Descriptor instead.

func (*TemporalAsset) GetAsset Uses

func (x *TemporalAsset) GetAsset() *Asset

func (*TemporalAsset) GetDeleted Uses

func (x *TemporalAsset) GetDeleted() bool

func (*TemporalAsset) GetWindow Uses

func (x *TemporalAsset) GetWindow() *TimeWindow

func (*TemporalAsset) ProtoMessage Uses

func (*TemporalAsset) ProtoMessage()

func (*TemporalAsset) ProtoReflect Uses

func (x *TemporalAsset) ProtoReflect() protoreflect.Message

func (*TemporalAsset) Reset Uses

func (x *TemporalAsset) Reset()

func (*TemporalAsset) String Uses

func (x *TemporalAsset) String() string

type TimeWindow Uses

type TimeWindow struct {

    // Start time of the time window (exclusive).
    StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // End time of the time window (inclusive).
    // Current timestamp if not specified.
    EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    // contains filtered or unexported fields
}

A time window of (start_time, end_time].

func (*TimeWindow) Descriptor Uses

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

Deprecated: Use TimeWindow.ProtoReflect.Descriptor instead.

func (*TimeWindow) GetEndTime Uses

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

func (*TimeWindow) GetStartTime Uses

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

func (*TimeWindow) ProtoMessage Uses

func (*TimeWindow) ProtoMessage()

func (*TimeWindow) ProtoReflect Uses

func (x *TimeWindow) ProtoReflect() protoreflect.Message

func (*TimeWindow) Reset Uses

func (x *TimeWindow) Reset()

func (*TimeWindow) String Uses

func (x *TimeWindow) String() string

type UnimplementedAssetServiceServer Uses

type UnimplementedAssetServiceServer struct {
}

UnimplementedAssetServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAssetServiceServer) CreateFeed Uses

func (*UnimplementedAssetServiceServer) CreateFeed(context.Context, *CreateFeedRequest) (*Feed, error)

func (*UnimplementedAssetServiceServer) DeleteFeed Uses

func (*UnimplementedAssetServiceServer) DeleteFeed(context.Context, *DeleteFeedRequest) (*empty.Empty, error)

func (*UnimplementedAssetServiceServer) GetFeed Uses

func (*UnimplementedAssetServiceServer) GetFeed(context.Context, *GetFeedRequest) (*Feed, error)

func (*UnimplementedAssetServiceServer) ListFeeds Uses

func (*UnimplementedAssetServiceServer) ListFeeds(context.Context, *ListFeedsRequest) (*ListFeedsResponse, error)

func (*UnimplementedAssetServiceServer) UpdateFeed Uses

func (*UnimplementedAssetServiceServer) UpdateFeed(context.Context, *UpdateFeedRequest) (*Feed, error)

type UpdateFeedRequest Uses

type UpdateFeedRequest struct {

    // Required. The new values of feed details. It must match an existing feed and the
    // field `name` must be in the format of:
    // projects/project_number/feeds/feed_id or
    // folders/folder_number/feeds/feed_id or
    // organizations/organization_number/feeds/feed_id.
    Feed *Feed `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed,omitempty"`
    // Required. Only updates the `feed` fields indicated by this mask.
    // The field mask must not be empty, and it must not contain fields that
    // are immutable or only set by the server.
    UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    // contains filtered or unexported fields
}

Update asset feed request.

func (*UpdateFeedRequest) Descriptor Uses

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

Deprecated: Use UpdateFeedRequest.ProtoReflect.Descriptor instead.

func (*UpdateFeedRequest) GetFeed Uses

func (x *UpdateFeedRequest) GetFeed() *Feed

func (*UpdateFeedRequest) GetUpdateMask Uses

func (x *UpdateFeedRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateFeedRequest) ProtoMessage Uses

func (*UpdateFeedRequest) ProtoMessage()

func (*UpdateFeedRequest) ProtoReflect Uses

func (x *UpdateFeedRequest) ProtoReflect() protoreflect.Message

func (*UpdateFeedRequest) Reset Uses

func (x *UpdateFeedRequest) Reset()

func (*UpdateFeedRequest) String Uses

func (x *UpdateFeedRequest) String() string

Package asset imports 17 packages (graph) and is imported by 1 packages. Updated 2020-08-13. Refresh now. Tools for package owners.