github.com/cloudwan/edgelq-sdk@v1.15.4/logging/resources/v1alpha2/log/log.pb.fieldpathbuilder.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/logging/proto/v1alpha2/log.proto 3 // DO NOT EDIT!!! 4 5 package log 6 7 // proto imports 8 import ( 9 iam_iam_common "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/common" 10 iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/organization" 11 iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/project" 12 common "github.com/cloudwan/edgelq-sdk/logging/resources/v1alpha2/common" 13 log_descriptor "github.com/cloudwan/edgelq-sdk/logging/resources/v1alpha2/log_descriptor" 14 meta_service "github.com/cloudwan/edgelq-sdk/meta/resources/v1alpha2/service" 15 meta "github.com/cloudwan/goten-sdk/types/meta" 16 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 17 structpb "google.golang.org/protobuf/types/known/structpb" 18 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 19 ) 20 21 // make sure we're using proto imports 22 var ( 23 _ = &iam_iam_common.PCR{} 24 _ = &iam_organization.Organization{} 25 _ = &iam_project.Project{} 26 _ = &common.LabelDescriptor{} 27 _ = &log_descriptor.LogDescriptor{} 28 _ = &meta_service.Service{} 29 _ = &structpb.Struct{} 30 _ = ×tamppb.Timestamp{} 31 _ = &meta.Meta{} 32 _ = &multi_region_policy.MultiRegionPolicy{} 33 ) 34 35 type LogFieldPathBuilder struct{} 36 37 func NewLogFieldPathBuilder() LogFieldPathBuilder { 38 return LogFieldPathBuilder{} 39 } 40 func (LogFieldPathBuilder) Name() LogPathSelectorName { 41 return LogPathSelectorName{} 42 } 43 func (LogFieldPathBuilder) Scope() LogPathSelectorScope { 44 return LogPathSelectorScope{} 45 } 46 func (LogFieldPathBuilder) Service() LogPathSelectorService { 47 return LogPathSelectorService{} 48 } 49 func (LogFieldPathBuilder) Region() LogPathSelectorRegion { 50 return LogPathSelectorRegion{} 51 } 52 func (LogFieldPathBuilder) Version() LogPathSelectorVersion { 53 return LogPathSelectorVersion{} 54 } 55 func (LogFieldPathBuilder) LogDescriptor() LogPathSelectorLogDescriptor { 56 return LogPathSelectorLogDescriptor{} 57 } 58 func (LogFieldPathBuilder) Labels() LogPathSelectorLabels { 59 return LogPathSelectorLabels{} 60 } 61 func (LogFieldPathBuilder) Time() LogPathSelectorTime { 62 return LogPathSelectorTime{} 63 } 64 func (LogFieldPathBuilder) Payload() LogPathSelectorPayload { 65 return LogPathSelectorPayload{} 66 } 67 68 type LogPathSelectorName struct{} 69 70 func (LogPathSelectorName) FieldPath() *Log_FieldTerminalPath { 71 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorName} 72 } 73 74 func (s LogPathSelectorName) WithValue(value *Name) *Log_FieldTerminalPathValue { 75 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 76 } 77 78 func (s LogPathSelectorName) WithArrayOfValues(values []*Name) *Log_FieldTerminalPathArrayOfValues { 79 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 80 } 81 82 type LogPathSelectorScope struct{} 83 84 func (LogPathSelectorScope) FieldPath() *Log_FieldTerminalPath { 85 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorScope} 86 } 87 88 func (s LogPathSelectorScope) WithValue(value string) *Log_FieldTerminalPathValue { 89 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 90 } 91 92 func (s LogPathSelectorScope) WithArrayOfValues(values []string) *Log_FieldTerminalPathArrayOfValues { 93 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 94 } 95 96 type LogPathSelectorService struct{} 97 98 func (LogPathSelectorService) FieldPath() *Log_FieldTerminalPath { 99 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorService} 100 } 101 102 func (s LogPathSelectorService) WithValue(value string) *Log_FieldTerminalPathValue { 103 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 104 } 105 106 func (s LogPathSelectorService) WithArrayOfValues(values []string) *Log_FieldTerminalPathArrayOfValues { 107 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 108 } 109 110 type LogPathSelectorRegion struct{} 111 112 func (LogPathSelectorRegion) FieldPath() *Log_FieldTerminalPath { 113 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorRegion} 114 } 115 116 func (s LogPathSelectorRegion) WithValue(value string) *Log_FieldTerminalPathValue { 117 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 118 } 119 120 func (s LogPathSelectorRegion) WithArrayOfValues(values []string) *Log_FieldTerminalPathArrayOfValues { 121 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 122 } 123 124 type LogPathSelectorVersion struct{} 125 126 func (LogPathSelectorVersion) FieldPath() *Log_FieldTerminalPath { 127 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorVersion} 128 } 129 130 func (s LogPathSelectorVersion) WithValue(value string) *Log_FieldTerminalPathValue { 131 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 132 } 133 134 func (s LogPathSelectorVersion) WithArrayOfValues(values []string) *Log_FieldTerminalPathArrayOfValues { 135 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 136 } 137 138 type LogPathSelectorLogDescriptor struct{} 139 140 func (LogPathSelectorLogDescriptor) FieldPath() *Log_FieldTerminalPath { 141 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorLogDescriptor} 142 } 143 144 func (s LogPathSelectorLogDescriptor) WithValue(value *log_descriptor.Reference) *Log_FieldTerminalPathValue { 145 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 146 } 147 148 func (s LogPathSelectorLogDescriptor) WithArrayOfValues(values []*log_descriptor.Reference) *Log_FieldTerminalPathArrayOfValues { 149 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 150 } 151 152 type LogPathSelectorLabels struct{} 153 154 func (LogPathSelectorLabels) FieldPath() *Log_FieldTerminalPath { 155 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorLabels} 156 } 157 158 func (s LogPathSelectorLabels) WithValue(value map[string]string) *Log_FieldTerminalPathValue { 159 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 160 } 161 162 func (s LogPathSelectorLabels) WithArrayOfValues(values []map[string]string) *Log_FieldTerminalPathArrayOfValues { 163 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 164 } 165 166 func (LogPathSelectorLabels) WithKey(key string) LogMapPathSelectorLabels { 167 return LogMapPathSelectorLabels{key: key} 168 } 169 170 type LogMapPathSelectorLabels struct { 171 key string 172 } 173 174 func (s LogMapPathSelectorLabels) FieldPath() *Log_FieldPathMap { 175 return &Log_FieldPathMap{selector: Log_FieldPathSelectorLabels, key: s.key} 176 } 177 178 func (s LogMapPathSelectorLabels) WithValue(value string) *Log_FieldPathMapValue { 179 return s.FieldPath().WithIValue(value).(*Log_FieldPathMapValue) 180 } 181 182 func (s LogMapPathSelectorLabels) WithArrayOfValues(values []string) *Log_FieldPathMapArrayOfValues { 183 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldPathMapArrayOfValues) 184 } 185 186 type LogPathSelectorTime struct{} 187 188 func (LogPathSelectorTime) FieldPath() *Log_FieldTerminalPath { 189 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorTime} 190 } 191 192 func (s LogPathSelectorTime) WithValue(value *timestamppb.Timestamp) *Log_FieldTerminalPathValue { 193 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 194 } 195 196 func (s LogPathSelectorTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Log_FieldTerminalPathArrayOfValues { 197 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 198 } 199 200 type LogPathSelectorPayload struct{} 201 202 func (LogPathSelectorPayload) FieldPath() *Log_FieldTerminalPath { 203 return &Log_FieldTerminalPath{selector: Log_FieldPathSelectorPayload} 204 } 205 206 func (s LogPathSelectorPayload) WithValue(value *structpb.Struct) *Log_FieldTerminalPathValue { 207 return s.FieldPath().WithIValue(value).(*Log_FieldTerminalPathValue) 208 } 209 210 func (s LogPathSelectorPayload) WithArrayOfValues(values []*structpb.Struct) *Log_FieldTerminalPathArrayOfValues { 211 return s.FieldPath().WithIArrayOfValues(values).(*Log_FieldTerminalPathArrayOfValues) 212 }