...

Source file src/google.golang.org/genproto/googleapis/appengine/v1beta/firewall.pb.go

Documentation: google.golang.org/genproto/googleapis/appengine/v1beta

     1  // Copyright 2021 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/appengine/v1beta/firewall.proto
    20  
    21  package appengine
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Available actions to take on matching requests.
    39  type FirewallRule_Action int32
    40  
    41  const (
    42  	FirewallRule_UNSPECIFIED_ACTION FirewallRule_Action = 0
    43  	// Matching requests are allowed.
    44  	FirewallRule_ALLOW FirewallRule_Action = 1
    45  	// Matching requests are denied.
    46  	FirewallRule_DENY FirewallRule_Action = 2
    47  )
    48  
    49  // Enum value maps for FirewallRule_Action.
    50  var (
    51  	FirewallRule_Action_name = map[int32]string{
    52  		0: "UNSPECIFIED_ACTION",
    53  		1: "ALLOW",
    54  		2: "DENY",
    55  	}
    56  	FirewallRule_Action_value = map[string]int32{
    57  		"UNSPECIFIED_ACTION": 0,
    58  		"ALLOW":              1,
    59  		"DENY":               2,
    60  	}
    61  )
    62  
    63  func (x FirewallRule_Action) Enum() *FirewallRule_Action {
    64  	p := new(FirewallRule_Action)
    65  	*p = x
    66  	return p
    67  }
    68  
    69  func (x FirewallRule_Action) String() string {
    70  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    71  }
    72  
    73  func (FirewallRule_Action) Descriptor() protoreflect.EnumDescriptor {
    74  	return file_google_appengine_v1beta_firewall_proto_enumTypes[0].Descriptor()
    75  }
    76  
    77  func (FirewallRule_Action) Type() protoreflect.EnumType {
    78  	return &file_google_appengine_v1beta_firewall_proto_enumTypes[0]
    79  }
    80  
    81  func (x FirewallRule_Action) Number() protoreflect.EnumNumber {
    82  	return protoreflect.EnumNumber(x)
    83  }
    84  
    85  // Deprecated: Use FirewallRule_Action.Descriptor instead.
    86  func (FirewallRule_Action) EnumDescriptor() ([]byte, []int) {
    87  	return file_google_appengine_v1beta_firewall_proto_rawDescGZIP(), []int{0, 0}
    88  }
    89  
    90  // A single firewall rule that is evaluated against incoming traffic
    91  // and provides an action to take on matched requests.
    92  type FirewallRule struct {
    93  	state         protoimpl.MessageState
    94  	sizeCache     protoimpl.SizeCache
    95  	unknownFields protoimpl.UnknownFields
    96  
    97  	// A positive integer between [1, Int32.MaxValue-1] that defines the order of
    98  	// rule evaluation. Rules with the lowest priority are evaluated first.
    99  	//
   100  	// A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic
   101  	// when no previous rule matches. Only the action of this rule can be modified
   102  	// by the user.
   103  	Priority int32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"`
   104  	// The action to take on matched requests.
   105  	Action FirewallRule_Action `protobuf:"varint,2,opt,name=action,proto3,enum=google.appengine.v1beta.FirewallRule_Action" json:"action,omitempty"`
   106  	// IP address or range, defined using CIDR notation, of requests that this
   107  	// rule applies to. You can use the wildcard character "*" to match all IPs
   108  	// equivalent to "0/0" and "::/0" together.
   109  	// Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
   110  	//
   111  	//	or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
   112  	//
   113  	// <p>Truncation will be silently performed on addresses which are not
   114  	// properly truncated. For example, `1.2.3.4/24` is accepted as the same
   115  	// address as `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` is accepted
   116  	// as the same address as `2001:db8::/32`.
   117  	SourceRange string `protobuf:"bytes,3,opt,name=source_range,json=sourceRange,proto3" json:"source_range,omitempty"`
   118  	// An optional string description of this rule.
   119  	// This field has a maximum length of 100 characters.
   120  	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
   121  }
   122  
   123  func (x *FirewallRule) Reset() {
   124  	*x = FirewallRule{}
   125  	if protoimpl.UnsafeEnabled {
   126  		mi := &file_google_appengine_v1beta_firewall_proto_msgTypes[0]
   127  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   128  		ms.StoreMessageInfo(mi)
   129  	}
   130  }
   131  
   132  func (x *FirewallRule) String() string {
   133  	return protoimpl.X.MessageStringOf(x)
   134  }
   135  
   136  func (*FirewallRule) ProtoMessage() {}
   137  
   138  func (x *FirewallRule) ProtoReflect() protoreflect.Message {
   139  	mi := &file_google_appengine_v1beta_firewall_proto_msgTypes[0]
   140  	if protoimpl.UnsafeEnabled && x != nil {
   141  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   142  		if ms.LoadMessageInfo() == nil {
   143  			ms.StoreMessageInfo(mi)
   144  		}
   145  		return ms
   146  	}
   147  	return mi.MessageOf(x)
   148  }
   149  
   150  // Deprecated: Use FirewallRule.ProtoReflect.Descriptor instead.
   151  func (*FirewallRule) Descriptor() ([]byte, []int) {
   152  	return file_google_appengine_v1beta_firewall_proto_rawDescGZIP(), []int{0}
   153  }
   154  
   155  func (x *FirewallRule) GetPriority() int32 {
   156  	if x != nil {
   157  		return x.Priority
   158  	}
   159  	return 0
   160  }
   161  
   162  func (x *FirewallRule) GetAction() FirewallRule_Action {
   163  	if x != nil {
   164  		return x.Action
   165  	}
   166  	return FirewallRule_UNSPECIFIED_ACTION
   167  }
   168  
   169  func (x *FirewallRule) GetSourceRange() string {
   170  	if x != nil {
   171  		return x.SourceRange
   172  	}
   173  	return ""
   174  }
   175  
   176  func (x *FirewallRule) GetDescription() string {
   177  	if x != nil {
   178  		return x.Description
   179  	}
   180  	return ""
   181  }
   182  
   183  var File_google_appengine_v1beta_firewall_proto protoreflect.FileDescriptor
   184  
   185  var file_google_appengine_v1beta_firewall_proto_rawDesc = []byte{
   186  	0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69,
   187  	0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x77, 0x61,
   188  	0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   189  	0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
   190  	0x61, 0x22, 0xec, 0x01, 0x0a, 0x0c, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x52, 0x75,
   191  	0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01,
   192  	0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x44,
   193  	0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c,
   194  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e,
   195  	0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c,
   196  	0x6c, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63,
   197  	0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72,
   198  	0x61, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72,
   199  	0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
   200  	0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
   201  	0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x35, 0x0a, 0x06, 0x41, 0x63, 0x74,
   202  	0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
   203  	0x45, 0x44, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41,
   204  	0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x4e, 0x59, 0x10, 0x02,
   205  	0x42, 0xdc, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   206  	0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   207  	0x2e, 0x66, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x42, 0x0d, 0x46, 0x69, 0x72, 0x65, 0x77,
   208  	0x61, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67,
   209  	0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
   210  	0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
   211  	0x73, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65,
   212  	0x74, 0x61, 0x3b, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0xaa, 0x02, 0x1d, 0x47,
   213  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x45,
   214  	0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1d, 0x47,
   215  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x70, 0x70, 0x45,
   216  	0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x20, 0x47,
   217  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x70,
   218  	0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62,
   219  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   220  }
   221  
   222  var (
   223  	file_google_appengine_v1beta_firewall_proto_rawDescOnce sync.Once
   224  	file_google_appengine_v1beta_firewall_proto_rawDescData = file_google_appengine_v1beta_firewall_proto_rawDesc
   225  )
   226  
   227  func file_google_appengine_v1beta_firewall_proto_rawDescGZIP() []byte {
   228  	file_google_appengine_v1beta_firewall_proto_rawDescOnce.Do(func() {
   229  		file_google_appengine_v1beta_firewall_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_appengine_v1beta_firewall_proto_rawDescData)
   230  	})
   231  	return file_google_appengine_v1beta_firewall_proto_rawDescData
   232  }
   233  
   234  var file_google_appengine_v1beta_firewall_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   235  var file_google_appengine_v1beta_firewall_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   236  var file_google_appengine_v1beta_firewall_proto_goTypes = []interface{}{
   237  	(FirewallRule_Action)(0), // 0: google.appengine.v1beta.FirewallRule.Action
   238  	(*FirewallRule)(nil),     // 1: google.appengine.v1beta.FirewallRule
   239  }
   240  var file_google_appengine_v1beta_firewall_proto_depIdxs = []int32{
   241  	0, // 0: google.appengine.v1beta.FirewallRule.action:type_name -> google.appengine.v1beta.FirewallRule.Action
   242  	1, // [1:1] is the sub-list for method output_type
   243  	1, // [1:1] is the sub-list for method input_type
   244  	1, // [1:1] is the sub-list for extension type_name
   245  	1, // [1:1] is the sub-list for extension extendee
   246  	0, // [0:1] is the sub-list for field type_name
   247  }
   248  
   249  func init() { file_google_appengine_v1beta_firewall_proto_init() }
   250  func file_google_appengine_v1beta_firewall_proto_init() {
   251  	if File_google_appengine_v1beta_firewall_proto != nil {
   252  		return
   253  	}
   254  	if !protoimpl.UnsafeEnabled {
   255  		file_google_appengine_v1beta_firewall_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   256  			switch v := v.(*FirewallRule); i {
   257  			case 0:
   258  				return &v.state
   259  			case 1:
   260  				return &v.sizeCache
   261  			case 2:
   262  				return &v.unknownFields
   263  			default:
   264  				return nil
   265  			}
   266  		}
   267  	}
   268  	type x struct{}
   269  	out := protoimpl.TypeBuilder{
   270  		File: protoimpl.DescBuilder{
   271  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   272  			RawDescriptor: file_google_appengine_v1beta_firewall_proto_rawDesc,
   273  			NumEnums:      1,
   274  			NumMessages:   1,
   275  			NumExtensions: 0,
   276  			NumServices:   0,
   277  		},
   278  		GoTypes:           file_google_appengine_v1beta_firewall_proto_goTypes,
   279  		DependencyIndexes: file_google_appengine_v1beta_firewall_proto_depIdxs,
   280  		EnumInfos:         file_google_appengine_v1beta_firewall_proto_enumTypes,
   281  		MessageInfos:      file_google_appengine_v1beta_firewall_proto_msgTypes,
   282  	}.Build()
   283  	File_google_appengine_v1beta_firewall_proto = out.File
   284  	file_google_appengine_v1beta_firewall_proto_rawDesc = nil
   285  	file_google_appengine_v1beta_firewall_proto_goTypes = nil
   286  	file_google_appengine_v1beta_firewall_proto_depIdxs = nil
   287  }
   288  

View as plain text