sharing

package
v0.0.0-...-0d07254 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_FileMetadata_Type     = FileMetadata_UNKNOWN
	Default_FileMetadata_MimeType = string("application/octet-stream")
)

Default values for FileMetadata fields.

View Source
const (
	Default_TextMetadata_Type = TextMetadata_UNKNOWN
)

Default values for TextMetadata fields.

View Source
const (
	Default_WifiCredentialsMetadata_SecurityType = WifiCredentialsMetadata_UNKNOWN_SECURITY_TYPE
)

Default values for WifiCredentialsMetadata fields.

View Source
const (
	Default_WifiCredentials_HiddenSsid = bool(false)
)

Default values for WifiCredentials fields.

Variables

View Source
var (
	FileMetadata_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "IMAGE",
		2: "VIDEO",
		3: "APP",
		4: "AUDIO",
	}
	FileMetadata_Type_value = map[string]int32{
		"UNKNOWN": 0,
		"IMAGE":   1,
		"VIDEO":   2,
		"APP":     3,
		"AUDIO":   4,
	}
)

Enum value maps for FileMetadata_Type.

View Source
var (
	TextMetadata_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "TEXT",
		2: "URL",
		3: "ADDRESS",
		4: "PHONE_NUMBER",
	}
	TextMetadata_Type_value = map[string]int32{
		"UNKNOWN":      0,
		"TEXT":         1,
		"URL":          2,
		"ADDRESS":      3,
		"PHONE_NUMBER": 4,
	}
)

Enum value maps for TextMetadata_Type.

View Source
var (
	WifiCredentialsMetadata_SecurityType_name = map[int32]string{
		0: "UNKNOWN_SECURITY_TYPE",
		1: "OPEN",
		2: "WPA_PSK",
		3: "WEP",
	}
	WifiCredentialsMetadata_SecurityType_value = map[string]int32{
		"UNKNOWN_SECURITY_TYPE": 0,
		"OPEN":                  1,
		"WPA_PSK":               2,
		"WEP":                   3,
	}
)

Enum value maps for WifiCredentialsMetadata_SecurityType.

View Source
var (
	Frame_Version_name = map[int32]string{
		0: "UNKNOWN_VERSION",
		1: "V1",
	}
	Frame_Version_value = map[string]int32{
		"UNKNOWN_VERSION": 0,
		"V1":              1,
	}
)

Enum value maps for Frame_Version.

View Source
var (
	V1Frame_FrameType_name = map[int32]string{
		0: "UNKNOWN_FRAME_TYPE",
		1: "INTRODUCTION",
		2: "RESPONSE",
		3: "PAIRED_KEY_ENCRYPTION",
		4: "PAIRED_KEY_RESULT",
		5: "CERTIFICATE_INFO",
		6: "CANCEL",
	}
	V1Frame_FrameType_value = map[string]int32{
		"UNKNOWN_FRAME_TYPE":    0,
		"INTRODUCTION":          1,
		"RESPONSE":              2,
		"PAIRED_KEY_ENCRYPTION": 3,
		"PAIRED_KEY_RESULT":     4,
		"CERTIFICATE_INFO":      5,
		"CANCEL":                6,
	}
)

Enum value maps for V1Frame_FrameType.

View Source
var (
	ConnectionResponseFrame_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "ACCEPT",
		2: "REJECT",
		3: "NOT_ENOUGH_SPACE",
		4: "UNSUPPORTED_ATTACHMENT_TYPE",
		5: "TIMED_OUT",
	}
	ConnectionResponseFrame_Status_value = map[string]int32{
		"UNKNOWN":                     0,
		"ACCEPT":                      1,
		"REJECT":                      2,
		"NOT_ENOUGH_SPACE":            3,
		"UNSUPPORTED_ATTACHMENT_TYPE": 4,
		"TIMED_OUT":                   5,
	}
)

Enum value maps for ConnectionResponseFrame_Status.

View Source
var (
	PairedKeyResultFrame_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "SUCCESS",
		2: "FAIL",
		3: "UNABLE",
	}
	PairedKeyResultFrame_Status_value = map[string]int32{
		"UNKNOWN": 0,
		"SUCCESS": 1,
		"FAIL":    2,
		"UNABLE":  3,
	}
)

Enum value maps for PairedKeyResultFrame_Status.

View Source
var File_wire_format_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CertificateInfoFrame

type CertificateInfoFrame struct {

	// The public certificates to be shared with remote devices.
	PublicCertificate []*PublicCertificate `protobuf:"bytes,1,rep,name=public_certificate,json=publicCertificate" json:"public_certificate,omitempty"`
	// contains filtered or unexported fields
}

A package containing certificate info to be shared to remote device offline. NEXT_ID=2

func (*CertificateInfoFrame) Descriptor deprecated

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

Deprecated: Use CertificateInfoFrame.ProtoReflect.Descriptor instead.

func (*CertificateInfoFrame) GetPublicCertificate

func (x *CertificateInfoFrame) GetPublicCertificate() []*PublicCertificate

func (*CertificateInfoFrame) ProtoMessage

func (*CertificateInfoFrame) ProtoMessage()

func (*CertificateInfoFrame) ProtoReflect

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

func (*CertificateInfoFrame) Reset

func (x *CertificateInfoFrame) Reset()

func (*CertificateInfoFrame) String

func (x *CertificateInfoFrame) String() string

type ConnectionResponseFrame

type ConnectionResponseFrame struct {

	// The receiving side's response.
	Status *ConnectionResponseFrame_Status `protobuf:"varint,1,opt,name=status,enum=sharing.nearby.ConnectionResponseFrame_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

A response packet sent by the receiving side. Accepts or rejects the list of files. NEXT_ID=2

func (*ConnectionResponseFrame) Descriptor deprecated

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

Deprecated: Use ConnectionResponseFrame.ProtoReflect.Descriptor instead.

func (*ConnectionResponseFrame) GetStatus

func (*ConnectionResponseFrame) ProtoMessage

func (*ConnectionResponseFrame) ProtoMessage()

func (*ConnectionResponseFrame) ProtoReflect

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

func (*ConnectionResponseFrame) Reset

func (x *ConnectionResponseFrame) Reset()

func (*ConnectionResponseFrame) String

func (x *ConnectionResponseFrame) String() string

type ConnectionResponseFrame_Status

type ConnectionResponseFrame_Status int32
const (
	ConnectionResponseFrame_UNKNOWN                     ConnectionResponseFrame_Status = 0
	ConnectionResponseFrame_ACCEPT                      ConnectionResponseFrame_Status = 1
	ConnectionResponseFrame_REJECT                      ConnectionResponseFrame_Status = 2
	ConnectionResponseFrame_NOT_ENOUGH_SPACE            ConnectionResponseFrame_Status = 3
	ConnectionResponseFrame_UNSUPPORTED_ATTACHMENT_TYPE ConnectionResponseFrame_Status = 4
	ConnectionResponseFrame_TIMED_OUT                   ConnectionResponseFrame_Status = 5
)

func (ConnectionResponseFrame_Status) Descriptor

func (ConnectionResponseFrame_Status) Enum

func (ConnectionResponseFrame_Status) EnumDescriptor deprecated

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

Deprecated: Use ConnectionResponseFrame_Status.Descriptor instead.

func (ConnectionResponseFrame_Status) Number

func (ConnectionResponseFrame_Status) String

func (ConnectionResponseFrame_Status) Type

func (*ConnectionResponseFrame_Status) UnmarshalJSON deprecated

func (x *ConnectionResponseFrame_Status) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type FileMetadata

type FileMetadata struct {

	// The human readable name of this file (eg. 'Cookbook.pdf').
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The type of file (eg. 'IMAGE' from 'dog.jpg'). Specifying a type helps
	// provide a richer experience on the receiving side.
	Type *FileMetadata_Type `protobuf:"varint,2,opt,name=type,enum=sharing.nearby.FileMetadata_Type,def=0" json:"type,omitempty"`
	// The FILE payload id that will be sent as a follow up containing the actual
	// bytes of the file.
	PayloadId *int64 `protobuf:"varint,3,opt,name=payload_id,json=payloadId" json:"payload_id,omitempty"`
	// The total size of the file.
	Size *int64 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
	// The mimeType of file (eg. 'image/jpeg' from 'dog.jpg'). Specifying a
	// mimeType helps provide a richer experience on receiving side.
	MimeType *string `protobuf:"bytes,5,opt,name=mime_type,json=mimeType,def=application/octet-stream" json:"mime_type,omitempty"`
	// A uuid for the attachment. Should be unique across all attachments.
	Id *int64 `protobuf:"varint,6,opt,name=id" json:"id,omitempty"`
	// contains filtered or unexported fields
}

File metadata. Does not include the actual bytes of the file. NEXT_ID=6

func (*FileMetadata) Descriptor deprecated

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

Deprecated: Use FileMetadata.ProtoReflect.Descriptor instead.

func (*FileMetadata) GetId

func (x *FileMetadata) GetId() int64

func (*FileMetadata) GetMimeType

func (x *FileMetadata) GetMimeType() string

func (*FileMetadata) GetName

func (x *FileMetadata) GetName() string

func (*FileMetadata) GetPayloadId

func (x *FileMetadata) GetPayloadId() int64

func (*FileMetadata) GetSize

func (x *FileMetadata) GetSize() int64

func (*FileMetadata) GetType

func (x *FileMetadata) GetType() FileMetadata_Type

func (*FileMetadata) ProtoMessage

func (*FileMetadata) ProtoMessage()

func (*FileMetadata) ProtoReflect

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

func (*FileMetadata) Reset

func (x *FileMetadata) Reset()

func (*FileMetadata) String

func (x *FileMetadata) String() string

type FileMetadata_Type

type FileMetadata_Type int32
const (
	FileMetadata_UNKNOWN FileMetadata_Type = 0
	FileMetadata_IMAGE   FileMetadata_Type = 1
	FileMetadata_VIDEO   FileMetadata_Type = 2
	FileMetadata_APP     FileMetadata_Type = 3
	FileMetadata_AUDIO   FileMetadata_Type = 4
)

func (FileMetadata_Type) Descriptor

func (FileMetadata_Type) Enum

func (FileMetadata_Type) EnumDescriptor deprecated

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

Deprecated: Use FileMetadata_Type.Descriptor instead.

func (FileMetadata_Type) Number

func (FileMetadata_Type) String

func (x FileMetadata_Type) String() string

func (FileMetadata_Type) Type

func (*FileMetadata_Type) UnmarshalJSON deprecated

func (x *FileMetadata_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Frame

type Frame struct {
	Version *Frame_Version `protobuf:"varint,1,opt,name=version,enum=sharing.nearby.Frame_Version" json:"version,omitempty"`
	// Right now there's only 1 version, but if there are more, exactly one of
	// the following fields will be set.
	V1 *V1Frame `protobuf:"bytes,2,opt,name=v1" json:"v1,omitempty"`
	// contains filtered or unexported fields
}

A frame used when sending messages over the wire. NEXT_ID=3

func (*Frame) Descriptor deprecated

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

Deprecated: Use Frame.ProtoReflect.Descriptor instead.

func (*Frame) GetV1

func (x *Frame) GetV1() *V1Frame

func (*Frame) GetVersion

func (x *Frame) GetVersion() Frame_Version

func (*Frame) ProtoMessage

func (*Frame) ProtoMessage()

func (*Frame) ProtoReflect

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

func (*Frame) Reset

func (x *Frame) Reset()

func (*Frame) String

func (x *Frame) String() string

type Frame_Version

type Frame_Version int32
const (
	Frame_UNKNOWN_VERSION Frame_Version = 0
	Frame_V1              Frame_Version = 1
)

func (Frame_Version) Descriptor

func (Frame_Version) Enum

func (x Frame_Version) Enum() *Frame_Version

func (Frame_Version) EnumDescriptor deprecated

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

Deprecated: Use Frame_Version.Descriptor instead.

func (Frame_Version) Number

func (Frame_Version) String

func (x Frame_Version) String() string

func (Frame_Version) Type

func (*Frame_Version) UnmarshalJSON deprecated

func (x *Frame_Version) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type IntroductionFrame

type IntroductionFrame struct {
	FileMetadata []*FileMetadata `protobuf:"bytes,1,rep,name=file_metadata,json=fileMetadata" json:"file_metadata,omitempty"`
	TextMetadata []*TextMetadata `protobuf:"bytes,2,rep,name=text_metadata,json=textMetadata" json:"text_metadata,omitempty"`
	// The required app package to open the content. May be null.
	RequiredPackage         *string                    `protobuf:"bytes,3,opt,name=required_package,json=requiredPackage" json:"required_package,omitempty"`
	WifiCredentialsMetadata []*WifiCredentialsMetadata `protobuf:"bytes,4,rep,name=wifi_credentials_metadata,json=wifiCredentialsMetadata" json:"wifi_credentials_metadata,omitempty"`
	// contains filtered or unexported fields
}

An introduction packet sent by the sending side. Contains a list of files they'd like to share. NEXT_ID=4

func (*IntroductionFrame) Descriptor deprecated

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

Deprecated: Use IntroductionFrame.ProtoReflect.Descriptor instead.

func (*IntroductionFrame) GetFileMetadata

func (x *IntroductionFrame) GetFileMetadata() []*FileMetadata

func (*IntroductionFrame) GetRequiredPackage

func (x *IntroductionFrame) GetRequiredPackage() string

func (*IntroductionFrame) GetTextMetadata

func (x *IntroductionFrame) GetTextMetadata() []*TextMetadata

func (*IntroductionFrame) GetWifiCredentialsMetadata

func (x *IntroductionFrame) GetWifiCredentialsMetadata() []*WifiCredentialsMetadata

func (*IntroductionFrame) ProtoMessage

func (*IntroductionFrame) ProtoMessage()

func (*IntroductionFrame) ProtoReflect

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

func (*IntroductionFrame) Reset

func (x *IntroductionFrame) Reset()

func (*IntroductionFrame) String

func (x *IntroductionFrame) String() string

type PairedKeyEncryptionFrame

type PairedKeyEncryptionFrame struct {

	// The encrypted data in byte array format.
	SignedData []byte `protobuf:"bytes,1,opt,name=signed_data,json=signedData" json:"signed_data,omitempty"`
	// The hash of a certificate id.
	SecretIdHash []byte `protobuf:"bytes,2,opt,name=secret_id_hash,json=secretIdHash" json:"secret_id_hash,omitempty"`
	// An optional encrypted data in byte array format.
	OptionalSignedData []byte `protobuf:"bytes,3,opt,name=optional_signed_data,json=optionalSignedData" json:"optional_signed_data,omitempty"`
	// contains filtered or unexported fields
}

A paired key encryption packet sent between devices, contains signed data. NEXT_ID=3

func (*PairedKeyEncryptionFrame) Descriptor deprecated

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

Deprecated: Use PairedKeyEncryptionFrame.ProtoReflect.Descriptor instead.

func (*PairedKeyEncryptionFrame) GetOptionalSignedData

func (x *PairedKeyEncryptionFrame) GetOptionalSignedData() []byte

func (*PairedKeyEncryptionFrame) GetSecretIdHash

func (x *PairedKeyEncryptionFrame) GetSecretIdHash() []byte

func (*PairedKeyEncryptionFrame) GetSignedData

func (x *PairedKeyEncryptionFrame) GetSignedData() []byte

func (*PairedKeyEncryptionFrame) ProtoMessage

func (*PairedKeyEncryptionFrame) ProtoMessage()

func (*PairedKeyEncryptionFrame) ProtoReflect

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

func (*PairedKeyEncryptionFrame) Reset

func (x *PairedKeyEncryptionFrame) Reset()

func (*PairedKeyEncryptionFrame) String

func (x *PairedKeyEncryptionFrame) String() string

type PairedKeyResultFrame

type PairedKeyResultFrame struct {

	// The verification result.
	Status *PairedKeyResultFrame_Status `protobuf:"varint,1,opt,name=status,enum=sharing.nearby.PairedKeyResultFrame_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

A paired key verification result packet sent between devices. NEXT_ID=2

func (*PairedKeyResultFrame) Descriptor deprecated

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

Deprecated: Use PairedKeyResultFrame.ProtoReflect.Descriptor instead.

func (*PairedKeyResultFrame) GetStatus

func (*PairedKeyResultFrame) ProtoMessage

func (*PairedKeyResultFrame) ProtoMessage()

func (*PairedKeyResultFrame) ProtoReflect

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

func (*PairedKeyResultFrame) Reset

func (x *PairedKeyResultFrame) Reset()

func (*PairedKeyResultFrame) String

func (x *PairedKeyResultFrame) String() string

type PairedKeyResultFrame_Status

type PairedKeyResultFrame_Status int32
const (
	PairedKeyResultFrame_UNKNOWN PairedKeyResultFrame_Status = 0
	PairedKeyResultFrame_SUCCESS PairedKeyResultFrame_Status = 1
	PairedKeyResultFrame_FAIL    PairedKeyResultFrame_Status = 2
	PairedKeyResultFrame_UNABLE  PairedKeyResultFrame_Status = 3
)

func (PairedKeyResultFrame_Status) Descriptor

func (PairedKeyResultFrame_Status) Enum

func (PairedKeyResultFrame_Status) EnumDescriptor deprecated

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

Deprecated: Use PairedKeyResultFrame_Status.Descriptor instead.

func (PairedKeyResultFrame_Status) Number

func (PairedKeyResultFrame_Status) String

func (PairedKeyResultFrame_Status) Type

func (*PairedKeyResultFrame_Status) UnmarshalJSON deprecated

func (x *PairedKeyResultFrame_Status) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type PublicCertificate

type PublicCertificate struct {

	// The unique id of the public certificate.
	SecretId []byte `protobuf:"bytes,1,opt,name=secret_id,json=secretId" json:"secret_id,omitempty"`
	// A bytes representation of a Secret Key owned by contact, to decrypt the
	// metadata_key stored within the advertisement.
	AuthenticityKey []byte `protobuf:"bytes,2,opt,name=authenticity_key,json=authenticityKey" json:"authenticity_key,omitempty"`
	// A bytes representation a public key of X509Certificate, owned by contact,
	// to decrypt encrypted UKEY2 (from Nearby Connections API) as a hand shake in
	// contact verification phase.
	PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey" json:"public_key,omitempty"`
	// The time in millis from epoch when this certificate becomes effective.
	StartTime *int64 `protobuf:"varint,4,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
	// The time in millis from epoch when this certificate expires.
	EndTime *int64 `protobuf:"varint,5,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
	// The encrypted metadata in bytes, contains personal information of the
	// device/user who created this certificate. Needs to be decrypted into bytes,
	// and converted back to EncryptedMetadata object to access fields.
	EncryptedMetadataBytes []byte `protobuf:"bytes,6,opt,name=encrypted_metadata_bytes,json=encryptedMetadataBytes" json:"encrypted_metadata_bytes,omitempty"`
	// The tag for verifying metadata_encryption_key.
	MetadataEncryptionKeyTag []byte `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

A public certificate from the local device. NEXT_ID=8

func (*PublicCertificate) Descriptor deprecated

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

Deprecated: Use PublicCertificate.ProtoReflect.Descriptor instead.

func (*PublicCertificate) GetAuthenticityKey

func (x *PublicCertificate) GetAuthenticityKey() []byte

func (*PublicCertificate) GetEncryptedMetadataBytes

func (x *PublicCertificate) GetEncryptedMetadataBytes() []byte

func (*PublicCertificate) GetEndTime

func (x *PublicCertificate) GetEndTime() int64

func (*PublicCertificate) GetMetadataEncryptionKeyTag

func (x *PublicCertificate) GetMetadataEncryptionKeyTag() []byte

func (*PublicCertificate) GetPublicKey

func (x *PublicCertificate) GetPublicKey() []byte

func (*PublicCertificate) GetSecretId

func (x *PublicCertificate) GetSecretId() []byte

func (*PublicCertificate) GetStartTime

func (x *PublicCertificate) GetStartTime() int64

func (*PublicCertificate) ProtoMessage

func (*PublicCertificate) ProtoMessage()

func (*PublicCertificate) ProtoReflect

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

func (*PublicCertificate) Reset

func (x *PublicCertificate) Reset()

func (*PublicCertificate) String

func (x *PublicCertificate) String() string

type TextMetadata

type TextMetadata struct {

	// The title of the text content.
	TextTitle *string `protobuf:"bytes,2,opt,name=text_title,json=textTitle" json:"text_title,omitempty"`
	// The type of text (phone number, url, address, or plain text).
	Type *TextMetadata_Type `protobuf:"varint,3,opt,name=type,enum=sharing.nearby.TextMetadata_Type,def=0" json:"type,omitempty"`
	// The BYTE payload id that will be sent as a follow up containing the actual
	// bytes of the text.
	PayloadId *int64 `protobuf:"varint,4,opt,name=payload_id,json=payloadId" json:"payload_id,omitempty"`
	// The size of the text content.
	Size *int64 `protobuf:"varint,5,opt,name=size" json:"size,omitempty"`
	// A uuid for the attachment. Should be unique across all attachments.
	Id *int64 `protobuf:"varint,6,opt,name=id" json:"id,omitempty"`
	// contains filtered or unexported fields
}

NEXT_ID=5

func (*TextMetadata) Descriptor deprecated

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

Deprecated: Use TextMetadata.ProtoReflect.Descriptor instead.

func (*TextMetadata) GetId

func (x *TextMetadata) GetId() int64

func (*TextMetadata) GetPayloadId

func (x *TextMetadata) GetPayloadId() int64

func (*TextMetadata) GetSize

func (x *TextMetadata) GetSize() int64

func (*TextMetadata) GetTextTitle

func (x *TextMetadata) GetTextTitle() string

func (*TextMetadata) GetType

func (x *TextMetadata) GetType() TextMetadata_Type

func (*TextMetadata) ProtoMessage

func (*TextMetadata) ProtoMessage()

func (*TextMetadata) ProtoReflect

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

func (*TextMetadata) Reset

func (x *TextMetadata) Reset()

func (*TextMetadata) String

func (x *TextMetadata) String() string

type TextMetadata_Type

type TextMetadata_Type int32
const (
	TextMetadata_UNKNOWN TextMetadata_Type = 0
	TextMetadata_TEXT    TextMetadata_Type = 1
	// Open with browsers.
	TextMetadata_URL TextMetadata_Type = 2
	// Open with map apps.
	TextMetadata_ADDRESS TextMetadata_Type = 3
	// Dial.
	TextMetadata_PHONE_NUMBER TextMetadata_Type = 4
)

func (TextMetadata_Type) Descriptor

func (TextMetadata_Type) Enum

func (TextMetadata_Type) EnumDescriptor deprecated

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

Deprecated: Use TextMetadata_Type.Descriptor instead.

func (TextMetadata_Type) Number

func (TextMetadata_Type) String

func (x TextMetadata_Type) String() string

func (TextMetadata_Type) Type

func (*TextMetadata_Type) UnmarshalJSON deprecated

func (x *TextMetadata_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type V1Frame

type V1Frame struct {
	Type *V1Frame_FrameType `protobuf:"varint,1,opt,name=type,enum=sharing.nearby.V1Frame_FrameType" json:"type,omitempty"`
	// Exactly one of the following fields will be set.
	Introduction        *IntroductionFrame        `protobuf:"bytes,2,opt,name=introduction" json:"introduction,omitempty"`
	ConnectionResponse  *ConnectionResponseFrame  `protobuf:"bytes,3,opt,name=connection_response,json=connectionResponse" json:"connection_response,omitempty"`
	PairedKeyEncryption *PairedKeyEncryptionFrame `protobuf:"bytes,4,opt,name=paired_key_encryption,json=pairedKeyEncryption" json:"paired_key_encryption,omitempty"`
	PairedKeyResult     *PairedKeyResultFrame     `protobuf:"bytes,5,opt,name=paired_key_result,json=pairedKeyResult" json:"paired_key_result,omitempty"`
	CertificateInfo     *CertificateInfoFrame     `protobuf:"bytes,6,opt,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"`
	// contains filtered or unexported fields
}

NEXT_ID=7

func (*V1Frame) Descriptor deprecated

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

Deprecated: Use V1Frame.ProtoReflect.Descriptor instead.

func (*V1Frame) GetCertificateInfo

func (x *V1Frame) GetCertificateInfo() *CertificateInfoFrame

func (*V1Frame) GetConnectionResponse

func (x *V1Frame) GetConnectionResponse() *ConnectionResponseFrame

func (*V1Frame) GetIntroduction

func (x *V1Frame) GetIntroduction() *IntroductionFrame

func (*V1Frame) GetPairedKeyEncryption

func (x *V1Frame) GetPairedKeyEncryption() *PairedKeyEncryptionFrame

func (*V1Frame) GetPairedKeyResult

func (x *V1Frame) GetPairedKeyResult() *PairedKeyResultFrame

func (*V1Frame) GetType

func (x *V1Frame) GetType() V1Frame_FrameType

func (*V1Frame) ProtoMessage

func (*V1Frame) ProtoMessage()

func (*V1Frame) ProtoReflect

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

func (*V1Frame) Reset

func (x *V1Frame) Reset()

func (*V1Frame) String

func (x *V1Frame) String() string

type V1Frame_FrameType

type V1Frame_FrameType int32
const (
	V1Frame_UNKNOWN_FRAME_TYPE    V1Frame_FrameType = 0
	V1Frame_INTRODUCTION          V1Frame_FrameType = 1
	V1Frame_RESPONSE              V1Frame_FrameType = 2
	V1Frame_PAIRED_KEY_ENCRYPTION V1Frame_FrameType = 3
	V1Frame_PAIRED_KEY_RESULT     V1Frame_FrameType = 4
	V1Frame_CERTIFICATE_INFO      V1Frame_FrameType = 5
	V1Frame_CANCEL                V1Frame_FrameType = 6
)

func (V1Frame_FrameType) Descriptor

func (V1Frame_FrameType) Enum

func (V1Frame_FrameType) EnumDescriptor deprecated

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

Deprecated: Use V1Frame_FrameType.Descriptor instead.

func (V1Frame_FrameType) Number

func (V1Frame_FrameType) String

func (x V1Frame_FrameType) String() string

func (V1Frame_FrameType) Type

func (*V1Frame_FrameType) UnmarshalJSON deprecated

func (x *V1Frame_FrameType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type WifiCredentials

type WifiCredentials struct {

	// Wi-Fi password.
	Password *string `protobuf:"bytes,1,opt,name=password" json:"password,omitempty"`
	// True if the network is a hidden network that is not broadcasting its SSID.
	// Default is false.
	HiddenSsid *bool `protobuf:"varint,2,opt,name=hidden_ssid,json=hiddenSsid,def=0" json:"hidden_ssid,omitempty"`
	// contains filtered or unexported fields
}

NEXT_ID=3

func (*WifiCredentials) Descriptor deprecated

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

Deprecated: Use WifiCredentials.ProtoReflect.Descriptor instead.

func (*WifiCredentials) GetHiddenSsid

func (x *WifiCredentials) GetHiddenSsid() bool

func (*WifiCredentials) GetPassword

func (x *WifiCredentials) GetPassword() string

func (*WifiCredentials) ProtoMessage

func (*WifiCredentials) ProtoMessage()

func (*WifiCredentials) ProtoReflect

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

func (*WifiCredentials) Reset

func (x *WifiCredentials) Reset()

func (*WifiCredentials) String

func (x *WifiCredentials) String() string

type WifiCredentialsMetadata

type WifiCredentialsMetadata struct {

	// The Wifi network name. This will be sent in introduction.
	Ssid *string `protobuf:"bytes,2,opt,name=ssid" json:"ssid,omitempty"`
	// The security type of network (OPEN, WPA_PSK, WEP).
	SecurityType *WifiCredentialsMetadata_SecurityType `` /* 154-byte string literal not displayed */
	// The BYTE payload id that will be sent as a follow up containing the
	// password.
	PayloadId *int64 `protobuf:"varint,4,opt,name=payload_id,json=payloadId" json:"payload_id,omitempty"`
	// A uuid for the attachment. Should be unique across all attachments.
	Id *int64 `protobuf:"varint,5,opt,name=id" json:"id,omitempty"`
	// contains filtered or unexported fields
}

NEXT_ID=5

func (*WifiCredentialsMetadata) Descriptor deprecated

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

Deprecated: Use WifiCredentialsMetadata.ProtoReflect.Descriptor instead.

func (*WifiCredentialsMetadata) GetId

func (x *WifiCredentialsMetadata) GetId() int64

func (*WifiCredentialsMetadata) GetPayloadId

func (x *WifiCredentialsMetadata) GetPayloadId() int64

func (*WifiCredentialsMetadata) GetSecurityType

func (*WifiCredentialsMetadata) GetSsid

func (x *WifiCredentialsMetadata) GetSsid() string

func (*WifiCredentialsMetadata) ProtoMessage

func (*WifiCredentialsMetadata) ProtoMessage()

func (*WifiCredentialsMetadata) ProtoReflect

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

func (*WifiCredentialsMetadata) Reset

func (x *WifiCredentialsMetadata) Reset()

func (*WifiCredentialsMetadata) String

func (x *WifiCredentialsMetadata) String() string

type WifiCredentialsMetadata_SecurityType

type WifiCredentialsMetadata_SecurityType int32
const (
	WifiCredentialsMetadata_UNKNOWN_SECURITY_TYPE WifiCredentialsMetadata_SecurityType = 0
	WifiCredentialsMetadata_OPEN                  WifiCredentialsMetadata_SecurityType = 1
	WifiCredentialsMetadata_WPA_PSK               WifiCredentialsMetadata_SecurityType = 2
	WifiCredentialsMetadata_WEP                   WifiCredentialsMetadata_SecurityType = 3
)

func (WifiCredentialsMetadata_SecurityType) Descriptor

func (WifiCredentialsMetadata_SecurityType) Enum

func (WifiCredentialsMetadata_SecurityType) EnumDescriptor deprecated

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

Deprecated: Use WifiCredentialsMetadata_SecurityType.Descriptor instead.

func (WifiCredentialsMetadata_SecurityType) Number

func (WifiCredentialsMetadata_SecurityType) String

func (WifiCredentialsMetadata_SecurityType) Type

func (*WifiCredentialsMetadata_SecurityType) UnmarshalJSON deprecated

func (x *WifiCredentialsMetadata_SecurityType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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