// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: edgeauth.proto

package pb

import (
	time "time"

	proto "github.com/gogo/protobuf/proto"
)

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package

type EdgeRegisterAccessRequest struct {
	// Serialized access in the usual base58 format.
	// Specifies the bucket, prefix, satellite and encryption key.
	AccessGrant string `protobuf:"bytes,1,opt,name=access_grant,json=accessGrant,proto3" json:"access_grant,omitempty"`
	// Enable access without providing the secret.
	Public               bool     `protobuf:"varint,2,opt,name=public,proto3" json:"public,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *EdgeRegisterAccessRequest) Reset()         { *m = EdgeRegisterAccessRequest{} }
func (m *EdgeRegisterAccessRequest) String() string { return proto.CompactTextString(m) }
func (*EdgeRegisterAccessRequest) ProtoMessage()    {}

func (m *EdgeRegisterAccessRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_EdgeRegisterAccessRequest.Unmarshal(m, b)
}
func (m *EdgeRegisterAccessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_EdgeRegisterAccessRequest.Marshal(b, m, deterministic)
}
func (m *EdgeRegisterAccessRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_EdgeRegisterAccessRequest.Merge(m, src)
}
func (m *EdgeRegisterAccessRequest) XXX_Size() int {
	return xxx_messageInfo_EdgeRegisterAccessRequest.Size(m)
}
func (m *EdgeRegisterAccessRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_EdgeRegisterAccessRequest.DiscardUnknown(m)
}

var xxx_messageInfo_EdgeRegisterAccessRequest proto.InternalMessageInfo

func (m *EdgeRegisterAccessRequest) GetAccessGrant() string {
	if m != nil {
		return m.AccessGrant
	}
	return ""
}

func (m *EdgeRegisterAccessRequest) GetPublic() bool {
	if m != nil {
		return m.Public
	}
	return false
}

// Credentials, compatible with S3 clients.
type EdgeRegisterAccessResponse struct {
	// Alphanumeric string.
	// AWS specifies this should be between 16 and 128 characters.
	// This is also used for linksharing in the url path.
	AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
	// Alphanumeric string.
	SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
	// HTTP(S) URL to the Gateway.
	Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// Restricted expiration date of the access grant.
	// It is set if the original expiration date surpassed the free-tier limit.
	FreeTierRestrictedExpiration *time.Time `protobuf:"bytes,4,opt,name=free_tier_restricted_expiration,json=freeTierRestrictedExpiration,proto3,stdtime" json:"free_tier_restricted_expiration,omitempty"`
	XXX_NoUnkeyedLiteral         struct{}   `json:"-"`
	XXX_unrecognized             []byte     `json:"-"`
	XXX_sizecache                int32      `json:"-"`
}

func (m *EdgeRegisterAccessResponse) Reset()         { *m = EdgeRegisterAccessResponse{} }
func (m *EdgeRegisterAccessResponse) String() string { return proto.CompactTextString(m) }
func (*EdgeRegisterAccessResponse) ProtoMessage()    {}

func (m *EdgeRegisterAccessResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_EdgeRegisterAccessResponse.Unmarshal(m, b)
}
func (m *EdgeRegisterAccessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_EdgeRegisterAccessResponse.Marshal(b, m, deterministic)
}
func (m *EdgeRegisterAccessResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_EdgeRegisterAccessResponse.Merge(m, src)
}
func (m *EdgeRegisterAccessResponse) XXX_Size() int {
	return xxx_messageInfo_EdgeRegisterAccessResponse.Size(m)
}
func (m *EdgeRegisterAccessResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_EdgeRegisterAccessResponse.DiscardUnknown(m)
}

var xxx_messageInfo_EdgeRegisterAccessResponse proto.InternalMessageInfo

func (m *EdgeRegisterAccessResponse) GetAccessKeyId() string {
	if m != nil {
		return m.AccessKeyId
	}
	return ""
}

func (m *EdgeRegisterAccessResponse) GetSecretKey() string {
	if m != nil {
		return m.SecretKey
	}
	return ""
}

func (m *EdgeRegisterAccessResponse) GetEndpoint() string {
	if m != nil {
		return m.Endpoint
	}
	return ""
}

func (m *EdgeRegisterAccessResponse) GetFreeTierRestrictedExpiration() *time.Time {
	if m != nil {
		return m.FreeTierRestrictedExpiration
	}
	return nil
}
