mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-19 00:31:02 -04:00
843aebf2c1
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
674 lines
26 KiB
Go
674 lines
26 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: google/cloud/runtimeconfig/v1beta1/resources.proto
|
|
|
|
package runtimeconfig // import "google.golang.org/genproto/googleapis/cloud/runtimeconfig/v1beta1"
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import duration "github.com/golang/protobuf/ptypes/duration"
|
|
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
|
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
|
import status "google.golang.org/genproto/googleapis/rpc/status"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
// The `VariableState` describes the last known state of the variable and is
|
|
// used during a `variables().watch` call to distinguish the state of the
|
|
// variable.
|
|
type VariableState int32
|
|
|
|
const (
|
|
// Default variable state.
|
|
VariableState_VARIABLE_STATE_UNSPECIFIED VariableState = 0
|
|
// The variable was updated, while `variables().watch` was executing.
|
|
VariableState_UPDATED VariableState = 1
|
|
// The variable was deleted, while `variables().watch` was executing.
|
|
VariableState_DELETED VariableState = 2
|
|
)
|
|
|
|
var VariableState_name = map[int32]string{
|
|
0: "VARIABLE_STATE_UNSPECIFIED",
|
|
1: "UPDATED",
|
|
2: "DELETED",
|
|
}
|
|
var VariableState_value = map[string]int32{
|
|
"VARIABLE_STATE_UNSPECIFIED": 0,
|
|
"UPDATED": 1,
|
|
"DELETED": 2,
|
|
}
|
|
|
|
func (x VariableState) String() string {
|
|
return proto.EnumName(VariableState_name, int32(x))
|
|
}
|
|
func (VariableState) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_resources_03b93da0510fa410, []int{0}
|
|
}
|
|
|
|
// A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
|
|
// service. A RuntimeConfig resource consists of metadata and a hierarchy of
|
|
// variables.
|
|
type RuntimeConfig struct {
|
|
// The resource name of a runtime config. The name must have the format:
|
|
//
|
|
// projects/[PROJECT_ID]/configs/[CONFIG_NAME]
|
|
//
|
|
// The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
|
|
// arbitrary name that matches RFC 1035 segment specification. The length of
|
|
// `[CONFIG_NAME]` must be less than 64 bytes.
|
|
//
|
|
// You pick the RuntimeConfig resource name, but the server will validate that
|
|
// the name adheres to this format. After you create the resource, you cannot
|
|
// change the resource's name.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// An optional description of the RuntimeConfig object.
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RuntimeConfig) Reset() { *m = RuntimeConfig{} }
|
|
func (m *RuntimeConfig) String() string { return proto.CompactTextString(m) }
|
|
func (*RuntimeConfig) ProtoMessage() {}
|
|
func (*RuntimeConfig) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resources_03b93da0510fa410, []int{0}
|
|
}
|
|
func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RuntimeConfig.Unmarshal(m, b)
|
|
}
|
|
func (m *RuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RuntimeConfig.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *RuntimeConfig) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RuntimeConfig.Merge(dst, src)
|
|
}
|
|
func (m *RuntimeConfig) XXX_Size() int {
|
|
return xxx_messageInfo_RuntimeConfig.Size(m)
|
|
}
|
|
func (m *RuntimeConfig) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RuntimeConfig.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RuntimeConfig proto.InternalMessageInfo
|
|
|
|
func (m *RuntimeConfig) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RuntimeConfig) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Describes a single variable within a RuntimeConfig resource.
|
|
// The name denotes the hierarchical variable name. For example,
|
|
// `ports/serving_port` is a valid variable name. The variable value is an
|
|
// opaque string and only leaf variables can have values (that is, variables
|
|
// that do not have any child variables).
|
|
type Variable struct {
|
|
// The name of the variable resource, in the format:
|
|
//
|
|
// projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
|
|
//
|
|
// The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
|
|
// valid RuntimeConfig reource and `[VARIABLE_NAME]` follows Unix file system
|
|
// file path naming.
|
|
//
|
|
// The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
|
|
// dashes. Slashes are used as path element separators and are not part of the
|
|
// `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
|
|
// non-slash character. Multiple slashes are coalesced into single slash
|
|
// character. Each path segment should follow RFC 1035 segment specification.
|
|
// The length of a `[VARIABLE_NAME]` must be less than 256 bytes.
|
|
//
|
|
// Once you create a variable, you cannot change the variable name.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// The the value of the variable. It can be either a binary or a string
|
|
// value. You must specify one of either `value` or `text`. Specifying both
|
|
// will cause the server to return an error.
|
|
//
|
|
// Types that are valid to be assigned to Contents:
|
|
// *Variable_Value
|
|
// *Variable_Text
|
|
Contents isVariable_Contents `protobuf_oneof:"contents"`
|
|
// [Output Only] The time of the last variable update.
|
|
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
|
|
// [Ouput only] The current state of the variable. The variable state indicates
|
|
// the outcome of the `variables().watch` call and is visible through the
|
|
// `get` and `list` calls.
|
|
State VariableState `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.runtimeconfig.v1beta1.VariableState" json:"state,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Variable) Reset() { *m = Variable{} }
|
|
func (m *Variable) String() string { return proto.CompactTextString(m) }
|
|
func (*Variable) ProtoMessage() {}
|
|
func (*Variable) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resources_03b93da0510fa410, []int{1}
|
|
}
|
|
func (m *Variable) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Variable.Unmarshal(m, b)
|
|
}
|
|
func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Variable.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Variable) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Variable.Merge(dst, src)
|
|
}
|
|
func (m *Variable) XXX_Size() int {
|
|
return xxx_messageInfo_Variable.Size(m)
|
|
}
|
|
func (m *Variable) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Variable.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Variable proto.InternalMessageInfo
|
|
|
|
type isVariable_Contents interface {
|
|
isVariable_Contents()
|
|
}
|
|
|
|
type Variable_Value struct {
|
|
Value []byte `protobuf:"bytes,2,opt,name=value,proto3,oneof"`
|
|
}
|
|
type Variable_Text struct {
|
|
Text string `protobuf:"bytes,5,opt,name=text,proto3,oneof"`
|
|
}
|
|
|
|
func (*Variable_Value) isVariable_Contents() {}
|
|
func (*Variable_Text) isVariable_Contents() {}
|
|
|
|
func (m *Variable) GetContents() isVariable_Contents {
|
|
if m != nil {
|
|
return m.Contents
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Variable) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Variable) GetValue() []byte {
|
|
if x, ok := m.GetContents().(*Variable_Value); ok {
|
|
return x.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Variable) GetText() string {
|
|
if x, ok := m.GetContents().(*Variable_Text); ok {
|
|
return x.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Variable) GetUpdateTime() *timestamp.Timestamp {
|
|
if m != nil {
|
|
return m.UpdateTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Variable) GetState() VariableState {
|
|
if m != nil {
|
|
return m.State
|
|
}
|
|
return VariableState_VARIABLE_STATE_UNSPECIFIED
|
|
}
|
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
func (*Variable) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
|
return _Variable_OneofMarshaler, _Variable_OneofUnmarshaler, _Variable_OneofSizer, []interface{}{
|
|
(*Variable_Value)(nil),
|
|
(*Variable_Text)(nil),
|
|
}
|
|
}
|
|
|
|
func _Variable_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
|
m := msg.(*Variable)
|
|
// contents
|
|
switch x := m.Contents.(type) {
|
|
case *Variable_Value:
|
|
b.EncodeVarint(2<<3 | proto.WireBytes)
|
|
b.EncodeRawBytes(x.Value)
|
|
case *Variable_Text:
|
|
b.EncodeVarint(5<<3 | proto.WireBytes)
|
|
b.EncodeStringBytes(x.Text)
|
|
case nil:
|
|
default:
|
|
return fmt.Errorf("Variable.Contents has unexpected type %T", x)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func _Variable_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
|
m := msg.(*Variable)
|
|
switch tag {
|
|
case 2: // contents.value
|
|
if wire != proto.WireBytes {
|
|
return true, proto.ErrInternalBadWireType
|
|
}
|
|
x, err := b.DecodeRawBytes(true)
|
|
m.Contents = &Variable_Value{x}
|
|
return true, err
|
|
case 5: // contents.text
|
|
if wire != proto.WireBytes {
|
|
return true, proto.ErrInternalBadWireType
|
|
}
|
|
x, err := b.DecodeStringBytes()
|
|
m.Contents = &Variable_Text{x}
|
|
return true, err
|
|
default:
|
|
return false, nil
|
|
}
|
|
}
|
|
|
|
func _Variable_OneofSizer(msg proto.Message) (n int) {
|
|
m := msg.(*Variable)
|
|
// contents
|
|
switch x := m.Contents.(type) {
|
|
case *Variable_Value:
|
|
n += 1 // tag and wire
|
|
n += proto.SizeVarint(uint64(len(x.Value)))
|
|
n += len(x.Value)
|
|
case *Variable_Text:
|
|
n += 1 // tag and wire
|
|
n += proto.SizeVarint(uint64(len(x.Text)))
|
|
n += len(x.Text)
|
|
case nil:
|
|
default:
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
|
}
|
|
return n
|
|
}
|
|
|
|
// The condition that a Waiter resource is waiting for.
|
|
type EndCondition struct {
|
|
// The condition oneof holds the available condition types for this
|
|
// EndCondition. Currently, the only available type is Cardinality.
|
|
//
|
|
// Types that are valid to be assigned to Condition:
|
|
// *EndCondition_Cardinality_
|
|
Condition isEndCondition_Condition `protobuf_oneof:"condition"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EndCondition) Reset() { *m = EndCondition{} }
|
|
func (m *EndCondition) String() string { return proto.CompactTextString(m) }
|
|
func (*EndCondition) ProtoMessage() {}
|
|
func (*EndCondition) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resources_03b93da0510fa410, []int{2}
|
|
}
|
|
func (m *EndCondition) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EndCondition.Unmarshal(m, b)
|
|
}
|
|
func (m *EndCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EndCondition.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *EndCondition) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EndCondition.Merge(dst, src)
|
|
}
|
|
func (m *EndCondition) XXX_Size() int {
|
|
return xxx_messageInfo_EndCondition.Size(m)
|
|
}
|
|
func (m *EndCondition) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EndCondition.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EndCondition proto.InternalMessageInfo
|
|
|
|
type isEndCondition_Condition interface {
|
|
isEndCondition_Condition()
|
|
}
|
|
|
|
type EndCondition_Cardinality_ struct {
|
|
Cardinality *EndCondition_Cardinality `protobuf:"bytes,1,opt,name=cardinality,proto3,oneof"`
|
|
}
|
|
|
|
func (*EndCondition_Cardinality_) isEndCondition_Condition() {}
|
|
|
|
func (m *EndCondition) GetCondition() isEndCondition_Condition {
|
|
if m != nil {
|
|
return m.Condition
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *EndCondition) GetCardinality() *EndCondition_Cardinality {
|
|
if x, ok := m.GetCondition().(*EndCondition_Cardinality_); ok {
|
|
return x.Cardinality
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
func (*EndCondition) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
|
return _EndCondition_OneofMarshaler, _EndCondition_OneofUnmarshaler, _EndCondition_OneofSizer, []interface{}{
|
|
(*EndCondition_Cardinality_)(nil),
|
|
}
|
|
}
|
|
|
|
func _EndCondition_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
|
m := msg.(*EndCondition)
|
|
// condition
|
|
switch x := m.Condition.(type) {
|
|
case *EndCondition_Cardinality_:
|
|
b.EncodeVarint(1<<3 | proto.WireBytes)
|
|
if err := b.EncodeMessage(x.Cardinality); err != nil {
|
|
return err
|
|
}
|
|
case nil:
|
|
default:
|
|
return fmt.Errorf("EndCondition.Condition has unexpected type %T", x)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func _EndCondition_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
|
m := msg.(*EndCondition)
|
|
switch tag {
|
|
case 1: // condition.cardinality
|
|
if wire != proto.WireBytes {
|
|
return true, proto.ErrInternalBadWireType
|
|
}
|
|
msg := new(EndCondition_Cardinality)
|
|
err := b.DecodeMessage(msg)
|
|
m.Condition = &EndCondition_Cardinality_{msg}
|
|
return true, err
|
|
default:
|
|
return false, nil
|
|
}
|
|
}
|
|
|
|
func _EndCondition_OneofSizer(msg proto.Message) (n int) {
|
|
m := msg.(*EndCondition)
|
|
// condition
|
|
switch x := m.Condition.(type) {
|
|
case *EndCondition_Cardinality_:
|
|
s := proto.Size(x.Cardinality)
|
|
n += 1 // tag and wire
|
|
n += proto.SizeVarint(uint64(s))
|
|
n += s
|
|
case nil:
|
|
default:
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
|
}
|
|
return n
|
|
}
|
|
|
|
// A Cardinality condition for the Waiter resource. A cardinality condition is
|
|
// met when the number of variables under a specified path prefix reaches a
|
|
// predefined number. For example, if you set a Cardinality condition where
|
|
// the `path` is set to `/foo` and the number of paths is set to 2, the
|
|
// following variables would meet the condition in a RuntimeConfig resource:
|
|
//
|
|
// + `/foo/variable1 = "value1"`
|
|
// + `/foo/variable2 = "value2"`
|
|
// + `/bar/variable3 = "value3"`
|
|
//
|
|
// It would not would not satisify the same condition with the `number` set to
|
|
// 3, however, because there is only 2 paths that start with `/foo`.
|
|
// Cardinality conditions are recursive; all subtrees under the specific
|
|
// path prefix are counted.
|
|
type EndCondition_Cardinality struct {
|
|
// The root of the variable subtree to monitor. For example, `/foo`.
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
// The number variables under the `path` that must exist to meet this
|
|
// condition. Defaults to 1 if not specified.
|
|
Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EndCondition_Cardinality) Reset() { *m = EndCondition_Cardinality{} }
|
|
func (m *EndCondition_Cardinality) String() string { return proto.CompactTextString(m) }
|
|
func (*EndCondition_Cardinality) ProtoMessage() {}
|
|
func (*EndCondition_Cardinality) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resources_03b93da0510fa410, []int{2, 0}
|
|
}
|
|
func (m *EndCondition_Cardinality) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EndCondition_Cardinality.Unmarshal(m, b)
|
|
}
|
|
func (m *EndCondition_Cardinality) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EndCondition_Cardinality.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *EndCondition_Cardinality) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EndCondition_Cardinality.Merge(dst, src)
|
|
}
|
|
func (m *EndCondition_Cardinality) XXX_Size() int {
|
|
return xxx_messageInfo_EndCondition_Cardinality.Size(m)
|
|
}
|
|
func (m *EndCondition_Cardinality) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EndCondition_Cardinality.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EndCondition_Cardinality proto.InternalMessageInfo
|
|
|
|
func (m *EndCondition_Cardinality) GetPath() string {
|
|
if m != nil {
|
|
return m.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EndCondition_Cardinality) GetNumber() int32 {
|
|
if m != nil {
|
|
return m.Number
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// A Waiter resource waits for some end condition within a RuntimeConfig resource
|
|
// to be met before it returns. For example, assume you have a distributed
|
|
// system where each node writes to a Variable resource indidicating the node's
|
|
// readiness as part of the startup process.
|
|
//
|
|
// You then configure a Waiter resource with the success condition set to wait
|
|
// until some number of nodes have checked in. Afterwards, your application
|
|
// runs some arbitrary code after the condition has been met and the waiter
|
|
// returns successfully.
|
|
//
|
|
// Once created, a Waiter resource is immutable.
|
|
//
|
|
// To learn more about using waiters, read the
|
|
// [Creating a Waiter](/deployment-manager/runtime-configurator/creating-a-waiter)
|
|
// documentation.
|
|
type Waiter struct {
|
|
// The name of the Waiter resource, in the format:
|
|
//
|
|
// projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]
|
|
//
|
|
// The `[PROJECT_ID]` must be a valid Google Cloud project ID,
|
|
// the `[CONFIG_NAME]` must be a valid RuntimeConfig resource, the
|
|
// `[WAITER_NAME]` must match RFC 1035 segment specification, and the length
|
|
// of `[WAITER_NAME]` must be less than 64 bytes.
|
|
//
|
|
// After you create a Waiter resource, you cannot change the resource name.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// [Required] Specifies the timeout of the waiter in seconds, beginning from
|
|
// the instant that `waiters().create` method is called. If this time elapses
|
|
// before the success or failure conditions are met, the waiter fails and sets
|
|
// the `error` code to `DEADLINE_EXCEEDED`.
|
|
Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
|
// [Optional] The failure condition of this waiter. If this condition is met,
|
|
// `done` will be set to `true` and the `error` code will be set to `ABORTED`.
|
|
// The failure condition takes precedence over the success condition. If both
|
|
// conditions are met, a failure will be indicated. This value is optional; if
|
|
// no failure condition is set, the only failure scenario will be a timeout.
|
|
Failure *EndCondition `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
|
|
// [Required] The success condition. If this condition is met, `done` will be
|
|
// set to `true` and the `error` value will remain unset. The failure condition
|
|
// takes precedence over the success condition. If both conditions are met, a
|
|
// failure will be indicated.
|
|
Success *EndCondition `protobuf:"bytes,4,opt,name=success,proto3" json:"success,omitempty"`
|
|
// [Output Only] The instant at which this Waiter resource was created. Adding
|
|
// the value of `timeout` to this instant yields the timeout deadline for the
|
|
// waiter.
|
|
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
|
// [Output Only] If the value is `false`, it means the waiter is still waiting
|
|
// for one of its conditions to be met.
|
|
//
|
|
// If true, the waiter has finished. If the waiter finished due to a timeout
|
|
// or failure, `error` will be set.
|
|
Done bool `protobuf:"varint,6,opt,name=done,proto3" json:"done,omitempty"`
|
|
// [Output Only] If the waiter ended due to a failure or timeout, this value
|
|
// will be set.
|
|
Error *status.Status `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Waiter) Reset() { *m = Waiter{} }
|
|
func (m *Waiter) String() string { return proto.CompactTextString(m) }
|
|
func (*Waiter) ProtoMessage() {}
|
|
func (*Waiter) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resources_03b93da0510fa410, []int{3}
|
|
}
|
|
func (m *Waiter) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Waiter.Unmarshal(m, b)
|
|
}
|
|
func (m *Waiter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Waiter.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Waiter) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Waiter.Merge(dst, src)
|
|
}
|
|
func (m *Waiter) XXX_Size() int {
|
|
return xxx_messageInfo_Waiter.Size(m)
|
|
}
|
|
func (m *Waiter) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Waiter.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Waiter proto.InternalMessageInfo
|
|
|
|
func (m *Waiter) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Waiter) GetTimeout() *duration.Duration {
|
|
if m != nil {
|
|
return m.Timeout
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Waiter) GetFailure() *EndCondition {
|
|
if m != nil {
|
|
return m.Failure
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Waiter) GetSuccess() *EndCondition {
|
|
if m != nil {
|
|
return m.Success
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Waiter) GetCreateTime() *timestamp.Timestamp {
|
|
if m != nil {
|
|
return m.CreateTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Waiter) GetDone() bool {
|
|
if m != nil {
|
|
return m.Done
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *Waiter) GetError() *status.Status {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*RuntimeConfig)(nil), "google.cloud.runtimeconfig.v1beta1.RuntimeConfig")
|
|
proto.RegisterType((*Variable)(nil), "google.cloud.runtimeconfig.v1beta1.Variable")
|
|
proto.RegisterType((*EndCondition)(nil), "google.cloud.runtimeconfig.v1beta1.EndCondition")
|
|
proto.RegisterType((*EndCondition_Cardinality)(nil), "google.cloud.runtimeconfig.v1beta1.EndCondition.Cardinality")
|
|
proto.RegisterType((*Waiter)(nil), "google.cloud.runtimeconfig.v1beta1.Waiter")
|
|
proto.RegisterEnum("google.cloud.runtimeconfig.v1beta1.VariableState", VariableState_name, VariableState_value)
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("google/cloud/runtimeconfig/v1beta1/resources.proto", fileDescriptor_resources_03b93da0510fa410)
|
|
}
|
|
|
|
var fileDescriptor_resources_03b93da0510fa410 = []byte{
|
|
// 628 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xdd, 0x6e, 0xd3, 0x30,
|
|
0x14, 0xc7, 0x9b, 0xd2, 0x8f, 0xed, 0x64, 0x43, 0x93, 0x85, 0x46, 0xa8, 0xd0, 0xa8, 0x7a, 0x81,
|
|
0x2a, 0x2e, 0x12, 0xda, 0x5d, 0xa1, 0x71, 0xd3, 0x8f, 0xb0, 0x15, 0x4d, 0x30, 0xa5, 0x5d, 0x91,
|
|
0xd0, 0xa4, 0xe1, 0x3a, 0x6e, 0x88, 0x94, 0xda, 0x91, 0xe3, 0x4c, 0xf0, 0x4a, 0x3c, 0x01, 0x2f,
|
|
0xc0, 0x0d, 0x0f, 0xc1, 0x15, 0x0f, 0x82, 0xec, 0x38, 0xd0, 0xc2, 0xc4, 0x06, 0x77, 0x3e, 0x3e,
|
|
0xff, 0xf3, 0x3b, 0x1f, 0x3e, 0x09, 0xf4, 0x23, 0xce, 0xa3, 0x84, 0x7a, 0x24, 0xe1, 0x79, 0xe8,
|
|
0x89, 0x9c, 0xc9, 0x78, 0x45, 0x09, 0x67, 0xcb, 0x38, 0xf2, 0xae, 0x7a, 0x0b, 0x2a, 0x71, 0xcf,
|
|
0x13, 0x34, 0xe3, 0xb9, 0x20, 0x34, 0x73, 0x53, 0xc1, 0x25, 0x47, 0x9d, 0x22, 0xc6, 0xd5, 0x31,
|
|
0xee, 0x46, 0x8c, 0x6b, 0x62, 0x5a, 0x0f, 0x0d, 0x17, 0xa7, 0xb1, 0x87, 0x19, 0xe3, 0x12, 0xcb,
|
|
0x98, 0x33, 0x43, 0x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