public static final class TruncateLogContext.Builder extends GeneratedMessage.Builder<TruncateLogContext.Builder> implements TruncateLogContextOrBuilderDatabase Instance truncate log context.
Protobuf type google.cloud.sql.v1.TruncateLogContext
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TruncateLogContext.BuilderImplements
TruncateLogContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TruncateLogContext build()| Returns | |
|---|---|
| Type | Description |
TruncateLogContext |
|
buildPartial()
public TruncateLogContext buildPartial()| Returns | |
|---|---|
| Type | Description |
TruncateLogContext |
|
clear()
public TruncateLogContext.Builder clear()| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
|
clearKind()
public TruncateLogContext.Builder clearKind() This is always sql#truncateLogContext.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
This builder for chaining. |
clearLogType()
public TruncateLogContext.Builder clearLogType() The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
MYSQL_SLOW_TABLE.
string log_type = 2;
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public TruncateLogContext getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TruncateLogContext |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKind()
public String getKind() This is always sql#truncateLogContext.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#truncateLogContext.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getLogType()
public String getLogType() The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
MYSQL_SLOW_TABLE.
string log_type = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The logType. |
getLogTypeBytes()
public ByteString getLogTypeBytes() The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
MYSQL_SLOW_TABLE.
string log_type = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for logType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TruncateLogContext other)
public TruncateLogContext.Builder mergeFrom(TruncateLogContext other)| Parameter | |
|---|---|
| Name | Description |
other |
TruncateLogContext |
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TruncateLogContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TruncateLogContext.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
|
setKind(String value)
public TruncateLogContext.Builder setKind(String value) This is always sql#truncateLogContext.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public TruncateLogContext.Builder setKindBytes(ByteString value) This is always sql#truncateLogContext.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
This builder for chaining. |
setLogType(String value)
public TruncateLogContext.Builder setLogType(String value) The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
MYSQL_SLOW_TABLE.
string log_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe logType to set. |
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
This builder for chaining. |
setLogTypeBytes(ByteString value)
public TruncateLogContext.Builder setLogTypeBytes(ByteString value) The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
MYSQL_SLOW_TABLE.
string log_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for logType to set. |
| Returns | |
|---|---|
| Type | Description |
TruncateLogContext.Builder |
This builder for chaining. |