...

Source file src/google.golang.org/genproto/googleapis/devtools/build/v1/build_status.pb.go

Documentation: google.golang.org/genproto/googleapis/devtools/build/v1

     1  // Copyright 2023 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.21.9
    19  // source: google/devtools/build/v1/build_status.proto
    20  
    21  package build
    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  	anypb "google.golang.org/protobuf/types/known/anypb"
    30  	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  // The end result of the Build.
    41  type BuildStatus_Result int32
    42  
    43  const (
    44  	// Unspecified or unknown.
    45  	BuildStatus_UNKNOWN_STATUS BuildStatus_Result = 0
    46  	// Build was successful and tests (if requested) all pass.
    47  	BuildStatus_COMMAND_SUCCEEDED BuildStatus_Result = 1
    48  	// Build error and/or test failure.
    49  	BuildStatus_COMMAND_FAILED BuildStatus_Result = 2
    50  	// Unable to obtain a result due to input provided by the user.
    51  	BuildStatus_USER_ERROR BuildStatus_Result = 3
    52  	// Unable to obtain a result due to a failure within the build system.
    53  	BuildStatus_SYSTEM_ERROR BuildStatus_Result = 4
    54  	// Build required too many resources, such as build tool RAM.
    55  	BuildStatus_RESOURCE_EXHAUSTED BuildStatus_Result = 5
    56  	// An invocation attempt time exceeded its deadline.
    57  	BuildStatus_INVOCATION_DEADLINE_EXCEEDED BuildStatus_Result = 6
    58  	// Build request time exceeded the request_deadline
    59  	BuildStatus_REQUEST_DEADLINE_EXCEEDED BuildStatus_Result = 8
    60  	// The build was cancelled by a call to CancelBuild.
    61  	BuildStatus_CANCELLED BuildStatus_Result = 7
    62  )
    63  
    64  // Enum value maps for BuildStatus_Result.
    65  var (
    66  	BuildStatus_Result_name = map[int32]string{
    67  		0: "UNKNOWN_STATUS",
    68  		1: "COMMAND_SUCCEEDED",
    69  		2: "COMMAND_FAILED",
    70  		3: "USER_ERROR",
    71  		4: "SYSTEM_ERROR",
    72  		5: "RESOURCE_EXHAUSTED",
    73  		6: "INVOCATION_DEADLINE_EXCEEDED",
    74  		8: "REQUEST_DEADLINE_EXCEEDED",
    75  		7: "CANCELLED",
    76  	}
    77  	BuildStatus_Result_value = map[string]int32{
    78  		"UNKNOWN_STATUS":               0,
    79  		"COMMAND_SUCCEEDED":            1,
    80  		"COMMAND_FAILED":               2,
    81  		"USER_ERROR":                   3,
    82  		"SYSTEM_ERROR":                 4,
    83  		"RESOURCE_EXHAUSTED":           5,
    84  		"INVOCATION_DEADLINE_EXCEEDED": 6,
    85  		"REQUEST_DEADLINE_EXCEEDED":    8,
    86  		"CANCELLED":                    7,
    87  	}
    88  )
    89  
    90  func (x BuildStatus_Result) Enum() *BuildStatus_Result {
    91  	p := new(BuildStatus_Result)
    92  	*p = x
    93  	return p
    94  }
    95  
    96  func (x BuildStatus_Result) String() string {
    97  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    98  }
    99  
   100  func (BuildStatus_Result) Descriptor() protoreflect.EnumDescriptor {
   101  	return file_google_devtools_build_v1_build_status_proto_enumTypes[0].Descriptor()
   102  }
   103  
   104  func (BuildStatus_Result) Type() protoreflect.EnumType {
   105  	return &file_google_devtools_build_v1_build_status_proto_enumTypes[0]
   106  }
   107  
   108  func (x BuildStatus_Result) Number() protoreflect.EnumNumber {
   109  	return protoreflect.EnumNumber(x)
   110  }
   111  
   112  // Deprecated: Use BuildStatus_Result.Descriptor instead.
   113  func (BuildStatus_Result) EnumDescriptor() ([]byte, []int) {
   114  	return file_google_devtools_build_v1_build_status_proto_rawDescGZIP(), []int{0, 0}
   115  }
   116  
   117  // Status used for both invocation attempt and overall build completion.
   118  type BuildStatus struct {
   119  	state         protoimpl.MessageState
   120  	sizeCache     protoimpl.SizeCache
   121  	unknownFields protoimpl.UnknownFields
   122  
   123  	// The end result.
   124  	Result BuildStatus_Result `protobuf:"varint,1,opt,name=result,proto3,enum=google.devtools.build.v1.BuildStatus_Result" json:"result,omitempty"`
   125  	// Final invocation ID of the build, if there was one.
   126  	// This field is only set on a status in BuildFinished event.
   127  	FinalInvocationId string `protobuf:"bytes,3,opt,name=final_invocation_id,json=finalInvocationId,proto3" json:"final_invocation_id,omitempty"`
   128  	// Build tool exit code. Integer value returned by the executed build tool.
   129  	// Might not be available in some cases, e.g., a build timeout.
   130  	BuildToolExitCode *wrapperspb.Int32Value `protobuf:"bytes,4,opt,name=build_tool_exit_code,json=buildToolExitCode,proto3" json:"build_tool_exit_code,omitempty"`
   131  	// Human-readable error message. Do not use for programmatic purposes.
   132  	ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
   133  	// Fine-grained diagnostic information to complement the status.
   134  	Details *anypb.Any `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
   135  }
   136  
   137  func (x *BuildStatus) Reset() {
   138  	*x = BuildStatus{}
   139  	if protoimpl.UnsafeEnabled {
   140  		mi := &file_google_devtools_build_v1_build_status_proto_msgTypes[0]
   141  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   142  		ms.StoreMessageInfo(mi)
   143  	}
   144  }
   145  
   146  func (x *BuildStatus) String() string {
   147  	return protoimpl.X.MessageStringOf(x)
   148  }
   149  
   150  func (*BuildStatus) ProtoMessage() {}
   151  
   152  func (x *BuildStatus) ProtoReflect() protoreflect.Message {
   153  	mi := &file_google_devtools_build_v1_build_status_proto_msgTypes[0]
   154  	if protoimpl.UnsafeEnabled && x != nil {
   155  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   156  		if ms.LoadMessageInfo() == nil {
   157  			ms.StoreMessageInfo(mi)
   158  		}
   159  		return ms
   160  	}
   161  	return mi.MessageOf(x)
   162  }
   163  
   164  // Deprecated: Use BuildStatus.ProtoReflect.Descriptor instead.
   165  func (*BuildStatus) Descriptor() ([]byte, []int) {
   166  	return file_google_devtools_build_v1_build_status_proto_rawDescGZIP(), []int{0}
   167  }
   168  
   169  func (x *BuildStatus) GetResult() BuildStatus_Result {
   170  	if x != nil {
   171  		return x.Result
   172  	}
   173  	return BuildStatus_UNKNOWN_STATUS
   174  }
   175  
   176  func (x *BuildStatus) GetFinalInvocationId() string {
   177  	if x != nil {
   178  		return x.FinalInvocationId
   179  	}
   180  	return ""
   181  }
   182  
   183  func (x *BuildStatus) GetBuildToolExitCode() *wrapperspb.Int32Value {
   184  	if x != nil {
   185  		return x.BuildToolExitCode
   186  	}
   187  	return nil
   188  }
   189  
   190  func (x *BuildStatus) GetErrorMessage() string {
   191  	if x != nil {
   192  		return x.ErrorMessage
   193  	}
   194  	return ""
   195  }
   196  
   197  func (x *BuildStatus) GetDetails() *anypb.Any {
   198  	if x != nil {
   199  		return x.Details
   200  	}
   201  	return nil
   202  }
   203  
   204  var File_google_devtools_build_v1_build_status_proto protoreflect.FileDescriptor
   205  
   206  var file_google_devtools_build_v1_build_status_proto_rawDesc = []byte{
   207  	0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
   208  	0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64,
   209  	0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67,
   210  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62,
   211  	0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   212  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f,
   213  	0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   214  	0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   215  	0x74, 0x6f, 0x22, 0xfa, 0x03, 0x0a, 0x0b, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74,
   216  	0x75, 0x73, 0x12, 0x44, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01,
   217  	0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74,
   218  	0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75,
   219  	0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
   220  	0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x61,
   221  	0x6c, 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
   222  	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x49, 0x6e, 0x76, 0x6f,
   223  	0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x4c, 0x0a, 0x14, 0x62, 0x75, 0x69, 0x6c,
   224  	0x64, 0x5f, 0x74, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65,
   225  	0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   226  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61,
   227  	0x6c, 0x75, 0x65, 0x52, 0x11, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x6f, 0x6f, 0x6c, 0x45, 0x78,
   228  	0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
   229  	0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65,
   230  	0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64,
   231  	0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
   232  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41,
   233  	0x6e, 0x79, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xd1, 0x01, 0x0a, 0x06,
   234  	0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
   235  	0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f,
   236  	0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10,
   237  	0x01, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49,
   238  	0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x45, 0x52,
   239  	0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f,
   240  	0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x45, 0x53, 0x4f, 0x55,
   241  	0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, 0x55, 0x53, 0x54, 0x45, 0x44, 0x10, 0x05, 0x12,
   242  	0x20, 0x0a, 0x1c, 0x49, 0x4e, 0x56, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45,
   243  	0x41, 0x44, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10,
   244  	0x06, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x44, 0x45, 0x41,
   245  	0x44, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x08,
   246  	0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x07, 0x42,
   247  	0x8c, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64,
   248  	0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31,
   249  	0x42, 0x10, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f,
   250  	0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
   251  	0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   252  	0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74,
   253  	0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x75,
   254  	0x69, 0x6c, 0x64, 0xf8, 0x01, 0x01, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
   255  	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x5c, 0x56, 0x31, 0x62, 0x06,
   256  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   257  }
   258  
   259  var (
   260  	file_google_devtools_build_v1_build_status_proto_rawDescOnce sync.Once
   261  	file_google_devtools_build_v1_build_status_proto_rawDescData = file_google_devtools_build_v1_build_status_proto_rawDesc
   262  )
   263  
   264  func file_google_devtools_build_v1_build_status_proto_rawDescGZIP() []byte {
   265  	file_google_devtools_build_v1_build_status_proto_rawDescOnce.Do(func() {
   266  		file_google_devtools_build_v1_build_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_build_v1_build_status_proto_rawDescData)
   267  	})
   268  	return file_google_devtools_build_v1_build_status_proto_rawDescData
   269  }
   270  
   271  var file_google_devtools_build_v1_build_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   272  var file_google_devtools_build_v1_build_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   273  var file_google_devtools_build_v1_build_status_proto_goTypes = []interface{}{
   274  	(BuildStatus_Result)(0),       // 0: google.devtools.build.v1.BuildStatus.Result
   275  	(*BuildStatus)(nil),           // 1: google.devtools.build.v1.BuildStatus
   276  	(*wrapperspb.Int32Value)(nil), // 2: google.protobuf.Int32Value
   277  	(*anypb.Any)(nil),             // 3: google.protobuf.Any
   278  }
   279  var file_google_devtools_build_v1_build_status_proto_depIdxs = []int32{
   280  	0, // 0: google.devtools.build.v1.BuildStatus.result:type_name -> google.devtools.build.v1.BuildStatus.Result
   281  	2, // 1: google.devtools.build.v1.BuildStatus.build_tool_exit_code:type_name -> google.protobuf.Int32Value
   282  	3, // 2: google.devtools.build.v1.BuildStatus.details:type_name -> google.protobuf.Any
   283  	3, // [3:3] is the sub-list for method output_type
   284  	3, // [3:3] is the sub-list for method input_type
   285  	3, // [3:3] is the sub-list for extension type_name
   286  	3, // [3:3] is the sub-list for extension extendee
   287  	0, // [0:3] is the sub-list for field type_name
   288  }
   289  
   290  func init() { file_google_devtools_build_v1_build_status_proto_init() }
   291  func file_google_devtools_build_v1_build_status_proto_init() {
   292  	if File_google_devtools_build_v1_build_status_proto != nil {
   293  		return
   294  	}
   295  	if !protoimpl.UnsafeEnabled {
   296  		file_google_devtools_build_v1_build_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   297  			switch v := v.(*BuildStatus); i {
   298  			case 0:
   299  				return &v.state
   300  			case 1:
   301  				return &v.sizeCache
   302  			case 2:
   303  				return &v.unknownFields
   304  			default:
   305  				return nil
   306  			}
   307  		}
   308  	}
   309  	type x struct{}
   310  	out := protoimpl.TypeBuilder{
   311  		File: protoimpl.DescBuilder{
   312  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   313  			RawDescriptor: file_google_devtools_build_v1_build_status_proto_rawDesc,
   314  			NumEnums:      1,
   315  			NumMessages:   1,
   316  			NumExtensions: 0,
   317  			NumServices:   0,
   318  		},
   319  		GoTypes:           file_google_devtools_build_v1_build_status_proto_goTypes,
   320  		DependencyIndexes: file_google_devtools_build_v1_build_status_proto_depIdxs,
   321  		EnumInfos:         file_google_devtools_build_v1_build_status_proto_enumTypes,
   322  		MessageInfos:      file_google_devtools_build_v1_build_status_proto_msgTypes,
   323  	}.Build()
   324  	File_google_devtools_build_v1_build_status_proto = out.File
   325  	file_google_devtools_build_v1_build_status_proto_rawDesc = nil
   326  	file_google_devtools_build_v1_build_status_proto_goTypes = nil
   327  	file_google_devtools_build_v1_build_status_proto_depIdxs = nil
   328  }
   329  

View as plain text