remoteconfigdata

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package remoteconfigdata provides Firebase Remote Config type definitions for CloudEvent data payloads.

Supported CloudEvent Types

  • google.firebase.remoteconfig.remoteConfig.v1.updated

Index

Constants

This section is empty.

Variables

View Source
var (
	RemoteConfigUpdateOrigin_name = map[int32]string{
		0: "REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED",
		1: "CONSOLE",
		2: "REST_API",
		3: "ADMIN_SDK_NODE",
	}
	RemoteConfigUpdateOrigin_value = map[string]int32{
		"REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED": 0,
		"CONSOLE":        1,
		"REST_API":       2,
		"ADMIN_SDK_NODE": 3,
	}
)

Enum value maps for RemoteConfigUpdateOrigin.

View Source
var (
	RemoteConfigUpdateType_name = map[int32]string{
		0: "REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED",
		1: "INCREMENTAL_UPDATE",
		2: "FORCED_UPDATE",
		3: "ROLLBACK",
	}
	RemoteConfigUpdateType_value = map[string]int32{
		"REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED": 0,
		"INCREMENTAL_UPDATE":                    1,
		"FORCED_UPDATE":                         2,
		"ROLLBACK":                              3,
	}
)

Enum value maps for RemoteConfigUpdateType.

View Source
var File_firebase_remoteconfig_v1_data_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RemoteConfigEventData

type RemoteConfigEventData struct {

	// The version number of the version's corresponding Remote Config template.
	VersionNumber int64 `protobuf:"varint,1,opt,name=version_number,json=versionNumber,proto3" json:"version_number,omitempty"`
	// When the Remote Config template was written to the Remote Config server.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Aggregation of all metadata fields about the account that performed the
	// update.
	UpdateUser *RemoteConfigUser `protobuf:"bytes,3,opt,name=update_user,json=updateUser,proto3" json:"update_user,omitempty"`
	// The user-provided description of the corresponding Remote Config template.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Where the update action originated.
	UpdateOrigin RemoteConfigUpdateOrigin `` /* 167-byte string literal not displayed */
	// What type of update was made.
	UpdateType RemoteConfigUpdateType `` /* 159-byte string literal not displayed */
	// Only present if this version is the result of a rollback, and will be the
	// version number of the Remote Config template that was rolled-back to.
	RollbackSource int64 `protobuf:"varint,7,opt,name=rollback_source,json=rollbackSource,proto3" json:"rollback_source,omitempty"`
	// contains filtered or unexported fields
}

The data within all Firebase Remote Config events.

func (*RemoteConfigEventData) Descriptor deprecated

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

Deprecated: Use RemoteConfigEventData.ProtoReflect.Descriptor instead.

func (*RemoteConfigEventData) GetDescription

func (x *RemoteConfigEventData) GetDescription() string

func (*RemoteConfigEventData) GetRollbackSource

func (x *RemoteConfigEventData) GetRollbackSource() int64

func (*RemoteConfigEventData) GetUpdateOrigin

func (x *RemoteConfigEventData) GetUpdateOrigin() RemoteConfigUpdateOrigin

func (*RemoteConfigEventData) GetUpdateTime

func (x *RemoteConfigEventData) GetUpdateTime() *timestamppb.Timestamp

func (*RemoteConfigEventData) GetUpdateType

func (x *RemoteConfigEventData) GetUpdateType() RemoteConfigUpdateType

func (*RemoteConfigEventData) GetUpdateUser

func (x *RemoteConfigEventData) GetUpdateUser() *RemoteConfigUser

func (*RemoteConfigEventData) GetVersionNumber

func (x *RemoteConfigEventData) GetVersionNumber() int64

func (*RemoteConfigEventData) ProtoMessage

func (*RemoteConfigEventData) ProtoMessage()

func (*RemoteConfigEventData) ProtoReflect

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

func (*RemoteConfigEventData) Reset

func (x *RemoteConfigEventData) Reset()

func (*RemoteConfigEventData) String

func (x *RemoteConfigEventData) String() string

type RemoteConfigUpdateOrigin

type RemoteConfigUpdateOrigin int32

What type of update was associated with the Remote Config template version.

const (
	// Catch-all for unrecognized values.
	RemoteConfigUpdateOrigin_REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED RemoteConfigUpdateOrigin = 0
	// The update came from the Firebase UI.
	RemoteConfigUpdateOrigin_CONSOLE RemoteConfigUpdateOrigin = 1
	// The update came from the Remote Config REST API.
	RemoteConfigUpdateOrigin_REST_API RemoteConfigUpdateOrigin = 2
	// The update came from the Firebase Admin Node SDK.
	RemoteConfigUpdateOrigin_ADMIN_SDK_NODE RemoteConfigUpdateOrigin = 3
)

func (RemoteConfigUpdateOrigin) Descriptor

func (RemoteConfigUpdateOrigin) Enum

func (RemoteConfigUpdateOrigin) EnumDescriptor deprecated

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

Deprecated: Use RemoteConfigUpdateOrigin.Descriptor instead.

func (RemoteConfigUpdateOrigin) Number

func (RemoteConfigUpdateOrigin) String

func (x RemoteConfigUpdateOrigin) String() string

func (RemoteConfigUpdateOrigin) Type

type RemoteConfigUpdateType

type RemoteConfigUpdateType int32

Where the Remote Config update action originated.

const (
	// Catch-all for unrecognized enum values.
	RemoteConfigUpdateType_REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED RemoteConfigUpdateType = 0
	// A regular incremental update.
	RemoteConfigUpdateType_INCREMENTAL_UPDATE RemoteConfigUpdateType = 1
	// A forced update.
	// The ETag was specified as "*" in an UpdateRemoteConfigRequest
	// request or the "Force Update" button was pressed on the console.
	RemoteConfigUpdateType_FORCED_UPDATE RemoteConfigUpdateType = 2
	// A rollback to a previous Remote Config template.
	RemoteConfigUpdateType_ROLLBACK RemoteConfigUpdateType = 3
)

func (RemoteConfigUpdateType) Descriptor

func (RemoteConfigUpdateType) Enum

func (RemoteConfigUpdateType) EnumDescriptor deprecated

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

Deprecated: Use RemoteConfigUpdateType.Descriptor instead.

func (RemoteConfigUpdateType) Number

func (RemoteConfigUpdateType) String

func (x RemoteConfigUpdateType) String() string

func (RemoteConfigUpdateType) Type

type RemoteConfigUser

type RemoteConfigUser struct {

	// Display name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Email address.
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// Image URL.
	ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	// contains filtered or unexported fields
}

All the fields associated with the person/service account that wrote a Remote Config template.

func (*RemoteConfigUser) Descriptor deprecated

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

Deprecated: Use RemoteConfigUser.ProtoReflect.Descriptor instead.

func (*RemoteConfigUser) GetEmail

func (x *RemoteConfigUser) GetEmail() string

func (*RemoteConfigUser) GetImageUrl

func (x *RemoteConfigUser) GetImageUrl() string

func (*RemoteConfigUser) GetName

func (x *RemoteConfigUser) GetName() string

func (*RemoteConfigUser) ProtoMessage

func (*RemoteConfigUser) ProtoMessage()

func (*RemoteConfigUser) ProtoReflect

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

func (*RemoteConfigUser) Reset

func (x *RemoteConfigUser) Reset()

func (*RemoteConfigUser) String

func (x *RemoteConfigUser) String() string

Jump to

Keyboard shortcuts

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