repo
stringlengths 5
54
| path
stringlengths 4
155
| func_name
stringlengths 1
118
| original_string
stringlengths 52
85.5k
| language
stringclasses 1
value | code
stringlengths 52
85.5k
| code_tokens
sequence | docstring
stringlengths 6
2.61k
| docstring_tokens
sequence | sha
stringlengths 40
40
| url
stringlengths 85
252
| partition
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|
vitessio/vitess | go/vt/vttablet/grpctmclient/client.go | Close | func (client *Client) Close() {
client.mu.Lock()
defer client.mu.Unlock()
for _, c := range client.rpcClientMap {
close(c)
for ch := range c {
ch.cc.Close()
}
}
client.rpcClientMap = nil
} | go | func (client *Client) Close() {
client.mu.Lock()
defer client.mu.Unlock()
for _, c := range client.rpcClientMap {
close(c)
for ch := range c {
ch.cc.Close()
}
}
client.rpcClientMap = nil
} | [
"func",
"(",
"client",
"*",
"Client",
")",
"Close",
"(",
")",
"{",
"client",
".",
"mu",
".",
"Lock",
"(",
")",
"\n",
"defer",
"client",
".",
"mu",
".",
"Unlock",
"(",
")",
"\n",
"for",
"_",
",",
"c",
":=",
"range",
"client",
".",
"rpcClientMap",
"{",
"close",
"(",
"c",
")",
"\n",
"for",
"ch",
":=",
"range",
"c",
"{",
"ch",
".",
"cc",
".",
"Close",
"(",
")",
"\n",
"}",
"\n",
"}",
"\n",
"client",
".",
"rpcClientMap",
"=",
"nil",
"\n",
"}"
] | // Close is part of the tmclient.TabletManagerClient interface. | [
"Close",
"is",
"part",
"of",
"the",
"tmclient",
".",
"TabletManagerClient",
"interface",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vttablet/grpctmclient/client.go#L831-L841 | train |
vitessio/vitess | go/netutil/conn.go | NewConnWithTimeouts | func NewConnWithTimeouts(conn net.Conn, readTimeout time.Duration, writeTimeout time.Duration) ConnWithTimeouts {
return ConnWithTimeouts{Conn: conn, readTimeout: readTimeout, writeTimeout: writeTimeout}
} | go | func NewConnWithTimeouts(conn net.Conn, readTimeout time.Duration, writeTimeout time.Duration) ConnWithTimeouts {
return ConnWithTimeouts{Conn: conn, readTimeout: readTimeout, writeTimeout: writeTimeout}
} | [
"func",
"NewConnWithTimeouts",
"(",
"conn",
"net",
".",
"Conn",
",",
"readTimeout",
"time",
".",
"Duration",
",",
"writeTimeout",
"time",
".",
"Duration",
")",
"ConnWithTimeouts",
"{",
"return",
"ConnWithTimeouts",
"{",
"Conn",
":",
"conn",
",",
"readTimeout",
":",
"readTimeout",
",",
"writeTimeout",
":",
"writeTimeout",
"}",
"\n",
"}"
] | // NewConnWithTimeouts wraps a net.Conn with read and write deadilnes. | [
"NewConnWithTimeouts",
"wraps",
"a",
"net",
".",
"Conn",
"with",
"read",
"and",
"write",
"deadilnes",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/netutil/conn.go#L31-L33 | train |
vitessio/vitess | go/netutil/conn.go | Read | func (c ConnWithTimeouts) Read(b []byte) (int, error) {
if c.readTimeout == 0 {
return c.Conn.Read(b)
}
if err := c.Conn.SetReadDeadline(time.Now().Add(c.readTimeout)); err != nil {
return 0, err
}
return c.Conn.Read(b)
} | go | func (c ConnWithTimeouts) Read(b []byte) (int, error) {
if c.readTimeout == 0 {
return c.Conn.Read(b)
}
if err := c.Conn.SetReadDeadline(time.Now().Add(c.readTimeout)); err != nil {
return 0, err
}
return c.Conn.Read(b)
} | [
"func",
"(",
"c",
"ConnWithTimeouts",
")",
"Read",
"(",
"b",
"[",
"]",
"byte",
")",
"(",
"int",
",",
"error",
")",
"{",
"if",
"c",
".",
"readTimeout",
"==",
"0",
"{",
"return",
"c",
".",
"Conn",
".",
"Read",
"(",
"b",
")",
"\n",
"}",
"\n",
"if",
"err",
":=",
"c",
".",
"Conn",
".",
"SetReadDeadline",
"(",
"time",
".",
"Now",
"(",
")",
".",
"Add",
"(",
"c",
".",
"readTimeout",
")",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"0",
",",
"err",
"\n",
"}",
"\n",
"return",
"c",
".",
"Conn",
".",
"Read",
"(",
"b",
")",
"\n",
"}"
] | // Implementation of the Conn interface.
// Read sets a read deadilne and delegates to conn.Read. | [
"Implementation",
"of",
"the",
"Conn",
"interface",
".",
"Read",
"sets",
"a",
"read",
"deadilne",
"and",
"delegates",
"to",
"conn",
".",
"Read",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/netutil/conn.go#L38-L46 | train |
vitessio/vitess | go/netutil/conn.go | Write | func (c ConnWithTimeouts) Write(b []byte) (int, error) {
if c.writeTimeout == 0 {
return c.Conn.Write(b)
}
if err := c.Conn.SetWriteDeadline(time.Now().Add(c.writeTimeout)); err != nil {
return 0, err
}
return c.Conn.Write(b)
} | go | func (c ConnWithTimeouts) Write(b []byte) (int, error) {
if c.writeTimeout == 0 {
return c.Conn.Write(b)
}
if err := c.Conn.SetWriteDeadline(time.Now().Add(c.writeTimeout)); err != nil {
return 0, err
}
return c.Conn.Write(b)
} | [
"func",
"(",
"c",
"ConnWithTimeouts",
")",
"Write",
"(",
"b",
"[",
"]",
"byte",
")",
"(",
"int",
",",
"error",
")",
"{",
"if",
"c",
".",
"writeTimeout",
"==",
"0",
"{",
"return",
"c",
".",
"Conn",
".",
"Write",
"(",
"b",
")",
"\n",
"}",
"\n",
"if",
"err",
":=",
"c",
".",
"Conn",
".",
"SetWriteDeadline",
"(",
"time",
".",
"Now",
"(",
")",
".",
"Add",
"(",
"c",
".",
"writeTimeout",
")",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"0",
",",
"err",
"\n",
"}",
"\n",
"return",
"c",
".",
"Conn",
".",
"Write",
"(",
"b",
")",
"\n",
"}"
] | // Write sets a write deadline and delagates to conn.Write | [
"Write",
"sets",
"a",
"write",
"deadline",
"and",
"delagates",
"to",
"conn",
".",
"Write"
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/netutil/conn.go#L49-L57 | train |
vitessio/vitess | go/vt/wrangler/rebuild.go | RebuildKeyspaceGraph | func (wr *Wrangler) RebuildKeyspaceGraph(ctx context.Context, keyspace string, cells []string) error {
return topotools.RebuildKeyspace(ctx, wr.logger, wr.ts, keyspace, cells)
} | go | func (wr *Wrangler) RebuildKeyspaceGraph(ctx context.Context, keyspace string, cells []string) error {
return topotools.RebuildKeyspace(ctx, wr.logger, wr.ts, keyspace, cells)
} | [
"func",
"(",
"wr",
"*",
"Wrangler",
")",
"RebuildKeyspaceGraph",
"(",
"ctx",
"context",
".",
"Context",
",",
"keyspace",
"string",
",",
"cells",
"[",
"]",
"string",
")",
"error",
"{",
"return",
"topotools",
".",
"RebuildKeyspace",
"(",
"ctx",
",",
"wr",
".",
"logger",
",",
"wr",
".",
"ts",
",",
"keyspace",
",",
"cells",
")",
"\n",
"}"
] | // RebuildKeyspaceGraph rebuilds the serving graph data while locking out other changes. | [
"RebuildKeyspaceGraph",
"rebuilds",
"the",
"serving",
"graph",
"data",
"while",
"locking",
"out",
"other",
"changes",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/wrangler/rebuild.go#L25-L27 | train |
vitessio/vitess | go/vt/vttls/vttls.go | ClientConfig | func ClientConfig(cert, key, ca, name string) (*tls.Config, error) {
config := newTLSConfig()
// Load the client-side cert & key if any.
if cert != "" && key != "" {
crt, err := tls.LoadX509KeyPair(cert, key)
if err != nil {
return nil, fmt.Errorf("failed to load cert/key: %v", err)
}
config.Certificates = []tls.Certificate{crt}
}
// Load the server CA if any.
if ca != "" {
b, err := ioutil.ReadFile(ca)
if err != nil {
return nil, fmt.Errorf("failed to read ca file: %v", err)
}
cp := x509.NewCertPool()
if !cp.AppendCertsFromPEM(b) {
return nil, fmt.Errorf("failed to append certificates")
}
config.RootCAs = cp
}
// Set the server name if any.
if name != "" {
config.ServerName = name
}
return config, nil
} | go | func ClientConfig(cert, key, ca, name string) (*tls.Config, error) {
config := newTLSConfig()
// Load the client-side cert & key if any.
if cert != "" && key != "" {
crt, err := tls.LoadX509KeyPair(cert, key)
if err != nil {
return nil, fmt.Errorf("failed to load cert/key: %v", err)
}
config.Certificates = []tls.Certificate{crt}
}
// Load the server CA if any.
if ca != "" {
b, err := ioutil.ReadFile(ca)
if err != nil {
return nil, fmt.Errorf("failed to read ca file: %v", err)
}
cp := x509.NewCertPool()
if !cp.AppendCertsFromPEM(b) {
return nil, fmt.Errorf("failed to append certificates")
}
config.RootCAs = cp
}
// Set the server name if any.
if name != "" {
config.ServerName = name
}
return config, nil
} | [
"func",
"ClientConfig",
"(",
"cert",
",",
"key",
",",
"ca",
",",
"name",
"string",
")",
"(",
"*",
"tls",
".",
"Config",
",",
"error",
")",
"{",
"config",
":=",
"newTLSConfig",
"(",
")",
"\n\n",
"// Load the client-side cert & key if any.",
"if",
"cert",
"!=",
"\"",
"\"",
"&&",
"key",
"!=",
"\"",
"\"",
"{",
"crt",
",",
"err",
":=",
"tls",
".",
"LoadX509KeyPair",
"(",
"cert",
",",
"key",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"err",
")",
"\n",
"}",
"\n",
"config",
".",
"Certificates",
"=",
"[",
"]",
"tls",
".",
"Certificate",
"{",
"crt",
"}",
"\n",
"}",
"\n\n",
"// Load the server CA if any.",
"if",
"ca",
"!=",
"\"",
"\"",
"{",
"b",
",",
"err",
":=",
"ioutil",
".",
"ReadFile",
"(",
"ca",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"err",
")",
"\n",
"}",
"\n",
"cp",
":=",
"x509",
".",
"NewCertPool",
"(",
")",
"\n",
"if",
"!",
"cp",
".",
"AppendCertsFromPEM",
"(",
"b",
")",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n",
"config",
".",
"RootCAs",
"=",
"cp",
"\n",
"}",
"\n\n",
"// Set the server name if any.",
"if",
"name",
"!=",
"\"",
"\"",
"{",
"config",
".",
"ServerName",
"=",
"name",
"\n",
"}",
"\n\n",
"return",
"config",
",",
"nil",
"\n",
"}"
] | // ClientConfig returns the TLS config to use for a client to
// connect to a server with the provided parameters. | [
"ClientConfig",
"returns",
"the",
"TLS",
"config",
"to",
"use",
"for",
"a",
"client",
"to",
"connect",
"to",
"a",
"server",
"with",
"the",
"provided",
"parameters",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vttls/vttls.go#L56-L87 | train |
vitessio/vitess | go/vt/vttls/vttls.go | ServerConfig | func ServerConfig(cert, key, ca string) (*tls.Config, error) {
config := newTLSConfig()
// Load the server cert and key.
crt, err := tls.LoadX509KeyPair(cert, key)
if err != nil {
return nil, fmt.Errorf("failed to load cert/key: %v", err)
}
config.Certificates = []tls.Certificate{crt}
// if specified, load ca to validate client,
// and enforce clients present valid certs.
if ca != "" {
b, err := ioutil.ReadFile(ca)
if err != nil {
return nil, fmt.Errorf("failed to read ca file: %v", err)
}
cp := x509.NewCertPool()
if !cp.AppendCertsFromPEM(b) {
return nil, fmt.Errorf("failed to append certificates")
}
config.ClientCAs = cp
config.ClientAuth = tls.RequireAndVerifyClientCert
}
return config, nil
} | go | func ServerConfig(cert, key, ca string) (*tls.Config, error) {
config := newTLSConfig()
// Load the server cert and key.
crt, err := tls.LoadX509KeyPair(cert, key)
if err != nil {
return nil, fmt.Errorf("failed to load cert/key: %v", err)
}
config.Certificates = []tls.Certificate{crt}
// if specified, load ca to validate client,
// and enforce clients present valid certs.
if ca != "" {
b, err := ioutil.ReadFile(ca)
if err != nil {
return nil, fmt.Errorf("failed to read ca file: %v", err)
}
cp := x509.NewCertPool()
if !cp.AppendCertsFromPEM(b) {
return nil, fmt.Errorf("failed to append certificates")
}
config.ClientCAs = cp
config.ClientAuth = tls.RequireAndVerifyClientCert
}
return config, nil
} | [
"func",
"ServerConfig",
"(",
"cert",
",",
"key",
",",
"ca",
"string",
")",
"(",
"*",
"tls",
".",
"Config",
",",
"error",
")",
"{",
"config",
":=",
"newTLSConfig",
"(",
")",
"\n\n",
"// Load the server cert and key.",
"crt",
",",
"err",
":=",
"tls",
".",
"LoadX509KeyPair",
"(",
"cert",
",",
"key",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"err",
")",
"\n",
"}",
"\n",
"config",
".",
"Certificates",
"=",
"[",
"]",
"tls",
".",
"Certificate",
"{",
"crt",
"}",
"\n\n",
"// if specified, load ca to validate client,",
"// and enforce clients present valid certs.",
"if",
"ca",
"!=",
"\"",
"\"",
"{",
"b",
",",
"err",
":=",
"ioutil",
".",
"ReadFile",
"(",
"ca",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"err",
")",
"\n",
"}",
"\n",
"cp",
":=",
"x509",
".",
"NewCertPool",
"(",
")",
"\n",
"if",
"!",
"cp",
".",
"AppendCertsFromPEM",
"(",
"b",
")",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n",
"config",
".",
"ClientCAs",
"=",
"cp",
"\n",
"config",
".",
"ClientAuth",
"=",
"tls",
".",
"RequireAndVerifyClientCert",
"\n",
"}",
"\n\n",
"return",
"config",
",",
"nil",
"\n",
"}"
] | // ServerConfig returns the TLS config to use for a server to
// accept client connections. | [
"ServerConfig",
"returns",
"the",
"TLS",
"config",
"to",
"use",
"for",
"a",
"server",
"to",
"accept",
"client",
"connections",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vttls/vttls.go#L91-L117 | train |
vitessio/vitess | go/vt/wrangler/permissions.go | GetPermissions | func (wr *Wrangler) GetPermissions(ctx context.Context, tabletAlias *topodatapb.TabletAlias) (*tabletmanagerdatapb.Permissions, error) {
ti, err := wr.ts.GetTablet(ctx, tabletAlias)
if err != nil {
return nil, err
}
return wr.tmc.GetPermissions(ctx, ti.Tablet)
} | go | func (wr *Wrangler) GetPermissions(ctx context.Context, tabletAlias *topodatapb.TabletAlias) (*tabletmanagerdatapb.Permissions, error) {
ti, err := wr.ts.GetTablet(ctx, tabletAlias)
if err != nil {
return nil, err
}
return wr.tmc.GetPermissions(ctx, ti.Tablet)
} | [
"func",
"(",
"wr",
"*",
"Wrangler",
")",
"GetPermissions",
"(",
"ctx",
"context",
".",
"Context",
",",
"tabletAlias",
"*",
"topodatapb",
".",
"TabletAlias",
")",
"(",
"*",
"tabletmanagerdatapb",
".",
"Permissions",
",",
"error",
")",
"{",
"ti",
",",
"err",
":=",
"wr",
".",
"ts",
".",
"GetTablet",
"(",
"ctx",
",",
"tabletAlias",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"err",
"\n",
"}",
"\n\n",
"return",
"wr",
".",
"tmc",
".",
"GetPermissions",
"(",
"ctx",
",",
"ti",
".",
"Tablet",
")",
"\n",
"}"
] | // GetPermissions returns the permissions set on a remote tablet | [
"GetPermissions",
"returns",
"the",
"permissions",
"set",
"on",
"a",
"remote",
"tablet"
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/wrangler/permissions.go#L35-L42 | train |
vitessio/vitess | go/vt/wrangler/permissions.go | diffPermissions | func (wr *Wrangler) diffPermissions(ctx context.Context, masterPermissions *tabletmanagerdatapb.Permissions, masterAlias *topodatapb.TabletAlias, alias *topodatapb.TabletAlias, wg *sync.WaitGroup, er concurrency.ErrorRecorder) {
defer wg.Done()
log.Infof("Gathering permissions for %v", topoproto.TabletAliasString(alias))
slavePermissions, err := wr.GetPermissions(ctx, alias)
if err != nil {
er.RecordError(err)
return
}
log.Infof("Diffing permissions for %v", topoproto.TabletAliasString(alias))
tmutils.DiffPermissions(topoproto.TabletAliasString(masterAlias), masterPermissions, topoproto.TabletAliasString(alias), slavePermissions, er)
} | go | func (wr *Wrangler) diffPermissions(ctx context.Context, masterPermissions *tabletmanagerdatapb.Permissions, masterAlias *topodatapb.TabletAlias, alias *topodatapb.TabletAlias, wg *sync.WaitGroup, er concurrency.ErrorRecorder) {
defer wg.Done()
log.Infof("Gathering permissions for %v", topoproto.TabletAliasString(alias))
slavePermissions, err := wr.GetPermissions(ctx, alias)
if err != nil {
er.RecordError(err)
return
}
log.Infof("Diffing permissions for %v", topoproto.TabletAliasString(alias))
tmutils.DiffPermissions(topoproto.TabletAliasString(masterAlias), masterPermissions, topoproto.TabletAliasString(alias), slavePermissions, er)
} | [
"func",
"(",
"wr",
"*",
"Wrangler",
")",
"diffPermissions",
"(",
"ctx",
"context",
".",
"Context",
",",
"masterPermissions",
"*",
"tabletmanagerdatapb",
".",
"Permissions",
",",
"masterAlias",
"*",
"topodatapb",
".",
"TabletAlias",
",",
"alias",
"*",
"topodatapb",
".",
"TabletAlias",
",",
"wg",
"*",
"sync",
".",
"WaitGroup",
",",
"er",
"concurrency",
".",
"ErrorRecorder",
")",
"{",
"defer",
"wg",
".",
"Done",
"(",
")",
"\n",
"log",
".",
"Infof",
"(",
"\"",
"\"",
",",
"topoproto",
".",
"TabletAliasString",
"(",
"alias",
")",
")",
"\n",
"slavePermissions",
",",
"err",
":=",
"wr",
".",
"GetPermissions",
"(",
"ctx",
",",
"alias",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"er",
".",
"RecordError",
"(",
"err",
")",
"\n",
"return",
"\n",
"}",
"\n\n",
"log",
".",
"Infof",
"(",
"\"",
"\"",
",",
"topoproto",
".",
"TabletAliasString",
"(",
"alias",
")",
")",
"\n",
"tmutils",
".",
"DiffPermissions",
"(",
"topoproto",
".",
"TabletAliasString",
"(",
"masterAlias",
")",
",",
"masterPermissions",
",",
"topoproto",
".",
"TabletAliasString",
"(",
"alias",
")",
",",
"slavePermissions",
",",
"er",
")",
"\n",
"}"
] | // diffPermissions is a helper method to asynchronously diff a permissions | [
"diffPermissions",
"is",
"a",
"helper",
"method",
"to",
"asynchronously",
"diff",
"a",
"permissions"
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/wrangler/permissions.go#L45-L56 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | newVCursorImpl | func newVCursorImpl(ctx context.Context, safeSession *SafeSession, keyspace string, tabletType topodatapb.TabletType, marginComments sqlparser.MarginComments, executor *Executor, logStats *LogStats) *vcursorImpl {
return &vcursorImpl{
ctx: ctx,
safeSession: safeSession,
keyspace: keyspace,
tabletType: tabletType,
marginComments: marginComments,
executor: executor,
logStats: logStats,
}
} | go | func newVCursorImpl(ctx context.Context, safeSession *SafeSession, keyspace string, tabletType topodatapb.TabletType, marginComments sqlparser.MarginComments, executor *Executor, logStats *LogStats) *vcursorImpl {
return &vcursorImpl{
ctx: ctx,
safeSession: safeSession,
keyspace: keyspace,
tabletType: tabletType,
marginComments: marginComments,
executor: executor,
logStats: logStats,
}
} | [
"func",
"newVCursorImpl",
"(",
"ctx",
"context",
".",
"Context",
",",
"safeSession",
"*",
"SafeSession",
",",
"keyspace",
"string",
",",
"tabletType",
"topodatapb",
".",
"TabletType",
",",
"marginComments",
"sqlparser",
".",
"MarginComments",
",",
"executor",
"*",
"Executor",
",",
"logStats",
"*",
"LogStats",
")",
"*",
"vcursorImpl",
"{",
"return",
"&",
"vcursorImpl",
"{",
"ctx",
":",
"ctx",
",",
"safeSession",
":",
"safeSession",
",",
"keyspace",
":",
"keyspace",
",",
"tabletType",
":",
"tabletType",
",",
"marginComments",
":",
"marginComments",
",",
"executor",
":",
"executor",
",",
"logStats",
":",
"logStats",
",",
"}",
"\n",
"}"
] | // newVcursorImpl creates a vcursorImpl. Before creating this object, you have to separate out any marginComments that came with
// the query and supply it here. Trailing comments are typically sent by the application for various reasons,
// including as identifying markers. So, they have to be added back to all queries that are executed
// on behalf of the original query. | [
"newVcursorImpl",
"creates",
"a",
"vcursorImpl",
".",
"Before",
"creating",
"this",
"object",
"you",
"have",
"to",
"separate",
"out",
"any",
"marginComments",
"that",
"came",
"with",
"the",
"query",
"and",
"supply",
"it",
"here",
".",
"Trailing",
"comments",
"are",
"typically",
"sent",
"by",
"the",
"application",
"for",
"various",
"reasons",
"including",
"as",
"identifying",
"markers",
".",
"So",
"they",
"have",
"to",
"be",
"added",
"back",
"to",
"all",
"queries",
"that",
"are",
"executed",
"on",
"behalf",
"of",
"the",
"original",
"query",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L60-L70 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | SetContextTimeout | func (vc *vcursorImpl) SetContextTimeout(timeout time.Duration) context.CancelFunc {
ctx, cancel := context.WithTimeout(vc.ctx, timeout)
vc.ctx = ctx
return cancel
} | go | func (vc *vcursorImpl) SetContextTimeout(timeout time.Duration) context.CancelFunc {
ctx, cancel := context.WithTimeout(vc.ctx, timeout)
vc.ctx = ctx
return cancel
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"SetContextTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"context",
".",
"CancelFunc",
"{",
"ctx",
",",
"cancel",
":=",
"context",
".",
"WithTimeout",
"(",
"vc",
".",
"ctx",
",",
"timeout",
")",
"\n",
"vc",
".",
"ctx",
"=",
"ctx",
"\n",
"return",
"cancel",
"\n",
"}"
] | // SetContextTimeout updates context and sets a timeout. | [
"SetContextTimeout",
"updates",
"context",
"and",
"sets",
"a",
"timeout",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L78-L82 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | RecordWarning | func (vc *vcursorImpl) RecordWarning(warning *querypb.QueryWarning) {
vc.safeSession.RecordWarning(warning)
} | go | func (vc *vcursorImpl) RecordWarning(warning *querypb.QueryWarning) {
vc.safeSession.RecordWarning(warning)
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"RecordWarning",
"(",
"warning",
"*",
"querypb",
".",
"QueryWarning",
")",
"{",
"vc",
".",
"safeSession",
".",
"RecordWarning",
"(",
"warning",
")",
"\n",
"}"
] | // RecordWarning stores the given warning in the current session | [
"RecordWarning",
"stores",
"the",
"given",
"warning",
"in",
"the",
"current",
"session"
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L85-L87 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | FindTable | func (vc *vcursorImpl) FindTable(name sqlparser.TableName) (*vindexes.Table, string, topodatapb.TabletType, key.Destination, error) {
destKeyspace, destTabletType, dest, err := vc.executor.ParseDestinationTarget(name.Qualifier.String())
if err != nil {
return nil, "", destTabletType, nil, err
}
if destKeyspace == "" {
destKeyspace = vc.keyspace
}
table, err := vc.executor.VSchema().FindTable(destKeyspace, name.Name.String())
if err != nil {
return nil, "", destTabletType, nil, err
}
return table, destKeyspace, destTabletType, dest, err
} | go | func (vc *vcursorImpl) FindTable(name sqlparser.TableName) (*vindexes.Table, string, topodatapb.TabletType, key.Destination, error) {
destKeyspace, destTabletType, dest, err := vc.executor.ParseDestinationTarget(name.Qualifier.String())
if err != nil {
return nil, "", destTabletType, nil, err
}
if destKeyspace == "" {
destKeyspace = vc.keyspace
}
table, err := vc.executor.VSchema().FindTable(destKeyspace, name.Name.String())
if err != nil {
return nil, "", destTabletType, nil, err
}
return table, destKeyspace, destTabletType, dest, err
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"FindTable",
"(",
"name",
"sqlparser",
".",
"TableName",
")",
"(",
"*",
"vindexes",
".",
"Table",
",",
"string",
",",
"topodatapb",
".",
"TabletType",
",",
"key",
".",
"Destination",
",",
"error",
")",
"{",
"destKeyspace",
",",
"destTabletType",
",",
"dest",
",",
"err",
":=",
"vc",
".",
"executor",
".",
"ParseDestinationTarget",
"(",
"name",
".",
"Qualifier",
".",
"String",
"(",
")",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"\"",
"\"",
",",
"destTabletType",
",",
"nil",
",",
"err",
"\n",
"}",
"\n",
"if",
"destKeyspace",
"==",
"\"",
"\"",
"{",
"destKeyspace",
"=",
"vc",
".",
"keyspace",
"\n",
"}",
"\n",
"table",
",",
"err",
":=",
"vc",
".",
"executor",
".",
"VSchema",
"(",
")",
".",
"FindTable",
"(",
"destKeyspace",
",",
"name",
".",
"Name",
".",
"String",
"(",
")",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"\"",
"\"",
",",
"destTabletType",
",",
"nil",
",",
"err",
"\n",
"}",
"\n",
"return",
"table",
",",
"destKeyspace",
",",
"destTabletType",
",",
"dest",
",",
"err",
"\n",
"}"
] | // FindTable finds the specified table. If the keyspace what specified in the input, it gets used as qualifier.
// Otherwise, the keyspace from the request is used, if one was provided. | [
"FindTable",
"finds",
"the",
"specified",
"table",
".",
"If",
"the",
"keyspace",
"what",
"specified",
"in",
"the",
"input",
"it",
"gets",
"used",
"as",
"qualifier",
".",
"Otherwise",
"the",
"keyspace",
"from",
"the",
"request",
"is",
"used",
"if",
"one",
"was",
"provided",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L91-L104 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | FindTablesOrVindex | func (vc *vcursorImpl) FindTablesOrVindex(name sqlparser.TableName) ([]*vindexes.Table, vindexes.Vindex, string, topodatapb.TabletType, key.Destination, error) {
destKeyspace, destTabletType, dest, err := vc.executor.ParseDestinationTarget(name.Qualifier.String())
if err != nil {
return nil, nil, "", destTabletType, nil, err
}
if destKeyspace == "" {
destKeyspace = vc.keyspace
}
tables, vindex, err := vc.executor.VSchema().FindTablesOrVindex(destKeyspace, name.Name.String(), vc.tabletType)
if err != nil {
return nil, nil, "", destTabletType, nil, err
}
return tables, vindex, destKeyspace, destTabletType, dest, nil
} | go | func (vc *vcursorImpl) FindTablesOrVindex(name sqlparser.TableName) ([]*vindexes.Table, vindexes.Vindex, string, topodatapb.TabletType, key.Destination, error) {
destKeyspace, destTabletType, dest, err := vc.executor.ParseDestinationTarget(name.Qualifier.String())
if err != nil {
return nil, nil, "", destTabletType, nil, err
}
if destKeyspace == "" {
destKeyspace = vc.keyspace
}
tables, vindex, err := vc.executor.VSchema().FindTablesOrVindex(destKeyspace, name.Name.String(), vc.tabletType)
if err != nil {
return nil, nil, "", destTabletType, nil, err
}
return tables, vindex, destKeyspace, destTabletType, dest, nil
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"FindTablesOrVindex",
"(",
"name",
"sqlparser",
".",
"TableName",
")",
"(",
"[",
"]",
"*",
"vindexes",
".",
"Table",
",",
"vindexes",
".",
"Vindex",
",",
"string",
",",
"topodatapb",
".",
"TabletType",
",",
"key",
".",
"Destination",
",",
"error",
")",
"{",
"destKeyspace",
",",
"destTabletType",
",",
"dest",
",",
"err",
":=",
"vc",
".",
"executor",
".",
"ParseDestinationTarget",
"(",
"name",
".",
"Qualifier",
".",
"String",
"(",
")",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"nil",
",",
"\"",
"\"",
",",
"destTabletType",
",",
"nil",
",",
"err",
"\n",
"}",
"\n",
"if",
"destKeyspace",
"==",
"\"",
"\"",
"{",
"destKeyspace",
"=",
"vc",
".",
"keyspace",
"\n",
"}",
"\n",
"tables",
",",
"vindex",
",",
"err",
":=",
"vc",
".",
"executor",
".",
"VSchema",
"(",
")",
".",
"FindTablesOrVindex",
"(",
"destKeyspace",
",",
"name",
".",
"Name",
".",
"String",
"(",
")",
",",
"vc",
".",
"tabletType",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"nil",
",",
"\"",
"\"",
",",
"destTabletType",
",",
"nil",
",",
"err",
"\n",
"}",
"\n",
"return",
"tables",
",",
"vindex",
",",
"destKeyspace",
",",
"destTabletType",
",",
"dest",
",",
"nil",
"\n",
"}"
] | // FindTablesOrVindex finds the specified table or vindex. | [
"FindTablesOrVindex",
"finds",
"the",
"specified",
"table",
"or",
"vindex",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L107-L120 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | DefaultKeyspace | func (vc *vcursorImpl) DefaultKeyspace() (*vindexes.Keyspace, error) {
if vc.keyspace == "" {
return nil, errNoKeyspace
}
ks, ok := vc.executor.VSchema().Keyspaces[vc.keyspace]
if !ok {
return nil, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "keyspace %s not found in vschema", vc.keyspace)
}
return ks.Keyspace, nil
} | go | func (vc *vcursorImpl) DefaultKeyspace() (*vindexes.Keyspace, error) {
if vc.keyspace == "" {
return nil, errNoKeyspace
}
ks, ok := vc.executor.VSchema().Keyspaces[vc.keyspace]
if !ok {
return nil, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "keyspace %s not found in vschema", vc.keyspace)
}
return ks.Keyspace, nil
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"DefaultKeyspace",
"(",
")",
"(",
"*",
"vindexes",
".",
"Keyspace",
",",
"error",
")",
"{",
"if",
"vc",
".",
"keyspace",
"==",
"\"",
"\"",
"{",
"return",
"nil",
",",
"errNoKeyspace",
"\n",
"}",
"\n",
"ks",
",",
"ok",
":=",
"vc",
".",
"executor",
".",
"VSchema",
"(",
")",
".",
"Keyspaces",
"[",
"vc",
".",
"keyspace",
"]",
"\n",
"if",
"!",
"ok",
"{",
"return",
"nil",
",",
"vterrors",
".",
"Errorf",
"(",
"vtrpcpb",
".",
"Code_INVALID_ARGUMENT",
",",
"\"",
"\"",
",",
"vc",
".",
"keyspace",
")",
"\n",
"}",
"\n",
"return",
"ks",
".",
"Keyspace",
",",
"nil",
"\n",
"}"
] | // DefaultKeyspace returns the default keyspace of the current request
// if there is one. If the keyspace specified in the target cannot be
// identified, it returns an error. | [
"DefaultKeyspace",
"returns",
"the",
"default",
"keyspace",
"of",
"the",
"current",
"request",
"if",
"there",
"is",
"one",
".",
"If",
"the",
"keyspace",
"specified",
"in",
"the",
"target",
"cannot",
"be",
"identified",
"it",
"returns",
"an",
"error",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L125-L134 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | Execute | func (vc *vcursorImpl) Execute(method string, query string, BindVars map[string]*querypb.BindVariable, isDML bool) (*sqltypes.Result, error) {
qr, err := vc.executor.Execute(vc.ctx, method, vc.safeSession, vc.marginComments.Leading+query+vc.marginComments.Trailing, BindVars)
if err == nil {
vc.hasPartialDML = true
}
return qr, err
} | go | func (vc *vcursorImpl) Execute(method string, query string, BindVars map[string]*querypb.BindVariable, isDML bool) (*sqltypes.Result, error) {
qr, err := vc.executor.Execute(vc.ctx, method, vc.safeSession, vc.marginComments.Leading+query+vc.marginComments.Trailing, BindVars)
if err == nil {
vc.hasPartialDML = true
}
return qr, err
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"Execute",
"(",
"method",
"string",
",",
"query",
"string",
",",
"BindVars",
"map",
"[",
"string",
"]",
"*",
"querypb",
".",
"BindVariable",
",",
"isDML",
"bool",
")",
"(",
"*",
"sqltypes",
".",
"Result",
",",
"error",
")",
"{",
"qr",
",",
"err",
":=",
"vc",
".",
"executor",
".",
"Execute",
"(",
"vc",
".",
"ctx",
",",
"method",
",",
"vc",
".",
"safeSession",
",",
"vc",
".",
"marginComments",
".",
"Leading",
"+",
"query",
"+",
"vc",
".",
"marginComments",
".",
"Trailing",
",",
"BindVars",
")",
"\n",
"if",
"err",
"==",
"nil",
"{",
"vc",
".",
"hasPartialDML",
"=",
"true",
"\n",
"}",
"\n",
"return",
"qr",
",",
"err",
"\n",
"}"
] | // Execute performs a V3 level execution of the query. | [
"Execute",
"performs",
"a",
"V3",
"level",
"execution",
"of",
"the",
"query",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L142-L148 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | ExecuteMultiShard | func (vc *vcursorImpl) ExecuteMultiShard(rss []*srvtopo.ResolvedShard, queries []*querypb.BoundQuery, isDML, autocommit bool) (*sqltypes.Result, []error) {
atomic.AddUint32(&vc.logStats.ShardQueries, uint32(len(queries)))
qr, errs := vc.executor.scatterConn.ExecuteMultiShard(vc.ctx, rss, commentedShardQueries(queries, vc.marginComments), vc.tabletType, vc.safeSession, false, autocommit)
if errs == nil {
vc.hasPartialDML = true
}
return qr, errs
} | go | func (vc *vcursorImpl) ExecuteMultiShard(rss []*srvtopo.ResolvedShard, queries []*querypb.BoundQuery, isDML, autocommit bool) (*sqltypes.Result, []error) {
atomic.AddUint32(&vc.logStats.ShardQueries, uint32(len(queries)))
qr, errs := vc.executor.scatterConn.ExecuteMultiShard(vc.ctx, rss, commentedShardQueries(queries, vc.marginComments), vc.tabletType, vc.safeSession, false, autocommit)
if errs == nil {
vc.hasPartialDML = true
}
return qr, errs
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"ExecuteMultiShard",
"(",
"rss",
"[",
"]",
"*",
"srvtopo",
".",
"ResolvedShard",
",",
"queries",
"[",
"]",
"*",
"querypb",
".",
"BoundQuery",
",",
"isDML",
",",
"autocommit",
"bool",
")",
"(",
"*",
"sqltypes",
".",
"Result",
",",
"[",
"]",
"error",
")",
"{",
"atomic",
".",
"AddUint32",
"(",
"&",
"vc",
".",
"logStats",
".",
"ShardQueries",
",",
"uint32",
"(",
"len",
"(",
"queries",
")",
")",
")",
"\n",
"qr",
",",
"errs",
":=",
"vc",
".",
"executor",
".",
"scatterConn",
".",
"ExecuteMultiShard",
"(",
"vc",
".",
"ctx",
",",
"rss",
",",
"commentedShardQueries",
"(",
"queries",
",",
"vc",
".",
"marginComments",
")",
",",
"vc",
".",
"tabletType",
",",
"vc",
".",
"safeSession",
",",
"false",
",",
"autocommit",
")",
"\n\n",
"if",
"errs",
"==",
"nil",
"{",
"vc",
".",
"hasPartialDML",
"=",
"true",
"\n",
"}",
"\n",
"return",
"qr",
",",
"errs",
"\n",
"}"
] | // ExecuteMultiShard is part of the engine.VCursor interface. | [
"ExecuteMultiShard",
"is",
"part",
"of",
"the",
"engine",
".",
"VCursor",
"interface",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L160-L168 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | ExecuteStandalone | func (vc *vcursorImpl) ExecuteStandalone(query string, bindVars map[string]*querypb.BindVariable, rs *srvtopo.ResolvedShard) (*sqltypes.Result, error) {
rss := []*srvtopo.ResolvedShard{rs}
bqs := []*querypb.BoundQuery{
{
Sql: vc.marginComments.Leading + query + vc.marginComments.Trailing,
BindVariables: bindVars,
},
}
// The autocommit flag is always set to false because we currently don't
// execute DMLs through ExecuteStandalone.
qr, errs := vc.executor.scatterConn.ExecuteMultiShard(vc.ctx, rss, bqs, vc.tabletType, NewAutocommitSession(vc.safeSession.Session), false, false /* autocommit */)
return qr, vterrors.Aggregate(errs)
} | go | func (vc *vcursorImpl) ExecuteStandalone(query string, bindVars map[string]*querypb.BindVariable, rs *srvtopo.ResolvedShard) (*sqltypes.Result, error) {
rss := []*srvtopo.ResolvedShard{rs}
bqs := []*querypb.BoundQuery{
{
Sql: vc.marginComments.Leading + query + vc.marginComments.Trailing,
BindVariables: bindVars,
},
}
// The autocommit flag is always set to false because we currently don't
// execute DMLs through ExecuteStandalone.
qr, errs := vc.executor.scatterConn.ExecuteMultiShard(vc.ctx, rss, bqs, vc.tabletType, NewAutocommitSession(vc.safeSession.Session), false, false /* autocommit */)
return qr, vterrors.Aggregate(errs)
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"ExecuteStandalone",
"(",
"query",
"string",
",",
"bindVars",
"map",
"[",
"string",
"]",
"*",
"querypb",
".",
"BindVariable",
",",
"rs",
"*",
"srvtopo",
".",
"ResolvedShard",
")",
"(",
"*",
"sqltypes",
".",
"Result",
",",
"error",
")",
"{",
"rss",
":=",
"[",
"]",
"*",
"srvtopo",
".",
"ResolvedShard",
"{",
"rs",
"}",
"\n",
"bqs",
":=",
"[",
"]",
"*",
"querypb",
".",
"BoundQuery",
"{",
"{",
"Sql",
":",
"vc",
".",
"marginComments",
".",
"Leading",
"+",
"query",
"+",
"vc",
".",
"marginComments",
".",
"Trailing",
",",
"BindVariables",
":",
"bindVars",
",",
"}",
",",
"}",
"\n",
"// The autocommit flag is always set to false because we currently don't",
"// execute DMLs through ExecuteStandalone.",
"qr",
",",
"errs",
":=",
"vc",
".",
"executor",
".",
"scatterConn",
".",
"ExecuteMultiShard",
"(",
"vc",
".",
"ctx",
",",
"rss",
",",
"bqs",
",",
"vc",
".",
"tabletType",
",",
"NewAutocommitSession",
"(",
"vc",
".",
"safeSession",
".",
"Session",
")",
",",
"false",
",",
"false",
"/* autocommit */",
")",
"\n",
"return",
"qr",
",",
"vterrors",
".",
"Aggregate",
"(",
"errs",
")",
"\n",
"}"
] | // ExecuteStandalone is part of the engine.VCursor interface. | [
"ExecuteStandalone",
"is",
"part",
"of",
"the",
"engine",
".",
"VCursor",
"interface",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L176-L188 | train |
vitessio/vitess | go/vt/vtgate/vcursor_impl.go | StreamExecuteMulti | func (vc *vcursorImpl) StreamExecuteMulti(query string, rss []*srvtopo.ResolvedShard, bindVars []map[string]*querypb.BindVariable, callback func(reply *sqltypes.Result) error) error {
atomic.AddUint32(&vc.logStats.ShardQueries, uint32(len(rss)))
return vc.executor.scatterConn.StreamExecuteMulti(vc.ctx, vc.marginComments.Leading+query+vc.marginComments.Trailing, rss, bindVars, vc.tabletType, vc.safeSession.Options, callback)
} | go | func (vc *vcursorImpl) StreamExecuteMulti(query string, rss []*srvtopo.ResolvedShard, bindVars []map[string]*querypb.BindVariable, callback func(reply *sqltypes.Result) error) error {
atomic.AddUint32(&vc.logStats.ShardQueries, uint32(len(rss)))
return vc.executor.scatterConn.StreamExecuteMulti(vc.ctx, vc.marginComments.Leading+query+vc.marginComments.Trailing, rss, bindVars, vc.tabletType, vc.safeSession.Options, callback)
} | [
"func",
"(",
"vc",
"*",
"vcursorImpl",
")",
"StreamExecuteMulti",
"(",
"query",
"string",
",",
"rss",
"[",
"]",
"*",
"srvtopo",
".",
"ResolvedShard",
",",
"bindVars",
"[",
"]",
"map",
"[",
"string",
"]",
"*",
"querypb",
".",
"BindVariable",
",",
"callback",
"func",
"(",
"reply",
"*",
"sqltypes",
".",
"Result",
")",
"error",
")",
"error",
"{",
"atomic",
".",
"AddUint32",
"(",
"&",
"vc",
".",
"logStats",
".",
"ShardQueries",
",",
"uint32",
"(",
"len",
"(",
"rss",
")",
")",
")",
"\n",
"return",
"vc",
".",
"executor",
".",
"scatterConn",
".",
"StreamExecuteMulti",
"(",
"vc",
".",
"ctx",
",",
"vc",
".",
"marginComments",
".",
"Leading",
"+",
"query",
"+",
"vc",
".",
"marginComments",
".",
"Trailing",
",",
"rss",
",",
"bindVars",
",",
"vc",
".",
"tabletType",
",",
"vc",
".",
"safeSession",
".",
"Options",
",",
"callback",
")",
"\n",
"}"
] | // StreamExeculteMulti is the streaming version of ExecuteMultiShard. | [
"StreamExeculteMulti",
"is",
"the",
"streaming",
"version",
"of",
"ExecuteMultiShard",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/vcursor_impl.go#L191-L194 | train |
vitessio/vitess | go/vt/vtgate/planbuilder/ordered_aggregate.go | checkAggregates | func (pb *primitiveBuilder) checkAggregates(sel *sqlparser.Select) (groupByHandler, error) {
rb, isRoute := pb.bldr.(*route)
if isRoute && rb.removeMultishardOptions() {
return rb, nil
}
// Check if we can allow aggregates.
hasAggregates := false
if sel.Distinct != "" {
hasAggregates = true
} else {
hasAggregates = nodeHasAggregates(sel.SelectExprs)
}
if len(sel.GroupBy) > 0 {
hasAggregates = true
}
if !hasAggregates {
return rb, nil
}
// The query has aggregates. We can proceed only
// if the underlying primitive is a route because
// we need the ability to push down group by and
// order by clauses.
if !isRoute {
return nil, errors.New("unsupported: cross-shard query with aggregates")
}
// If there is a distinct clause, we can check the select list
// to see if it has a unique vindex reference. For example,
// if the query was 'select distinct id, col from t' (with id
// as a unique vindex), then the distinct operation can be
// safely pushed down because the unique vindex guarantees
// that each id can only be in a single shard. Without the
// unique vindex property, the id could come from multiple
// shards, which will require us to perform the grouping
// at the vtgate level.
if sel.Distinct != "" {
success := rb.removeOptions(func(ro *routeOption) bool {
for _, selectExpr := range sel.SelectExprs {
switch selectExpr := selectExpr.(type) {
case *sqlparser.AliasedExpr:
vindex := ro.FindVindex(pb, selectExpr.Expr)
if vindex != nil && vindex.IsUnique() {
return true
}
}
}
return false
})
if success {
return rb, nil
}
}
// The group by clause could also reference a unique vindex. The above
// example could itself have been written as
// 'select id, col from t group by id, col', or a query could be like
// 'select id, count(*) from t group by id'. In the above cases,
// the grouping can be done at the shard level, which allows the entire query
// to be pushed down. In order to perform this analysis, we're going to look
// ahead at the group by clause to see if it references a unique vindex.
if pb.groupByHasUniqueVindex(sel, rb) {
return rb, nil
}
// We need an aggregator primitive.
oa := &orderedAggregate{
order: rb.Order() + 1,
input: rb,
eaggr: &engine.OrderedAggregate{},
}
pb.bldr = oa
return oa, nil
} | go | func (pb *primitiveBuilder) checkAggregates(sel *sqlparser.Select) (groupByHandler, error) {
rb, isRoute := pb.bldr.(*route)
if isRoute && rb.removeMultishardOptions() {
return rb, nil
}
// Check if we can allow aggregates.
hasAggregates := false
if sel.Distinct != "" {
hasAggregates = true
} else {
hasAggregates = nodeHasAggregates(sel.SelectExprs)
}
if len(sel.GroupBy) > 0 {
hasAggregates = true
}
if !hasAggregates {
return rb, nil
}
// The query has aggregates. We can proceed only
// if the underlying primitive is a route because
// we need the ability to push down group by and
// order by clauses.
if !isRoute {
return nil, errors.New("unsupported: cross-shard query with aggregates")
}
// If there is a distinct clause, we can check the select list
// to see if it has a unique vindex reference. For example,
// if the query was 'select distinct id, col from t' (with id
// as a unique vindex), then the distinct operation can be
// safely pushed down because the unique vindex guarantees
// that each id can only be in a single shard. Without the
// unique vindex property, the id could come from multiple
// shards, which will require us to perform the grouping
// at the vtgate level.
if sel.Distinct != "" {
success := rb.removeOptions(func(ro *routeOption) bool {
for _, selectExpr := range sel.SelectExprs {
switch selectExpr := selectExpr.(type) {
case *sqlparser.AliasedExpr:
vindex := ro.FindVindex(pb, selectExpr.Expr)
if vindex != nil && vindex.IsUnique() {
return true
}
}
}
return false
})
if success {
return rb, nil
}
}
// The group by clause could also reference a unique vindex. The above
// example could itself have been written as
// 'select id, col from t group by id, col', or a query could be like
// 'select id, count(*) from t group by id'. In the above cases,
// the grouping can be done at the shard level, which allows the entire query
// to be pushed down. In order to perform this analysis, we're going to look
// ahead at the group by clause to see if it references a unique vindex.
if pb.groupByHasUniqueVindex(sel, rb) {
return rb, nil
}
// We need an aggregator primitive.
oa := &orderedAggregate{
order: rb.Order() + 1,
input: rb,
eaggr: &engine.OrderedAggregate{},
}
pb.bldr = oa
return oa, nil
} | [
"func",
"(",
"pb",
"*",
"primitiveBuilder",
")",
"checkAggregates",
"(",
"sel",
"*",
"sqlparser",
".",
"Select",
")",
"(",
"groupByHandler",
",",
"error",
")",
"{",
"rb",
",",
"isRoute",
":=",
"pb",
".",
"bldr",
".",
"(",
"*",
"route",
")",
"\n",
"if",
"isRoute",
"&&",
"rb",
".",
"removeMultishardOptions",
"(",
")",
"{",
"return",
"rb",
",",
"nil",
"\n",
"}",
"\n\n",
"// Check if we can allow aggregates.",
"hasAggregates",
":=",
"false",
"\n",
"if",
"sel",
".",
"Distinct",
"!=",
"\"",
"\"",
"{",
"hasAggregates",
"=",
"true",
"\n",
"}",
"else",
"{",
"hasAggregates",
"=",
"nodeHasAggregates",
"(",
"sel",
".",
"SelectExprs",
")",
"\n",
"}",
"\n",
"if",
"len",
"(",
"sel",
".",
"GroupBy",
")",
">",
"0",
"{",
"hasAggregates",
"=",
"true",
"\n",
"}",
"\n",
"if",
"!",
"hasAggregates",
"{",
"return",
"rb",
",",
"nil",
"\n",
"}",
"\n\n",
"// The query has aggregates. We can proceed only",
"// if the underlying primitive is a route because",
"// we need the ability to push down group by and",
"// order by clauses.",
"if",
"!",
"isRoute",
"{",
"return",
"nil",
",",
"errors",
".",
"New",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n\n",
"// If there is a distinct clause, we can check the select list",
"// to see if it has a unique vindex reference. For example,",
"// if the query was 'select distinct id, col from t' (with id",
"// as a unique vindex), then the distinct operation can be",
"// safely pushed down because the unique vindex guarantees",
"// that each id can only be in a single shard. Without the",
"// unique vindex property, the id could come from multiple",
"// shards, which will require us to perform the grouping",
"// at the vtgate level.",
"if",
"sel",
".",
"Distinct",
"!=",
"\"",
"\"",
"{",
"success",
":=",
"rb",
".",
"removeOptions",
"(",
"func",
"(",
"ro",
"*",
"routeOption",
")",
"bool",
"{",
"for",
"_",
",",
"selectExpr",
":=",
"range",
"sel",
".",
"SelectExprs",
"{",
"switch",
"selectExpr",
":=",
"selectExpr",
".",
"(",
"type",
")",
"{",
"case",
"*",
"sqlparser",
".",
"AliasedExpr",
":",
"vindex",
":=",
"ro",
".",
"FindVindex",
"(",
"pb",
",",
"selectExpr",
".",
"Expr",
")",
"\n",
"if",
"vindex",
"!=",
"nil",
"&&",
"vindex",
".",
"IsUnique",
"(",
")",
"{",
"return",
"true",
"\n",
"}",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"false",
"\n",
"}",
")",
"\n",
"if",
"success",
"{",
"return",
"rb",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n\n",
"// The group by clause could also reference a unique vindex. The above",
"// example could itself have been written as",
"// 'select id, col from t group by id, col', or a query could be like",
"// 'select id, count(*) from t group by id'. In the above cases,",
"// the grouping can be done at the shard level, which allows the entire query",
"// to be pushed down. In order to perform this analysis, we're going to look",
"// ahead at the group by clause to see if it references a unique vindex.",
"if",
"pb",
".",
"groupByHasUniqueVindex",
"(",
"sel",
",",
"rb",
")",
"{",
"return",
"rb",
",",
"nil",
"\n",
"}",
"\n\n",
"// We need an aggregator primitive.",
"oa",
":=",
"&",
"orderedAggregate",
"{",
"order",
":",
"rb",
".",
"Order",
"(",
")",
"+",
"1",
",",
"input",
":",
"rb",
",",
"eaggr",
":",
"&",
"engine",
".",
"OrderedAggregate",
"{",
"}",
",",
"}",
"\n",
"pb",
".",
"bldr",
"=",
"oa",
"\n",
"return",
"oa",
",",
"nil",
"\n",
"}"
] | // checkAggregates analyzes the select expression for aggregates. If it determines
// that a primitive is needed to handle the aggregation, it builds an orderedAggregate
// primitive and returns it. It returns a groupByHandler if there is aggregation it
// can handle. | [
"checkAggregates",
"analyzes",
"the",
"select",
"expression",
"for",
"aggregates",
".",
"If",
"it",
"determines",
"that",
"a",
"primitive",
"is",
"needed",
"to",
"handle",
"the",
"aggregation",
"it",
"builds",
"an",
"orderedAggregate",
"primitive",
"and",
"returns",
"it",
".",
"It",
"returns",
"a",
"groupByHandler",
"if",
"there",
"is",
"aggregation",
"it",
"can",
"handle",
"."
] | d568817542a413611801aa17a1c213aa95592182 | https://github.com/vitessio/vitess/blob/d568817542a413611801aa17a1c213aa95592182/go/vt/vtgate/planbuilder/ordered_aggregate.go#L67-L141 | train |
aws/aws-sdk-go | service/alexaforbusiness/api.go | SetEnrollmentStatus | func (s *UserData) SetEnrollmentStatus(v string) *UserData {
s.EnrollmentStatus = &v
return s
} | go | func (s *UserData) SetEnrollmentStatus(v string) *UserData {
s.EnrollmentStatus = &v
return s
} | [
"func",
"(",
"s",
"*",
"UserData",
")",
"SetEnrollmentStatus",
"(",
"v",
"string",
")",
"*",
"UserData",
"{",
"s",
".",
"EnrollmentStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEnrollmentStatus sets the EnrollmentStatus field's value. | [
"SetEnrollmentStatus",
"sets",
"the",
"EnrollmentStatus",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L17272-L17275 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetIncludeShadowTrails | func (s *DescribeTrailsInput) SetIncludeShadowTrails(v bool) *DescribeTrailsInput {
s.IncludeShadowTrails = &v
return s
} | go | func (s *DescribeTrailsInput) SetIncludeShadowTrails(v bool) *DescribeTrailsInput {
s.IncludeShadowTrails = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTrailsInput",
")",
"SetIncludeShadowTrails",
"(",
"v",
"bool",
")",
"*",
"DescribeTrailsInput",
"{",
"s",
".",
"IncludeShadowTrails",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIncludeShadowTrails sets the IncludeShadowTrails field's value. | [
"SetIncludeShadowTrails",
"sets",
"the",
"IncludeShadowTrails",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2483-L2486 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetTrailNameList | func (s *DescribeTrailsInput) SetTrailNameList(v []*string) *DescribeTrailsInput {
s.TrailNameList = v
return s
} | go | func (s *DescribeTrailsInput) SetTrailNameList(v []*string) *DescribeTrailsInput {
s.TrailNameList = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTrailsInput",
")",
"SetTrailNameList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"DescribeTrailsInput",
"{",
"s",
".",
"TrailNameList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTrailNameList sets the TrailNameList field's value. | [
"SetTrailNameList",
"sets",
"the",
"TrailNameList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2489-L2492 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetTrailList | func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput {
s.TrailList = v
return s
} | go | func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput {
s.TrailList = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTrailsOutput",
")",
"SetTrailList",
"(",
"v",
"[",
"]",
"*",
"Trail",
")",
"*",
"DescribeTrailsOutput",
"{",
"s",
".",
"TrailList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTrailList sets the TrailList field's value. | [
"SetTrailList",
"sets",
"the",
"TrailList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2514-L2517 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetCloudTrailEvent | func (s *Event) SetCloudTrailEvent(v string) *Event {
s.CloudTrailEvent = &v
return s
} | go | func (s *Event) SetCloudTrailEvent(v string) *Event {
s.CloudTrailEvent = &v
return s
} | [
"func",
"(",
"s",
"*",
"Event",
")",
"SetCloudTrailEvent",
"(",
"v",
"string",
")",
"*",
"Event",
"{",
"s",
".",
"CloudTrailEvent",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloudTrailEvent sets the CloudTrailEvent field's value. | [
"SetCloudTrailEvent",
"sets",
"the",
"CloudTrailEvent",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2572-L2575 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetEventTime | func (s *Event) SetEventTime(v time.Time) *Event {
s.EventTime = &v
return s
} | go | func (s *Event) SetEventTime(v time.Time) *Event {
s.EventTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"Event",
")",
"SetEventTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Event",
"{",
"s",
".",
"EventTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEventTime sets the EventTime field's value. | [
"SetEventTime",
"sets",
"the",
"EventTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2596-L2599 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetDataResources | func (s *EventSelector) SetDataResources(v []*DataResource) *EventSelector {
s.DataResources = v
return s
} | go | func (s *EventSelector) SetDataResources(v []*DataResource) *EventSelector {
s.DataResources = v
return s
} | [
"func",
"(",
"s",
"*",
"EventSelector",
")",
"SetDataResources",
"(",
"v",
"[",
"]",
"*",
"DataResource",
")",
"*",
"EventSelector",
"{",
"s",
".",
"DataResources",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDataResources sets the DataResources field's value. | [
"SetDataResources",
"sets",
"the",
"DataResources",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2670-L2673 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetIncludeManagementEvents | func (s *EventSelector) SetIncludeManagementEvents(v bool) *EventSelector {
s.IncludeManagementEvents = &v
return s
} | go | func (s *EventSelector) SetIncludeManagementEvents(v bool) *EventSelector {
s.IncludeManagementEvents = &v
return s
} | [
"func",
"(",
"s",
"*",
"EventSelector",
")",
"SetIncludeManagementEvents",
"(",
"v",
"bool",
")",
"*",
"EventSelector",
"{",
"s",
".",
"IncludeManagementEvents",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIncludeManagementEvents sets the IncludeManagementEvents field's value. | [
"SetIncludeManagementEvents",
"sets",
"the",
"IncludeManagementEvents",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2676-L2679 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetReadWriteType | func (s *EventSelector) SetReadWriteType(v string) *EventSelector {
s.ReadWriteType = &v
return s
} | go | func (s *EventSelector) SetReadWriteType(v string) *EventSelector {
s.ReadWriteType = &v
return s
} | [
"func",
"(",
"s",
"*",
"EventSelector",
")",
"SetReadWriteType",
"(",
"v",
"string",
")",
"*",
"EventSelector",
"{",
"s",
".",
"ReadWriteType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReadWriteType sets the ReadWriteType field's value. | [
"SetReadWriteType",
"sets",
"the",
"ReadWriteType",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2682-L2685 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetIsLogging | func (s *GetTrailStatusOutput) SetIsLogging(v bool) *GetTrailStatusOutput {
s.IsLogging = &v
return s
} | go | func (s *GetTrailStatusOutput) SetIsLogging(v bool) *GetTrailStatusOutput {
s.IsLogging = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetIsLogging",
"(",
"v",
"bool",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"IsLogging",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIsLogging sets the IsLogging field's value. | [
"SetIsLogging",
"sets",
"the",
"IsLogging",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2910-L2913 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetStartLoggingTime | func (s *GetTrailStatusOutput) SetStartLoggingTime(v time.Time) *GetTrailStatusOutput {
s.StartLoggingTime = &v
return s
} | go | func (s *GetTrailStatusOutput) SetStartLoggingTime(v time.Time) *GetTrailStatusOutput {
s.StartLoggingTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetStartLoggingTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"StartLoggingTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStartLoggingTime sets the StartLoggingTime field's value. | [
"SetStartLoggingTime",
"sets",
"the",
"StartLoggingTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2988-L2991 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetStopLoggingTime | func (s *GetTrailStatusOutput) SetStopLoggingTime(v time.Time) *GetTrailStatusOutput {
s.StopLoggingTime = &v
return s
} | go | func (s *GetTrailStatusOutput) SetStopLoggingTime(v time.Time) *GetTrailStatusOutput {
s.StopLoggingTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetStopLoggingTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"StopLoggingTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStopLoggingTime sets the StopLoggingTime field's value. | [
"SetStopLoggingTime",
"sets",
"the",
"StopLoggingTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2994-L2997 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetTimeLoggingStarted | func (s *GetTrailStatusOutput) SetTimeLoggingStarted(v string) *GetTrailStatusOutput {
s.TimeLoggingStarted = &v
return s
} | go | func (s *GetTrailStatusOutput) SetTimeLoggingStarted(v string) *GetTrailStatusOutput {
s.TimeLoggingStarted = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetTimeLoggingStarted",
"(",
"v",
"string",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"TimeLoggingStarted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTimeLoggingStarted sets the TimeLoggingStarted field's value. | [
"SetTimeLoggingStarted",
"sets",
"the",
"TimeLoggingStarted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3000-L3003 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetTimeLoggingStopped | func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOutput {
s.TimeLoggingStopped = &v
return s
} | go | func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOutput {
s.TimeLoggingStopped = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetTimeLoggingStopped",
"(",
"v",
"string",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"TimeLoggingStopped",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTimeLoggingStopped sets the TimeLoggingStopped field's value. | [
"SetTimeLoggingStopped",
"sets",
"the",
"TimeLoggingStopped",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3006-L3009 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetPublicKeyList | func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput {
s.PublicKeyList = v
return s
} | go | func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput {
s.PublicKeyList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListPublicKeysOutput",
")",
"SetPublicKeyList",
"(",
"v",
"[",
"]",
"*",
"PublicKey",
")",
"*",
"ListPublicKeysOutput",
"{",
"s",
".",
"PublicKeyList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPublicKeyList sets the PublicKeyList field's value. | [
"SetPublicKeyList",
"sets",
"the",
"PublicKeyList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3087-L3090 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetResourceIdList | func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput {
s.ResourceIdList = v
return s
} | go | func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput {
s.ResourceIdList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListTagsInput",
")",
"SetResourceIdList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"ListTagsInput",
"{",
"s",
".",
"ResourceIdList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResourceIdList sets the ResourceIdList field's value. | [
"SetResourceIdList",
"sets",
"the",
"ResourceIdList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3138-L3141 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetResourceTagList | func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput {
s.ResourceTagList = v
return s
} | go | func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput {
s.ResourceTagList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListTagsOutput",
")",
"SetResourceTagList",
"(",
"v",
"[",
"]",
"*",
"ResourceTag",
")",
"*",
"ListTagsOutput",
"{",
"s",
".",
"ResourceTagList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResourceTagList sets the ResourceTagList field's value. | [
"SetResourceTagList",
"sets",
"the",
"ResourceTagList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3172-L3175 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetLookupAttributes | func (s *LookupEventsInput) SetLookupAttributes(v []*LookupAttribute) *LookupEventsInput {
s.LookupAttributes = v
return s
} | go | func (s *LookupEventsInput) SetLookupAttributes(v []*LookupAttribute) *LookupEventsInput {
s.LookupAttributes = v
return s
} | [
"func",
"(",
"s",
"*",
"LookupEventsInput",
")",
"SetLookupAttributes",
"(",
"v",
"[",
"]",
"*",
"LookupAttribute",
")",
"*",
"LookupEventsInput",
"{",
"s",
".",
"LookupAttributes",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLookupAttributes sets the LookupAttributes field's value. | [
"SetLookupAttributes",
"sets",
"the",
"LookupAttributes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3300-L3303 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetValidityEndTime | func (s *PublicKey) SetValidityEndTime(v time.Time) *PublicKey {
s.ValidityEndTime = &v
return s
} | go | func (s *PublicKey) SetValidityEndTime(v time.Time) *PublicKey {
s.ValidityEndTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"PublicKey",
")",
"SetValidityEndTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"PublicKey",
"{",
"s",
".",
"ValidityEndTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetValidityEndTime sets the ValidityEndTime field's value. | [
"SetValidityEndTime",
"sets",
"the",
"ValidityEndTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3398-L3401 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetValidityStartTime | func (s *PublicKey) SetValidityStartTime(v time.Time) *PublicKey {
s.ValidityStartTime = &v
return s
} | go | func (s *PublicKey) SetValidityStartTime(v time.Time) *PublicKey {
s.ValidityStartTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"PublicKey",
")",
"SetValidityStartTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"PublicKey",
"{",
"s",
".",
"ValidityStartTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetValidityStartTime sets the ValidityStartTime field's value. | [
"SetValidityStartTime",
"sets",
"the",
"ValidityStartTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3404-L3407 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetHasCustomEventSelectors | func (s *Trail) SetHasCustomEventSelectors(v bool) *Trail {
s.HasCustomEventSelectors = &v
return s
} | go | func (s *Trail) SetHasCustomEventSelectors(v bool) *Trail {
s.HasCustomEventSelectors = &v
return s
} | [
"func",
"(",
"s",
"*",
"Trail",
")",
"SetHasCustomEventSelectors",
"(",
"v",
"bool",
")",
"*",
"Trail",
"{",
"s",
".",
"HasCustomEventSelectors",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHasCustomEventSelectors sets the HasCustomEventSelectors field's value. | [
"SetHasCustomEventSelectors",
"sets",
"the",
"HasCustomEventSelectors",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3927-L3930 | train |
aws/aws-sdk-go | service/cloudtrail/api.go | SetHomeRegion | func (s *Trail) SetHomeRegion(v string) *Trail {
s.HomeRegion = &v
return s
} | go | func (s *Trail) SetHomeRegion(v string) *Trail {
s.HomeRegion = &v
return s
} | [
"func",
"(",
"s",
"*",
"Trail",
")",
"SetHomeRegion",
"(",
"v",
"string",
")",
"*",
"Trail",
"{",
"s",
".",
"HomeRegion",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHomeRegion sets the HomeRegion field's value. | [
"SetHomeRegion",
"sets",
"the",
"HomeRegion",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3933-L3936 | train |
aws/aws-sdk-go | service/glacier/api.go | SetArchiveSize | func (s *CompleteMultipartUploadInput) SetArchiveSize(v string) *CompleteMultipartUploadInput {
s.ArchiveSize = &v
return s
} | go | func (s *CompleteMultipartUploadInput) SetArchiveSize(v string) *CompleteMultipartUploadInput {
s.ArchiveSize = &v
return s
} | [
"func",
"(",
"s",
"*",
"CompleteMultipartUploadInput",
")",
"SetArchiveSize",
"(",
"v",
"string",
")",
"*",
"CompleteMultipartUploadInput",
"{",
"s",
".",
"ArchiveSize",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetArchiveSize sets the ArchiveSize field's value. | [
"SetArchiveSize",
"sets",
"the",
"ArchiveSize",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L4241-L4244 | train |
aws/aws-sdk-go | service/glacier/api.go | SetBytesPerHour | func (s *DataRetrievalRule) SetBytesPerHour(v int64) *DataRetrievalRule {
s.BytesPerHour = &v
return s
} | go | func (s *DataRetrievalRule) SetBytesPerHour(v int64) *DataRetrievalRule {
s.BytesPerHour = &v
return s
} | [
"func",
"(",
"s",
"*",
"DataRetrievalRule",
")",
"SetBytesPerHour",
"(",
"v",
"int64",
")",
"*",
"DataRetrievalRule",
"{",
"s",
".",
"BytesPerHour",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBytesPerHour sets the BytesPerHour field's value. | [
"SetBytesPerHour",
"sets",
"the",
"BytesPerHour",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L4500-L4503 | train |
aws/aws-sdk-go | service/glacier/api.go | SetLastInventoryDate | func (s *DescribeVaultOutput) SetLastInventoryDate(v string) *DescribeVaultOutput {
s.LastInventoryDate = &v
return s
} | go | func (s *DescribeVaultOutput) SetLastInventoryDate(v string) *DescribeVaultOutput {
s.LastInventoryDate = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeVaultOutput",
")",
"SetLastInventoryDate",
"(",
"v",
"string",
")",
"*",
"DescribeVaultOutput",
"{",
"s",
".",
"LastInventoryDate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLastInventoryDate sets the LastInventoryDate field's value. | [
"SetLastInventoryDate",
"sets",
"the",
"LastInventoryDate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L5027-L5030 | train |
aws/aws-sdk-go | service/glacier/api.go | SetNumberOfArchives | func (s *DescribeVaultOutput) SetNumberOfArchives(v int64) *DescribeVaultOutput {
s.NumberOfArchives = &v
return s
} | go | func (s *DescribeVaultOutput) SetNumberOfArchives(v int64) *DescribeVaultOutput {
s.NumberOfArchives = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeVaultOutput",
")",
"SetNumberOfArchives",
"(",
"v",
"int64",
")",
"*",
"DescribeVaultOutput",
"{",
"s",
".",
"NumberOfArchives",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumberOfArchives sets the NumberOfArchives field's value. | [
"SetNumberOfArchives",
"sets",
"the",
"NumberOfArchives",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L5033-L5036 | train |
aws/aws-sdk-go | service/glacier/api.go | SetJobParameters | func (s *InitiateJobInput) SetJobParameters(v *JobParameters) *InitiateJobInput {
s.JobParameters = v
return s
} | go | func (s *InitiateJobInput) SetJobParameters(v *JobParameters) *InitiateJobInput {
s.JobParameters = v
return s
} | [
"func",
"(",
"s",
"*",
"InitiateJobInput",
")",
"SetJobParameters",
"(",
"v",
"*",
"JobParameters",
")",
"*",
"InitiateJobInput",
"{",
"s",
".",
"JobParameters",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobParameters sets the JobParameters field's value. | [
"SetJobParameters",
"sets",
"the",
"JobParameters",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L5871-L5874 | train |
aws/aws-sdk-go | service/glacier/api.go | SetArchiveSHA256TreeHash | func (s *JobDescription) SetArchiveSHA256TreeHash(v string) *JobDescription {
s.ArchiveSHA256TreeHash = &v
return s
} | go | func (s *JobDescription) SetArchiveSHA256TreeHash(v string) *JobDescription {
s.ArchiveSHA256TreeHash = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobDescription",
")",
"SetArchiveSHA256TreeHash",
"(",
"v",
"string",
")",
"*",
"JobDescription",
"{",
"s",
".",
"ArchiveSHA256TreeHash",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetArchiveSHA256TreeHash sets the ArchiveSHA256TreeHash field's value. | [
"SetArchiveSHA256TreeHash",
"sets",
"the",
"ArchiveSHA256TreeHash",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6424-L6427 | train |
aws/aws-sdk-go | service/glacier/api.go | SetArchiveSizeInBytes | func (s *JobDescription) SetArchiveSizeInBytes(v int64) *JobDescription {
s.ArchiveSizeInBytes = &v
return s
} | go | func (s *JobDescription) SetArchiveSizeInBytes(v int64) *JobDescription {
s.ArchiveSizeInBytes = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobDescription",
")",
"SetArchiveSizeInBytes",
"(",
"v",
"int64",
")",
"*",
"JobDescription",
"{",
"s",
".",
"ArchiveSizeInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetArchiveSizeInBytes sets the ArchiveSizeInBytes field's value. | [
"SetArchiveSizeInBytes",
"sets",
"the",
"ArchiveSizeInBytes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6430-L6433 | train |
aws/aws-sdk-go | service/glacier/api.go | SetInventorySizeInBytes | func (s *JobDescription) SetInventorySizeInBytes(v int64) *JobDescription {
s.InventorySizeInBytes = &v
return s
} | go | func (s *JobDescription) SetInventorySizeInBytes(v int64) *JobDescription {
s.InventorySizeInBytes = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobDescription",
")",
"SetInventorySizeInBytes",
"(",
"v",
"int64",
")",
"*",
"JobDescription",
"{",
"s",
".",
"InventorySizeInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetInventorySizeInBytes sets the InventorySizeInBytes field's value. | [
"SetInventorySizeInBytes",
"sets",
"the",
"InventorySizeInBytes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6460-L6463 | train |
aws/aws-sdk-go | service/glacier/api.go | SetJobDescription | func (s *JobDescription) SetJobDescription(v string) *JobDescription {
s.JobDescription = &v
return s
} | go | func (s *JobDescription) SetJobDescription(v string) *JobDescription {
s.JobDescription = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobDescription",
")",
"SetJobDescription",
"(",
"v",
"string",
")",
"*",
"JobDescription",
"{",
"s",
".",
"JobDescription",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobDescription sets the JobDescription field's value. | [
"SetJobDescription",
"sets",
"the",
"JobDescription",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6466-L6469 | train |
aws/aws-sdk-go | service/glacier/api.go | SetStatuscode | func (s *ListJobsInput) SetStatuscode(v string) *ListJobsInput {
s.Statuscode = &v
return s
} | go | func (s *ListJobsInput) SetStatuscode(v string) *ListJobsInput {
s.Statuscode = &v
return s
} | [
"func",
"(",
"s",
"*",
"ListJobsInput",
")",
"SetStatuscode",
"(",
"v",
"string",
")",
"*",
"ListJobsInput",
"{",
"s",
".",
"Statuscode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStatuscode sets the Statuscode field's value. | [
"SetStatuscode",
"sets",
"the",
"Statuscode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6773-L6776 | train |
aws/aws-sdk-go | service/glacier/api.go | SetJobList | func (s *ListJobsOutput) SetJobList(v []*JobDescription) *ListJobsOutput {
s.JobList = v
return s
} | go | func (s *ListJobsOutput) SetJobList(v []*JobDescription) *ListJobsOutput {
s.JobList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListJobsOutput",
")",
"SetJobList",
"(",
"v",
"[",
"]",
"*",
"JobDescription",
")",
"*",
"ListJobsOutput",
"{",
"s",
".",
"JobList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobList sets the JobList field's value. | [
"SetJobList",
"sets",
"the",
"JobList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6809-L6812 | train |
aws/aws-sdk-go | service/glacier/api.go | SetUploadsList | func (s *ListMultipartUploadsOutput) SetUploadsList(v []*UploadListElement) *ListMultipartUploadsOutput {
s.UploadsList = v
return s
} | go | func (s *ListMultipartUploadsOutput) SetUploadsList(v []*UploadListElement) *ListMultipartUploadsOutput {
s.UploadsList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListMultipartUploadsOutput",
")",
"SetUploadsList",
"(",
"v",
"[",
"]",
"*",
"UploadListElement",
")",
"*",
"ListMultipartUploadsOutput",
"{",
"s",
".",
"UploadsList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetUploadsList sets the UploadsList field's value. | [
"SetUploadsList",
"sets",
"the",
"UploadsList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6937-L6940 | train |
aws/aws-sdk-go | service/glacier/api.go | SetProvisionedCapacityList | func (s *ListProvisionedCapacityOutput) SetProvisionedCapacityList(v []*ProvisionedCapacityDescription) *ListProvisionedCapacityOutput {
s.ProvisionedCapacityList = v
return s
} | go | func (s *ListProvisionedCapacityOutput) SetProvisionedCapacityList(v []*ProvisionedCapacityDescription) *ListProvisionedCapacityOutput {
s.ProvisionedCapacityList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListProvisionedCapacityOutput",
")",
"SetProvisionedCapacityList",
"(",
"v",
"[",
"]",
"*",
"ProvisionedCapacityDescription",
")",
"*",
"ListProvisionedCapacityOutput",
"{",
"s",
".",
"ProvisionedCapacityList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetProvisionedCapacityList sets the ProvisionedCapacityList field's value. | [
"SetProvisionedCapacityList",
"sets",
"the",
"ProvisionedCapacityList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L7194-L7197 | train |
aws/aws-sdk-go | service/glacier/api.go | SetVaultList | func (s *ListVaultsOutput) SetVaultList(v []*DescribeVaultOutput) *ListVaultsOutput {
s.VaultList = v
return s
} | go | func (s *ListVaultsOutput) SetVaultList(v []*DescribeVaultOutput) *ListVaultsOutput {
s.VaultList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListVaultsOutput",
")",
"SetVaultList",
"(",
"v",
"[",
"]",
"*",
"DescribeVaultOutput",
")",
"*",
"ListVaultsOutput",
"{",
"s",
".",
"VaultList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetVaultList sets the VaultList field's value. | [
"SetVaultList",
"sets",
"the",
"VaultList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L7384-L7387 | train |
aws/aws-sdk-go | service/glacier/api.go | SetRangeInBytes | func (s *PartListElement) SetRangeInBytes(v string) *PartListElement {
s.RangeInBytes = &v
return s
} | go | func (s *PartListElement) SetRangeInBytes(v string) *PartListElement {
s.RangeInBytes = &v
return s
} | [
"func",
"(",
"s",
"*",
"PartListElement",
")",
"SetRangeInBytes",
"(",
"v",
"string",
")",
"*",
"PartListElement",
"{",
"s",
".",
"RangeInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRangeInBytes sets the RangeInBytes field's value. | [
"SetRangeInBytes",
"sets",
"the",
"RangeInBytes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L7476-L7479 | train |
aws/aws-sdk-go | private/signer/v2/v2.go | SignSDKRequest | func SignSDKRequest(req *request.Request) {
// If the request does not need to be signed ignore the signing of the
// request if the AnonymousCredentials object is used.
if req.Config.Credentials == credentials.AnonymousCredentials {
return
}
if req.HTTPRequest.Method != "POST" && req.HTTPRequest.Method != "GET" {
// The V2 signer only supports GET and POST
req.Error = errInvalidMethod
return
}
v2 := signer{
Request: req.HTTPRequest,
Time: req.Time,
Credentials: req.Config.Credentials,
Debug: req.Config.LogLevel.Value(),
Logger: req.Config.Logger,
}
req.Error = v2.Sign()
if req.Error != nil {
return
}
if req.HTTPRequest.Method == "POST" {
// Set the body of the request based on the modified query parameters
req.SetStringBody(v2.Query.Encode())
// Now that the body has changed, remove any Content-Length header,
// because it will be incorrect
req.HTTPRequest.ContentLength = 0
req.HTTPRequest.Header.Del("Content-Length")
} else {
req.HTTPRequest.URL.RawQuery = v2.Query.Encode()
}
} | go | func SignSDKRequest(req *request.Request) {
// If the request does not need to be signed ignore the signing of the
// request if the AnonymousCredentials object is used.
if req.Config.Credentials == credentials.AnonymousCredentials {
return
}
if req.HTTPRequest.Method != "POST" && req.HTTPRequest.Method != "GET" {
// The V2 signer only supports GET and POST
req.Error = errInvalidMethod
return
}
v2 := signer{
Request: req.HTTPRequest,
Time: req.Time,
Credentials: req.Config.Credentials,
Debug: req.Config.LogLevel.Value(),
Logger: req.Config.Logger,
}
req.Error = v2.Sign()
if req.Error != nil {
return
}
if req.HTTPRequest.Method == "POST" {
// Set the body of the request based on the modified query parameters
req.SetStringBody(v2.Query.Encode())
// Now that the body has changed, remove any Content-Length header,
// because it will be incorrect
req.HTTPRequest.ContentLength = 0
req.HTTPRequest.Header.Del("Content-Length")
} else {
req.HTTPRequest.URL.RawQuery = v2.Query.Encode()
}
} | [
"func",
"SignSDKRequest",
"(",
"req",
"*",
"request",
".",
"Request",
")",
"{",
"// If the request does not need to be signed ignore the signing of the",
"// request if the AnonymousCredentials object is used.",
"if",
"req",
".",
"Config",
".",
"Credentials",
"==",
"credentials",
".",
"AnonymousCredentials",
"{",
"return",
"\n",
"}",
"\n\n",
"if",
"req",
".",
"HTTPRequest",
".",
"Method",
"!=",
"\"",
"\"",
"&&",
"req",
".",
"HTTPRequest",
".",
"Method",
"!=",
"\"",
"\"",
"{",
"// The V2 signer only supports GET and POST",
"req",
".",
"Error",
"=",
"errInvalidMethod",
"\n",
"return",
"\n",
"}",
"\n\n",
"v2",
":=",
"signer",
"{",
"Request",
":",
"req",
".",
"HTTPRequest",
",",
"Time",
":",
"req",
".",
"Time",
",",
"Credentials",
":",
"req",
".",
"Config",
".",
"Credentials",
",",
"Debug",
":",
"req",
".",
"Config",
".",
"LogLevel",
".",
"Value",
"(",
")",
",",
"Logger",
":",
"req",
".",
"Config",
".",
"Logger",
",",
"}",
"\n\n",
"req",
".",
"Error",
"=",
"v2",
".",
"Sign",
"(",
")",
"\n\n",
"if",
"req",
".",
"Error",
"!=",
"nil",
"{",
"return",
"\n",
"}",
"\n\n",
"if",
"req",
".",
"HTTPRequest",
".",
"Method",
"==",
"\"",
"\"",
"{",
"// Set the body of the request based on the modified query parameters",
"req",
".",
"SetStringBody",
"(",
"v2",
".",
"Query",
".",
"Encode",
"(",
")",
")",
"\n\n",
"// Now that the body has changed, remove any Content-Length header,",
"// because it will be incorrect",
"req",
".",
"HTTPRequest",
".",
"ContentLength",
"=",
"0",
"\n",
"req",
".",
"HTTPRequest",
".",
"Header",
".",
"Del",
"(",
"\"",
"\"",
")",
"\n",
"}",
"else",
"{",
"req",
".",
"HTTPRequest",
".",
"URL",
".",
"RawQuery",
"=",
"v2",
".",
"Query",
".",
"Encode",
"(",
")",
"\n",
"}",
"\n",
"}"
] | // SignSDKRequest requests with signature version 2.
//
// Will sign the requests with the service config's Credentials object
// Signing is skipped if the credentials is the credentials.AnonymousCredentials
// object. | [
"SignSDKRequest",
"requests",
"with",
"signature",
"version",
"2",
".",
"Will",
"sign",
"the",
"requests",
"with",
"the",
"service",
"config",
"s",
"Credentials",
"object",
"Signing",
"is",
"skipped",
"if",
"the",
"credentials",
"is",
"the",
"credentials",
".",
"AnonymousCredentials",
"object",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/signer/v2/v2.go#L54-L92 | train |
aws/aws-sdk-go | service/glue/api.go | SetPartitionInputList | func (s *BatchCreatePartitionInput) SetPartitionInputList(v []*PartitionInput) *BatchCreatePartitionInput {
s.PartitionInputList = v
return s
} | go | func (s *BatchCreatePartitionInput) SetPartitionInputList(v []*PartitionInput) *BatchCreatePartitionInput {
s.PartitionInputList = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchCreatePartitionInput",
")",
"SetPartitionInputList",
"(",
"v",
"[",
"]",
"*",
"PartitionInput",
")",
"*",
"BatchCreatePartitionInput",
"{",
"s",
".",
"PartitionInputList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartitionInputList sets the PartitionInputList field's value. | [
"SetPartitionInputList",
"sets",
"the",
"PartitionInputList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10010-L10013 | train |
aws/aws-sdk-go | service/glue/api.go | SetConnectionNameList | func (s *BatchDeleteConnectionInput) SetConnectionNameList(v []*string) *BatchDeleteConnectionInput {
s.ConnectionNameList = v
return s
} | go | func (s *BatchDeleteConnectionInput) SetConnectionNameList(v []*string) *BatchDeleteConnectionInput {
s.ConnectionNameList = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchDeleteConnectionInput",
")",
"SetConnectionNameList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchDeleteConnectionInput",
"{",
"s",
".",
"ConnectionNameList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetConnectionNameList sets the ConnectionNameList field's value. | [
"SetConnectionNameList",
"sets",
"the",
"ConnectionNameList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10090-L10093 | train |
aws/aws-sdk-go | service/glue/api.go | SetPartitionsToDelete | func (s *BatchDeletePartitionInput) SetPartitionsToDelete(v []*PartitionValueList) *BatchDeletePartitionInput {
s.PartitionsToDelete = v
return s
} | go | func (s *BatchDeletePartitionInput) SetPartitionsToDelete(v []*PartitionValueList) *BatchDeletePartitionInput {
s.PartitionsToDelete = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchDeletePartitionInput",
")",
"SetPartitionsToDelete",
"(",
"v",
"[",
"]",
"*",
"PartitionValueList",
")",
"*",
"BatchDeletePartitionInput",
"{",
"s",
".",
"PartitionsToDelete",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartitionsToDelete sets the PartitionsToDelete field's value. | [
"SetPartitionsToDelete",
"sets",
"the",
"PartitionsToDelete",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10212-L10215 | train |
aws/aws-sdk-go | service/glue/api.go | SetTablesToDelete | func (s *BatchDeleteTableInput) SetTablesToDelete(v []*string) *BatchDeleteTableInput {
s.TablesToDelete = v
return s
} | go | func (s *BatchDeleteTableInput) SetTablesToDelete(v []*string) *BatchDeleteTableInput {
s.TablesToDelete = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchDeleteTableInput",
")",
"SetTablesToDelete",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchDeleteTableInput",
"{",
"s",
".",
"TablesToDelete",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTablesToDelete sets the TablesToDelete field's value. | [
"SetTablesToDelete",
"sets",
"the",
"TablesToDelete",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10310-L10313 | train |
aws/aws-sdk-go | service/glue/api.go | SetVersionIds | func (s *BatchDeleteTableVersionInput) SetVersionIds(v []*string) *BatchDeleteTableVersionInput {
s.VersionIds = v
return s
} | go | func (s *BatchDeleteTableVersionInput) SetVersionIds(v []*string) *BatchDeleteTableVersionInput {
s.VersionIds = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchDeleteTableVersionInput",
")",
"SetVersionIds",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchDeleteTableVersionInput",
"{",
"s",
".",
"VersionIds",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetVersionIds sets the VersionIds field's value. | [
"SetVersionIds",
"sets",
"the",
"VersionIds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10420-L10423 | train |
aws/aws-sdk-go | service/glue/api.go | SetCrawlersNotFound | func (s *BatchGetCrawlersOutput) SetCrawlersNotFound(v []*string) *BatchGetCrawlersOutput {
s.CrawlersNotFound = v
return s
} | go | func (s *BatchGetCrawlersOutput) SetCrawlersNotFound(v []*string) *BatchGetCrawlersOutput {
s.CrawlersNotFound = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetCrawlersOutput",
")",
"SetCrawlersNotFound",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetCrawlersOutput",
"{",
"s",
".",
"CrawlersNotFound",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCrawlersNotFound sets the CrawlersNotFound field's value. | [
"SetCrawlersNotFound",
"sets",
"the",
"CrawlersNotFound",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10514-L10517 | train |
aws/aws-sdk-go | service/glue/api.go | SetDevEndpointsNotFound | func (s *BatchGetDevEndpointsOutput) SetDevEndpointsNotFound(v []*string) *BatchGetDevEndpointsOutput {
s.DevEndpointsNotFound = v
return s
} | go | func (s *BatchGetDevEndpointsOutput) SetDevEndpointsNotFound(v []*string) *BatchGetDevEndpointsOutput {
s.DevEndpointsNotFound = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetDevEndpointsOutput",
")",
"SetDevEndpointsNotFound",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetDevEndpointsOutput",
"{",
"s",
".",
"DevEndpointsNotFound",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDevEndpointsNotFound sets the DevEndpointsNotFound field's value. | [
"SetDevEndpointsNotFound",
"sets",
"the",
"DevEndpointsNotFound",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10588-L10591 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobsNotFound | func (s *BatchGetJobsOutput) SetJobsNotFound(v []*string) *BatchGetJobsOutput {
s.JobsNotFound = v
return s
} | go | func (s *BatchGetJobsOutput) SetJobsNotFound(v []*string) *BatchGetJobsOutput {
s.JobsNotFound = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetJobsOutput",
")",
"SetJobsNotFound",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetJobsOutput",
"{",
"s",
".",
"JobsNotFound",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobsNotFound sets the JobsNotFound field's value. | [
"SetJobsNotFound",
"sets",
"the",
"JobsNotFound",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10658-L10661 | train |
aws/aws-sdk-go | service/glue/api.go | SetPartitionsToGet | func (s *BatchGetPartitionInput) SetPartitionsToGet(v []*PartitionValueList) *BatchGetPartitionInput {
s.PartitionsToGet = v
return s
} | go | func (s *BatchGetPartitionInput) SetPartitionsToGet(v []*PartitionValueList) *BatchGetPartitionInput {
s.PartitionsToGet = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetPartitionInput",
")",
"SetPartitionsToGet",
"(",
"v",
"[",
"]",
"*",
"PartitionValueList",
")",
"*",
"BatchGetPartitionInput",
"{",
"s",
".",
"PartitionsToGet",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartitionsToGet sets the PartitionsToGet field's value. | [
"SetPartitionsToGet",
"sets",
"the",
"PartitionsToGet",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10747-L10750 | train |
aws/aws-sdk-go | service/glue/api.go | SetTriggersNotFound | func (s *BatchGetTriggersOutput) SetTriggersNotFound(v []*string) *BatchGetTriggersOutput {
s.TriggersNotFound = v
return s
} | go | func (s *BatchGetTriggersOutput) SetTriggersNotFound(v []*string) *BatchGetTriggersOutput {
s.TriggersNotFound = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetTriggersOutput",
")",
"SetTriggersNotFound",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetTriggersOutput",
"{",
"s",
".",
"TriggersNotFound",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTriggersNotFound sets the TriggersNotFound field's value. | [
"SetTriggersNotFound",
"sets",
"the",
"TriggersNotFound",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10857-L10860 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobRunIds | func (s *BatchStopJobRunInput) SetJobRunIds(v []*string) *BatchStopJobRunInput {
s.JobRunIds = v
return s
} | go | func (s *BatchStopJobRunInput) SetJobRunIds(v []*string) *BatchStopJobRunInput {
s.JobRunIds = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchStopJobRunInput",
")",
"SetJobRunIds",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchStopJobRunInput",
"{",
"s",
".",
"JobRunIds",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobRunIds sets the JobRunIds field's value. | [
"SetJobRunIds",
"sets",
"the",
"JobRunIds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10957-L10960 | train |
aws/aws-sdk-go | service/glue/api.go | SetSuccessfulSubmissions | func (s *BatchStopJobRunOutput) SetSuccessfulSubmissions(v []*BatchStopJobRunSuccessfulSubmission) *BatchStopJobRunOutput {
s.SuccessfulSubmissions = v
return s
} | go | func (s *BatchStopJobRunOutput) SetSuccessfulSubmissions(v []*BatchStopJobRunSuccessfulSubmission) *BatchStopJobRunOutput {
s.SuccessfulSubmissions = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchStopJobRunOutput",
")",
"SetSuccessfulSubmissions",
"(",
"v",
"[",
"]",
"*",
"BatchStopJobRunSuccessfulSubmission",
")",
"*",
"BatchStopJobRunOutput",
"{",
"s",
".",
"SuccessfulSubmissions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSuccessfulSubmissions sets the SuccessfulSubmissions field's value. | [
"SetSuccessfulSubmissions",
"sets",
"the",
"SuccessfulSubmissions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10990-L10993 | train |
aws/aws-sdk-go | service/glue/api.go | SetImportCompleted | func (s *CatalogImportStatus) SetImportCompleted(v bool) *CatalogImportStatus {
s.ImportCompleted = &v
return s
} | go | func (s *CatalogImportStatus) SetImportCompleted(v bool) *CatalogImportStatus {
s.ImportCompleted = &v
return s
} | [
"func",
"(",
"s",
"*",
"CatalogImportStatus",
")",
"SetImportCompleted",
"(",
"v",
"bool",
")",
"*",
"CatalogImportStatus",
"{",
"s",
".",
"ImportCompleted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetImportCompleted sets the ImportCompleted field's value. | [
"SetImportCompleted",
"sets",
"the",
"ImportCompleted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11112-L11115 | train |
aws/aws-sdk-go | service/glue/api.go | SetImportTime | func (s *CatalogImportStatus) SetImportTime(v time.Time) *CatalogImportStatus {
s.ImportTime = &v
return s
} | go | func (s *CatalogImportStatus) SetImportTime(v time.Time) *CatalogImportStatus {
s.ImportTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"CatalogImportStatus",
")",
"SetImportTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"CatalogImportStatus",
"{",
"s",
".",
"ImportTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetImportTime sets the ImportTime field's value. | [
"SetImportTime",
"sets",
"the",
"ImportTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11118-L11121 | train |
aws/aws-sdk-go | service/glue/api.go | SetImportedBy | func (s *CatalogImportStatus) SetImportedBy(v string) *CatalogImportStatus {
s.ImportedBy = &v
return s
} | go | func (s *CatalogImportStatus) SetImportedBy(v string) *CatalogImportStatus {
s.ImportedBy = &v
return s
} | [
"func",
"(",
"s",
"*",
"CatalogImportStatus",
")",
"SetImportedBy",
"(",
"v",
"string",
")",
"*",
"CatalogImportStatus",
"{",
"s",
".",
"ImportedBy",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetImportedBy sets the ImportedBy field's value. | [
"SetImportedBy",
"sets",
"the",
"ImportedBy",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11124-L11127 | train |
aws/aws-sdk-go | service/glue/api.go | SetCloudWatchEncryptionMode | func (s *CloudWatchEncryption) SetCloudWatchEncryptionMode(v string) *CloudWatchEncryption {
s.CloudWatchEncryptionMode = &v
return s
} | go | func (s *CloudWatchEncryption) SetCloudWatchEncryptionMode(v string) *CloudWatchEncryption {
s.CloudWatchEncryptionMode = &v
return s
} | [
"func",
"(",
"s",
"*",
"CloudWatchEncryption",
")",
"SetCloudWatchEncryptionMode",
"(",
"v",
"string",
")",
"*",
"CloudWatchEncryption",
"{",
"s",
".",
"CloudWatchEncryptionMode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloudWatchEncryptionMode sets the CloudWatchEncryptionMode field's value. | [
"SetCloudWatchEncryptionMode",
"sets",
"the",
"CloudWatchEncryptionMode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11210-L11213 | train |
aws/aws-sdk-go | service/glue/api.go | SetTargetParameter | func (s *CodeGenEdge) SetTargetParameter(v string) *CodeGenEdge {
s.TargetParameter = &v
return s
} | go | func (s *CodeGenEdge) SetTargetParameter(v string) *CodeGenEdge {
s.TargetParameter = &v
return s
} | [
"func",
"(",
"s",
"*",
"CodeGenEdge",
")",
"SetTargetParameter",
"(",
"v",
"string",
")",
"*",
"CodeGenEdge",
"{",
"s",
".",
"TargetParameter",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTargetParameter sets the TargetParameter field's value. | [
"SetTargetParameter",
"sets",
"the",
"TargetParameter",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11284-L11287 | train |
aws/aws-sdk-go | service/glue/api.go | SetLineNumber | func (s *CodeGenNode) SetLineNumber(v int64) *CodeGenNode {
s.LineNumber = &v
return s
} | go | func (s *CodeGenNode) SetLineNumber(v int64) *CodeGenNode {
s.LineNumber = &v
return s
} | [
"func",
"(",
"s",
"*",
"CodeGenNode",
")",
"SetLineNumber",
"(",
"v",
"int64",
")",
"*",
"CodeGenNode",
"{",
"s",
".",
"LineNumber",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLineNumber sets the LineNumber field's value. | [
"SetLineNumber",
"sets",
"the",
"LineNumber",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11367-L11370 | train |
aws/aws-sdk-go | service/glue/api.go | SetParam | func (s *CodeGenNodeArg) SetParam(v bool) *CodeGenNodeArg {
s.Param = &v
return s
} | go | func (s *CodeGenNodeArg) SetParam(v bool) *CodeGenNodeArg {
s.Param = &v
return s
} | [
"func",
"(",
"s",
"*",
"CodeGenNodeArg",
")",
"SetParam",
"(",
"v",
"bool",
")",
"*",
"CodeGenNodeArg",
"{",
"s",
".",
"Param",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetParam sets the Param field's value. | [
"SetParam",
"sets",
"the",
"Param",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11429-L11432 | train |
aws/aws-sdk-go | service/glue/api.go | SetLogicalOperator | func (s *Condition) SetLogicalOperator(v string) *Condition {
s.LogicalOperator = &v
return s
} | go | func (s *Condition) SetLogicalOperator(v string) *Condition {
s.LogicalOperator = &v
return s
} | [
"func",
"(",
"s",
"*",
"Condition",
")",
"SetLogicalOperator",
"(",
"v",
"string",
")",
"*",
"Condition",
"{",
"s",
".",
"LogicalOperator",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLogicalOperator sets the LogicalOperator field's value. | [
"SetLogicalOperator",
"sets",
"the",
"LogicalOperator",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11546-L11549 | train |
aws/aws-sdk-go | service/glue/api.go | SetAwsKmsKeyId | func (s *ConnectionPasswordEncryption) SetAwsKmsKeyId(v string) *ConnectionPasswordEncryption {
s.AwsKmsKeyId = &v
return s
} | go | func (s *ConnectionPasswordEncryption) SetAwsKmsKeyId(v string) *ConnectionPasswordEncryption {
s.AwsKmsKeyId = &v
return s
} | [
"func",
"(",
"s",
"*",
"ConnectionPasswordEncryption",
")",
"SetAwsKmsKeyId",
"(",
"v",
"string",
")",
"*",
"ConnectionPasswordEncryption",
"{",
"s",
".",
"AwsKmsKeyId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAwsKmsKeyId sets the AwsKmsKeyId field's value. | [
"SetAwsKmsKeyId",
"sets",
"the",
"AwsKmsKeyId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11854-L11857 | train |
aws/aws-sdk-go | service/glue/api.go | SetReturnConnectionPasswordEncrypted | func (s *ConnectionPasswordEncryption) SetReturnConnectionPasswordEncrypted(v bool) *ConnectionPasswordEncryption {
s.ReturnConnectionPasswordEncrypted = &v
return s
} | go | func (s *ConnectionPasswordEncryption) SetReturnConnectionPasswordEncrypted(v bool) *ConnectionPasswordEncryption {
s.ReturnConnectionPasswordEncrypted = &v
return s
} | [
"func",
"(",
"s",
"*",
"ConnectionPasswordEncryption",
")",
"SetReturnConnectionPasswordEncrypted",
"(",
"v",
"bool",
")",
"*",
"ConnectionPasswordEncryption",
"{",
"s",
".",
"ReturnConnectionPasswordEncrypted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReturnConnectionPasswordEncrypted sets the ReturnConnectionPasswordEncrypted field's value. | [
"SetReturnConnectionPasswordEncrypted",
"sets",
"the",
"ReturnConnectionPasswordEncrypted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11860-L11863 | train |
aws/aws-sdk-go | service/glue/api.go | SetCrawlElapsedTime | func (s *Crawler) SetCrawlElapsedTime(v int64) *Crawler {
s.CrawlElapsedTime = &v
return s
} | go | func (s *Crawler) SetCrawlElapsedTime(v int64) *Crawler {
s.CrawlElapsedTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"Crawler",
")",
"SetCrawlElapsedTime",
"(",
"v",
"int64",
")",
"*",
"Crawler",
"{",
"s",
".",
"CrawlElapsedTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCrawlElapsedTime sets the CrawlElapsedTime field's value. | [
"SetCrawlElapsedTime",
"sets",
"the",
"CrawlElapsedTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11975-L11978 | train |
aws/aws-sdk-go | service/glue/api.go | SetLastCrawl | func (s *Crawler) SetLastCrawl(v *LastCrawlInfo) *Crawler {
s.LastCrawl = v
return s
} | go | func (s *Crawler) SetLastCrawl(v *LastCrawlInfo) *Crawler {
s.LastCrawl = v
return s
} | [
"func",
"(",
"s",
"*",
"Crawler",
")",
"SetLastCrawl",
"(",
"v",
"*",
"LastCrawlInfo",
")",
"*",
"Crawler",
"{",
"s",
".",
"LastCrawl",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLastCrawl sets the LastCrawl field's value. | [
"SetLastCrawl",
"sets",
"the",
"LastCrawl",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12005-L12008 | train |
aws/aws-sdk-go | service/glue/api.go | SetLastRuntimeSeconds | func (s *CrawlerMetrics) SetLastRuntimeSeconds(v float64) *CrawlerMetrics {
s.LastRuntimeSeconds = &v
return s
} | go | func (s *CrawlerMetrics) SetLastRuntimeSeconds(v float64) *CrawlerMetrics {
s.LastRuntimeSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetLastRuntimeSeconds",
"(",
"v",
"float64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"LastRuntimeSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLastRuntimeSeconds sets the LastRuntimeSeconds field's value. | [
"SetLastRuntimeSeconds",
"sets",
"the",
"LastRuntimeSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12111-L12114 | train |
aws/aws-sdk-go | service/glue/api.go | SetMedianRuntimeSeconds | func (s *CrawlerMetrics) SetMedianRuntimeSeconds(v float64) *CrawlerMetrics {
s.MedianRuntimeSeconds = &v
return s
} | go | func (s *CrawlerMetrics) SetMedianRuntimeSeconds(v float64) *CrawlerMetrics {
s.MedianRuntimeSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetMedianRuntimeSeconds",
"(",
"v",
"float64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"MedianRuntimeSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMedianRuntimeSeconds sets the MedianRuntimeSeconds field's value. | [
"SetMedianRuntimeSeconds",
"sets",
"the",
"MedianRuntimeSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12117-L12120 | train |
aws/aws-sdk-go | service/glue/api.go | SetStillEstimating | func (s *CrawlerMetrics) SetStillEstimating(v bool) *CrawlerMetrics {
s.StillEstimating = &v
return s
} | go | func (s *CrawlerMetrics) SetStillEstimating(v bool) *CrawlerMetrics {
s.StillEstimating = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetStillEstimating",
"(",
"v",
"bool",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"StillEstimating",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStillEstimating sets the StillEstimating field's value. | [
"SetStillEstimating",
"sets",
"the",
"StillEstimating",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12123-L12126 | train |
aws/aws-sdk-go | service/glue/api.go | SetTablesCreated | func (s *CrawlerMetrics) SetTablesCreated(v int64) *CrawlerMetrics {
s.TablesCreated = &v
return s
} | go | func (s *CrawlerMetrics) SetTablesCreated(v int64) *CrawlerMetrics {
s.TablesCreated = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetTablesCreated",
"(",
"v",
"int64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"TablesCreated",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTablesCreated sets the TablesCreated field's value. | [
"SetTablesCreated",
"sets",
"the",
"TablesCreated",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12129-L12132 | train |
aws/aws-sdk-go | service/glue/api.go | SetTablesDeleted | func (s *CrawlerMetrics) SetTablesDeleted(v int64) *CrawlerMetrics {
s.TablesDeleted = &v
return s
} | go | func (s *CrawlerMetrics) SetTablesDeleted(v int64) *CrawlerMetrics {
s.TablesDeleted = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetTablesDeleted",
"(",
"v",
"int64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"TablesDeleted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTablesDeleted sets the TablesDeleted field's value. | [
"SetTablesDeleted",
"sets",
"the",
"TablesDeleted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12135-L12138 | train |
aws/aws-sdk-go | service/glue/api.go | SetTablesUpdated | func (s *CrawlerMetrics) SetTablesUpdated(v int64) *CrawlerMetrics {
s.TablesUpdated = &v
return s
} | go | func (s *CrawlerMetrics) SetTablesUpdated(v int64) *CrawlerMetrics {
s.TablesUpdated = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetTablesUpdated",
"(",
"v",
"int64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"TablesUpdated",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTablesUpdated sets the TablesUpdated field's value. | [
"SetTablesUpdated",
"sets",
"the",
"TablesUpdated",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12141-L12144 | train |
aws/aws-sdk-go | service/glue/api.go | SetTimeLeftSeconds | func (s *CrawlerMetrics) SetTimeLeftSeconds(v float64) *CrawlerMetrics {
s.TimeLeftSeconds = &v
return s
} | go | func (s *CrawlerMetrics) SetTimeLeftSeconds(v float64) *CrawlerMetrics {
s.TimeLeftSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetTimeLeftSeconds",
"(",
"v",
"float64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"TimeLeftSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTimeLeftSeconds sets the TimeLeftSeconds field's value. | [
"SetTimeLeftSeconds",
"sets",
"the",
"TimeLeftSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12147-L12150 | train |
aws/aws-sdk-go | service/glue/api.go | SetDynamoDBTargets | func (s *CrawlerTargets) SetDynamoDBTargets(v []*DynamoDBTarget) *CrawlerTargets {
s.DynamoDBTargets = v
return s
} | go | func (s *CrawlerTargets) SetDynamoDBTargets(v []*DynamoDBTarget) *CrawlerTargets {
s.DynamoDBTargets = v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerTargets",
")",
"SetDynamoDBTargets",
"(",
"v",
"[",
"]",
"*",
"DynamoDBTarget",
")",
"*",
"CrawlerTargets",
"{",
"s",
".",
"DynamoDBTargets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDynamoDBTargets sets the DynamoDBTargets field's value. | [
"SetDynamoDBTargets",
"sets",
"the",
"DynamoDBTargets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12177-L12180 | train |
aws/aws-sdk-go | service/glue/api.go | SetJdbcTargets | func (s *CrawlerTargets) SetJdbcTargets(v []*JdbcTarget) *CrawlerTargets {
s.JdbcTargets = v
return s
} | go | func (s *CrawlerTargets) SetJdbcTargets(v []*JdbcTarget) *CrawlerTargets {
s.JdbcTargets = v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerTargets",
")",
"SetJdbcTargets",
"(",
"v",
"[",
"]",
"*",
"JdbcTarget",
")",
"*",
"CrawlerTargets",
"{",
"s",
".",
"JdbcTargets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJdbcTargets sets the JdbcTargets field's value. | [
"SetJdbcTargets",
"sets",
"the",
"JdbcTargets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12183-L12186 | train |
aws/aws-sdk-go | service/glue/api.go | SetS3Targets | func (s *CrawlerTargets) SetS3Targets(v []*S3Target) *CrawlerTargets {
s.S3Targets = v
return s
} | go | func (s *CrawlerTargets) SetS3Targets(v []*S3Target) *CrawlerTargets {
s.S3Targets = v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerTargets",
")",
"SetS3Targets",
"(",
"v",
"[",
"]",
"*",
"S3Target",
")",
"*",
"CrawlerTargets",
"{",
"s",
".",
"S3Targets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetS3Targets sets the S3Targets field's value. | [
"SetS3Targets",
"sets",
"the",
"S3Targets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12189-L12192 | train |
aws/aws-sdk-go | service/glue/api.go | SetStartOnCreation | func (s *CreateTriggerInput) SetStartOnCreation(v bool) *CreateTriggerInput {
s.StartOnCreation = &v
return s
} | go | func (s *CreateTriggerInput) SetStartOnCreation(v bool) *CreateTriggerInput {
s.StartOnCreation = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateTriggerInput",
")",
"SetStartOnCreation",
"(",
"v",
"bool",
")",
"*",
"CreateTriggerInput",
"{",
"s",
".",
"StartOnCreation",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStartOnCreation sets the StartOnCreation field's value. | [
"SetStartOnCreation",
"sets",
"the",
"StartOnCreation",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L13964-L13967 | train |
aws/aws-sdk-go | service/glue/api.go | SetConnectionPasswordEncryption | func (s *DataCatalogEncryptionSettings) SetConnectionPasswordEncryption(v *ConnectionPasswordEncryption) *DataCatalogEncryptionSettings {
s.ConnectionPasswordEncryption = v
return s
} | go | func (s *DataCatalogEncryptionSettings) SetConnectionPasswordEncryption(v *ConnectionPasswordEncryption) *DataCatalogEncryptionSettings {
s.ConnectionPasswordEncryption = v
return s
} | [
"func",
"(",
"s",
"*",
"DataCatalogEncryptionSettings",
")",
"SetConnectionPasswordEncryption",
"(",
"v",
"*",
"ConnectionPasswordEncryption",
")",
"*",
"DataCatalogEncryptionSettings",
"{",
"s",
".",
"ConnectionPasswordEncryption",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetConnectionPasswordEncryption sets the ConnectionPasswordEncryption field's value. | [
"SetConnectionPasswordEncryption",
"sets",
"the",
"ConnectionPasswordEncryption",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L14314-L14317 | train |
aws/aws-sdk-go | service/glue/api.go | SetPrivateAddress | func (s *DevEndpoint) SetPrivateAddress(v string) *DevEndpoint {
s.PrivateAddress = &v
return s
} | go | func (s *DevEndpoint) SetPrivateAddress(v string) *DevEndpoint {
s.PrivateAddress = &v
return s
} | [
"func",
"(",
"s",
"*",
"DevEndpoint",
")",
"SetPrivateAddress",
"(",
"v",
"string",
")",
"*",
"DevEndpoint",
"{",
"s",
".",
"PrivateAddress",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPrivateAddress sets the PrivateAddress field's value. | [
"SetPrivateAddress",
"sets",
"the",
"PrivateAddress",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15536-L15539 | train |
aws/aws-sdk-go | service/glue/api.go | SetPublicAddress | func (s *DevEndpoint) SetPublicAddress(v string) *DevEndpoint {
s.PublicAddress = &v
return s
} | go | func (s *DevEndpoint) SetPublicAddress(v string) *DevEndpoint {
s.PublicAddress = &v
return s
} | [
"func",
"(",
"s",
"*",
"DevEndpoint",
")",
"SetPublicAddress",
"(",
"v",
"string",
")",
"*",
"DevEndpoint",
"{",
"s",
".",
"PublicAddress",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPublicAddress sets the PublicAddress field's value. | [
"SetPublicAddress",
"sets",
"the",
"PublicAddress",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15542-L15545 | train |
aws/aws-sdk-go | service/glue/api.go | SetCatalogEncryptionMode | func (s *EncryptionAtRest) SetCatalogEncryptionMode(v string) *EncryptionAtRest {
s.CatalogEncryptionMode = &v
return s
} | go | func (s *EncryptionAtRest) SetCatalogEncryptionMode(v string) *EncryptionAtRest {
s.CatalogEncryptionMode = &v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionAtRest",
")",
"SetCatalogEncryptionMode",
"(",
"v",
"string",
")",
"*",
"EncryptionAtRest",
"{",
"s",
".",
"CatalogEncryptionMode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCatalogEncryptionMode sets the CatalogEncryptionMode field's value. | [
"SetCatalogEncryptionMode",
"sets",
"the",
"CatalogEncryptionMode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15714-L15717 | train |
aws/aws-sdk-go | service/glue/api.go | SetSseAwsKmsKeyId | func (s *EncryptionAtRest) SetSseAwsKmsKeyId(v string) *EncryptionAtRest {
s.SseAwsKmsKeyId = &v
return s
} | go | func (s *EncryptionAtRest) SetSseAwsKmsKeyId(v string) *EncryptionAtRest {
s.SseAwsKmsKeyId = &v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionAtRest",
")",
"SetSseAwsKmsKeyId",
"(",
"v",
"string",
")",
"*",
"EncryptionAtRest",
"{",
"s",
".",
"SseAwsKmsKeyId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSseAwsKmsKeyId sets the SseAwsKmsKeyId field's value. | [
"SetSseAwsKmsKeyId",
"sets",
"the",
"SseAwsKmsKeyId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15720-L15723 | train |
aws/aws-sdk-go | service/glue/api.go | SetCloudWatchEncryption | func (s *EncryptionConfiguration) SetCloudWatchEncryption(v *CloudWatchEncryption) *EncryptionConfiguration {
s.CloudWatchEncryption = v
return s
} | go | func (s *EncryptionConfiguration) SetCloudWatchEncryption(v *CloudWatchEncryption) *EncryptionConfiguration {
s.CloudWatchEncryption = v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionConfiguration",
")",
"SetCloudWatchEncryption",
"(",
"v",
"*",
"CloudWatchEncryption",
")",
"*",
"EncryptionConfiguration",
"{",
"s",
".",
"CloudWatchEncryption",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloudWatchEncryption sets the CloudWatchEncryption field's value. | [
"SetCloudWatchEncryption",
"sets",
"the",
"CloudWatchEncryption",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15750-L15753 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobBookmarksEncryption | func (s *EncryptionConfiguration) SetJobBookmarksEncryption(v *JobBookmarksEncryption) *EncryptionConfiguration {
s.JobBookmarksEncryption = v
return s
} | go | func (s *EncryptionConfiguration) SetJobBookmarksEncryption(v *JobBookmarksEncryption) *EncryptionConfiguration {
s.JobBookmarksEncryption = v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionConfiguration",
")",
"SetJobBookmarksEncryption",
"(",
"v",
"*",
"JobBookmarksEncryption",
")",
"*",
"EncryptionConfiguration",
"{",
"s",
".",
"JobBookmarksEncryption",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobBookmarksEncryption sets the JobBookmarksEncryption field's value. | [
"SetJobBookmarksEncryption",
"sets",
"the",
"JobBookmarksEncryption",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15756-L15759 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.