beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tg...@apache.org
Subject [3/9] beam git commit: Add all portability protos to Go
Date Mon, 06 Nov 2017 20:19:55 GMT
http://git-wip-us.apache.org/repos/asf/beam/blob/42100456/sdks/go/pkg/beam/model/pipeline_v1/endpoints.pb.go
----------------------------------------------------------------------
diff --git a/sdks/go/pkg/beam/model/pipeline_v1/endpoints.pb.go b/sdks/go/pkg/beam/model/pipeline_v1/endpoints.pb.go
new file mode 100644
index 0000000..72a230d
--- /dev/null
+++ b/sdks/go/pkg/beam/model/pipeline_v1/endpoints.pb.go
@@ -0,0 +1,160 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// source: endpoints.proto
+
+package pipeline_v1
+
+import proto "github.com/golang/protobuf/proto"
+import fmt "fmt"
+import math "math"
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+type ApiServiceDescriptor struct {
+	// (Required) The URL to connect to.
+	Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
+	// (Optional) The method for authentication. If unspecified, access to the
+	// url is already being performed in a trusted context (e.g. localhost,
+	// private network).
+	//
+	// Types that are valid to be assigned to Authentication:
+	//	*ApiServiceDescriptor_Oauth2ClientCredentialsGrant
+	Authentication isApiServiceDescriptor_Authentication `protobuf_oneof:"authentication"`
+}
+
+func (m *ApiServiceDescriptor) Reset()                    { *m = ApiServiceDescriptor{} }
+func (m *ApiServiceDescriptor) String() string            { return proto.CompactTextString(m)
}
+func (*ApiServiceDescriptor) ProtoMessage()               {}
+func (*ApiServiceDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0}
}
+
+type isApiServiceDescriptor_Authentication interface {
+	isApiServiceDescriptor_Authentication()
+}
+
+type ApiServiceDescriptor_Oauth2ClientCredentialsGrant struct {
+	Oauth2ClientCredentialsGrant *OAuth2ClientCredentialsGrant `protobuf:"bytes,3,opt,name=oauth2_client_credentials_grant,json=oauth2ClientCredentialsGrant,oneof"`
+}
+
+func (*ApiServiceDescriptor_Oauth2ClientCredentialsGrant) isApiServiceDescriptor_Authentication()
{}
+
+func (m *ApiServiceDescriptor) GetAuthentication() isApiServiceDescriptor_Authentication
{
+	if m != nil {
+		return m.Authentication
+	}
+	return nil
+}
+
+func (m *ApiServiceDescriptor) GetUrl() string {
+	if m != nil {
+		return m.Url
+	}
+	return ""
+}
+
+func (m *ApiServiceDescriptor) GetOauth2ClientCredentialsGrant() *OAuth2ClientCredentialsGrant
{
+	if x, ok := m.GetAuthentication().(*ApiServiceDescriptor_Oauth2ClientCredentialsGrant);
ok {
+		return x.Oauth2ClientCredentialsGrant
+	}
+	return nil
+}
+
+// XXX_OneofFuncs is for the internal use of the proto package.
+func (*ApiServiceDescriptor) 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 _ApiServiceDescriptor_OneofMarshaler, _ApiServiceDescriptor_OneofUnmarshaler, _ApiServiceDescriptor_OneofSizer,
[]interface{}{
+		(*ApiServiceDescriptor_Oauth2ClientCredentialsGrant)(nil),
+	}
+}
+
+func _ApiServiceDescriptor_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
+	m := msg.(*ApiServiceDescriptor)
+	// authentication
+	switch x := m.Authentication.(type) {
+	case *ApiServiceDescriptor_Oauth2ClientCredentialsGrant:
+		b.EncodeVarint(3<<3 | proto.WireBytes)
+		if err := b.EncodeMessage(x.Oauth2ClientCredentialsGrant); err != nil {
+			return err
+		}
+	case nil:
+	default:
+		return fmt.Errorf("ApiServiceDescriptor.Authentication has unexpected type %T", x)
+	}
+	return nil
+}
+
+func _ApiServiceDescriptor_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer)
(bool, error) {
+	m := msg.(*ApiServiceDescriptor)
+	switch tag {
+	case 3: // authentication.oauth2_client_credentials_grant
+		if wire != proto.WireBytes {
+			return true, proto.ErrInternalBadWireType
+		}
+		msg := new(OAuth2ClientCredentialsGrant)
+		err := b.DecodeMessage(msg)
+		m.Authentication = &ApiServiceDescriptor_Oauth2ClientCredentialsGrant{msg}
+		return true, err
+	default:
+		return false, nil
+	}
+}
+
+func _ApiServiceDescriptor_OneofSizer(msg proto.Message) (n int) {
+	m := msg.(*ApiServiceDescriptor)
+	// authentication
+	switch x := m.Authentication.(type) {
+	case *ApiServiceDescriptor_Oauth2ClientCredentialsGrant:
+		s := proto.Size(x.Oauth2ClientCredentialsGrant)
+		n += proto.SizeVarint(3<<3 | proto.WireBytes)
+		n += proto.SizeVarint(uint64(s))
+		n += s
+	case nil:
+	default:
+		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
+	}
+	return n
+}
+
+type OAuth2ClientCredentialsGrant struct {
+	// (Required) The URL to submit a "client_credentials" grant type request for
+	// an OAuth access token which will be used as a bearer token for requests.
+	Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
+}
+
+func (m *OAuth2ClientCredentialsGrant) Reset()                    { *m = OAuth2ClientCredentialsGrant{}
}
+func (m *OAuth2ClientCredentialsGrant) String() string            { return proto.CompactTextString(m)
}
+func (*OAuth2ClientCredentialsGrant) ProtoMessage()               {}
+func (*OAuth2ClientCredentialsGrant) Descriptor() ([]byte, []int) { return fileDescriptor1,
[]int{1} }
+
+func (m *OAuth2ClientCredentialsGrant) GetUrl() string {
+	if m != nil {
+		return m.Url
+	}
+	return ""
+}
+
+func init() {
+	proto.RegisterType((*ApiServiceDescriptor)(nil), "org.apache.beam.model.pipeline.v1.ApiServiceDescriptor")
+	proto.RegisterType((*OAuth2ClientCredentialsGrant)(nil), "org.apache.beam.model.pipeline.v1.OAuth2ClientCredentialsGrant")
+}
+
+func init() { proto.RegisterFile("endpoints.proto", fileDescriptor1) }
+
+var fileDescriptor1 = []byte{
+	// 235 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0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c, 0x71, 0xfe, 0x79, 0x27, 0x48,
0x71,
+	0x7a, 0xa7, 0xc7, 0xa7, 0x88, 0xed, 0x1c, 0xf5, 0x3b, 0xa7, 0x7c, 0xd0, 0xdd, 0x7a, 0xca,
0xfe,
+	0x73, 0xab, 0xf4, 0x63, 0xd0, 0xfe, 0x6d, 0x33, 0xdf, 0x5c, 0x1c, 0x05, 0xdf, 0x7f, 0x07,
0x00,
+	0x00, 0xff, 0xff, 0x98, 0xdf, 0xf8, 0x2f, 0x73, 0x01, 0x00, 0x00,
+}

http://git-wip-us.apache.org/repos/asf/beam/blob/42100456/sdks/go/pkg/beam/model/pipeline_v1/standard_window_fns.pb.go
----------------------------------------------------------------------
diff --git a/sdks/go/pkg/beam/model/pipeline_v1/standard_window_fns.pb.go b/sdks/go/pkg/beam/model/pipeline_v1/standard_window_fns.pb.go
new file mode 100644
index 0000000..082724d
--- /dev/null
+++ b/sdks/go/pkg/beam/model/pipeline_v1/standard_window_fns.pb.go
@@ -0,0 +1,120 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// source: standard_window_fns.proto
+
+package pipeline_v1
+
+import proto "github.com/golang/protobuf/proto"
+import fmt "fmt"
+import math "math"
+import google_protobuf1 "github.com/golang/protobuf/ptypes/duration"
+import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// beam:windowfn:fixed_windows:v0.1
+type FixedWindowsPayload struct {
+	Size   *google_protobuf1.Duration  `protobuf:"bytes,1,opt,name=size" json:"size,omitempty"`
+	Offset *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=offset" json:"offset,omitempty"`
+}
+
+func (m *FixedWindowsPayload) Reset()                    { *m = FixedWindowsPayload{} }
+func (m *FixedWindowsPayload) String() string            { return proto.CompactTextString(m)
}
+func (*FixedWindowsPayload) ProtoMessage()               {}
+func (*FixedWindowsPayload) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0}
}
+
+func (m *FixedWindowsPayload) GetSize() *google_protobuf1.Duration {
+	if m != nil {
+		return m.Size
+	}
+	return nil
+}
+
+func (m *FixedWindowsPayload) GetOffset() *google_protobuf2.Timestamp {
+	if m != nil {
+		return m.Offset
+	}
+	return nil
+}
+
+// beam:windowfn:sliding_windows:v0.1
+type SlidingWindowsPayload struct {
+	Size   *google_protobuf1.Duration  `protobuf:"bytes,1,opt,name=size" json:"size,omitempty"`
+	Offset *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=offset" json:"offset,omitempty"`
+	Period *google_protobuf1.Duration  `protobuf:"bytes,3,opt,name=period" json:"period,omitempty"`
+}
+
+func (m *SlidingWindowsPayload) Reset()                    { *m = SlidingWindowsPayload{}
}
+func (m *SlidingWindowsPayload) String() string            { return proto.CompactTextString(m)
}
+func (*SlidingWindowsPayload) ProtoMessage()               {}
+func (*SlidingWindowsPayload) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1}
}
+
+func (m *SlidingWindowsPayload) GetSize() *google_protobuf1.Duration {
+	if m != nil {
+		return m.Size
+	}
+	return nil
+}
+
+func (m *SlidingWindowsPayload) GetOffset() *google_protobuf2.Timestamp {
+	if m != nil {
+		return m.Offset
+	}
+	return nil
+}
+
+func (m *SlidingWindowsPayload) GetPeriod() *google_protobuf1.Duration {
+	if m != nil {
+		return m.Period
+	}
+	return nil
+}
+
+// beam:windowfn:session_windows:v0.1
+type SessionsPayload struct {
+	GapSize *google_protobuf1.Duration `protobuf:"bytes,1,opt,name=gap_size,json=gapSize" json:"gap_size,omitempty"`
+}
+
+func (m *SessionsPayload) Reset()                    { *m = SessionsPayload{} }
+func (m *SessionsPayload) String() string            { return proto.CompactTextString(m)
}
+func (*SessionsPayload) ProtoMessage()               {}
+func (*SessionsPayload) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
+
+func (m *SessionsPayload) GetGapSize() *google_protobuf1.Duration {
+	if m != nil {
+		return m.GapSize
+	}
+	return nil
+}
+
+func init() {
+	proto.RegisterType((*FixedWindowsPayload)(nil), "org.apache.beam.model.pipeline.v1.FixedWindowsPayload")
+	proto.RegisterType((*SlidingWindowsPayload)(nil), "org.apache.beam.model.pipeline.v1.SlidingWindowsPayload")
+	proto.RegisterType((*SessionsPayload)(nil), "org.apache.beam.model.pipeline.v1.SessionsPayload")
+}
+
+func init() { proto.RegisterFile("standard_window_fns.proto", fileDescriptor2) }
+
+var fileDescriptor2 = []byte{
+	// 277 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x92, 0x4d, 0x4b, 0xc3,
0x40,
+	0x10, 0x86, 0xa9, 0x4a, 0x95, 0xed, 0x41, 0x8c, 0x08, 0x69, 0x0e, 0x7e, 0xe4, 0xe4, 0xc5,
0x2d,
+	0xa9, 0xfe, 0x82, 0x2a, 0xf5, 0x2a, 0x8d, 0x20, 0x78, 0x09, 0x13, 0x77, 0xb2, 0x0e, 0x24,
0x3b,
+	0x4b, 0x76, 0xfb, 0x61, 0xff, 0x93, 0xff, 0x51, 0xc8, 0x87, 0x07, 0x3d, 0xd4, 0x93, 0xe7,
0x79,
+	0xde, 0xf7, 0x19, 0x76, 0x47, 0x8c, 0x9d, 0x07, 0xa3, 0xa0, 0x56, 0xd9, 0x9a, 0x8c, 0xe2,
0x75,
+	0x56, 0x18, 0x27, 0x6d, 0xcd, 0x9e, 0x83, 0x2b, 0xae, 0xb5, 0x04, 0x0b, 0x6f, 0xef, 0x28,
0x73,
+	0x84, 0x4a, 0x56, 0xac, 0xb0, 0x94, 0x96, 0x2c, 0x96, 0x64, 0x50, 0xae, 0x92, 0xe8, 0x5c,
0x33,
+	0xeb, 0x12, 0x27, 0x4d, 0x20, 0x5f, 0x16, 0x13, 0xb5, 0xac, 0xc1, 0x13, 0x9b, 0xb6, 0x22,
0xba,
+	0xf8, 0x39, 0xf7, 0x54, 0xa1, 0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