Package com.google.cloud.alloydb.v1alpha
Class Instance.QueryInsightsInstanceConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder
-
- All Implemented Interfaces:
Instance.QueryInsightsInstanceConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Instance.QueryInsightsInstanceConfig
public static final class Instance.QueryInsightsInstanceConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder> implements Instance.QueryInsightsInstanceConfigOrBuilder
QueryInsights Instance specific configuration.
Protobuf typegoogle.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Instance.QueryInsightsInstanceConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Instance.QueryInsightsInstanceConfig
build()
Instance.QueryInsightsInstanceConfig
buildPartial()
Instance.QueryInsightsInstanceConfig.Builder
clear()
Instance.QueryInsightsInstanceConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Instance.QueryInsightsInstanceConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Instance.QueryInsightsInstanceConfig.Builder
clearQueryPlansPerMinute()
Number of query execution plans captured by Insights per minute for all queries combined.Instance.QueryInsightsInstanceConfig.Builder
clearQueryStringLength()
Query string length.Instance.QueryInsightsInstanceConfig.Builder
clearRecordApplicationTags()
Record application tags for an instance.Instance.QueryInsightsInstanceConfig.Builder
clearRecordClientAddress()
Record client address for an instance.Instance.QueryInsightsInstanceConfig.Builder
clone()
Instance.QueryInsightsInstanceConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getQueryPlansPerMinute()
Number of query execution plans captured by Insights per minute for all queries combined.int
getQueryStringLength()
Query string length.boolean
getRecordApplicationTags()
Record application tags for an instance.boolean
getRecordClientAddress()
Record client address for an instance.boolean
hasQueryPlansPerMinute()
Number of query execution plans captured by Insights per minute for all queries combined.boolean
hasRecordApplicationTags()
Record application tags for an instance.boolean
hasRecordClientAddress()
Record client address for an instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Instance.QueryInsightsInstanceConfig.Builder
mergeFrom(Instance.QueryInsightsInstanceConfig other)
Instance.QueryInsightsInstanceConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Instance.QueryInsightsInstanceConfig.Builder
mergeFrom(com.google.protobuf.Message other)
Instance.QueryInsightsInstanceConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Instance.QueryInsightsInstanceConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Instance.QueryInsightsInstanceConfig.Builder
setQueryPlansPerMinute(int value)
Number of query execution plans captured by Insights per minute for all queries combined.Instance.QueryInsightsInstanceConfig.Builder
setQueryStringLength(int value)
Query string length.Instance.QueryInsightsInstanceConfig.Builder
setRecordApplicationTags(boolean value)
Record application tags for an instance.Instance.QueryInsightsInstanceConfig.Builder
setRecordClientAddress(boolean value)
Record client address for an instance.Instance.QueryInsightsInstanceConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Instance.QueryInsightsInstanceConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
clear
public Instance.QueryInsightsInstanceConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
getDefaultInstanceForType
public Instance.QueryInsightsInstanceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Instance.QueryInsightsInstanceConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Instance.QueryInsightsInstanceConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Instance.QueryInsightsInstanceConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
setField
public Instance.QueryInsightsInstanceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
clearField
public Instance.QueryInsightsInstanceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
clearOneof
public Instance.QueryInsightsInstanceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
setRepeatedField
public Instance.QueryInsightsInstanceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
addRepeatedField
public Instance.QueryInsightsInstanceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
mergeFrom
public Instance.QueryInsightsInstanceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
mergeFrom
public Instance.QueryInsightsInstanceConfig.Builder mergeFrom(Instance.QueryInsightsInstanceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
mergeFrom
public Instance.QueryInsightsInstanceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instance.QueryInsightsInstanceConfig.Builder>
- Throws:
IOException
-
hasRecordApplicationTags
public boolean hasRecordApplicationTags()
Record application tags for an instance. This flag is turned "on" by default.
optional bool record_application_tags = 2;
- Specified by:
hasRecordApplicationTags
in interfaceInstance.QueryInsightsInstanceConfigOrBuilder
- Returns:
- Whether the recordApplicationTags field is set.
-
getRecordApplicationTags
public boolean getRecordApplicationTags()
Record application tags for an instance. This flag is turned "on" by default.
optional bool record_application_tags = 2;
- Specified by:
getRecordApplicationTags
in interfaceInstance.QueryInsightsInstanceConfigOrBuilder
- Returns:
- The recordApplicationTags.
-
setRecordApplicationTags
public Instance.QueryInsightsInstanceConfig.Builder setRecordApplicationTags(boolean value)
Record application tags for an instance. This flag is turned "on" by default.
optional bool record_application_tags = 2;
- Parameters:
value
- The recordApplicationTags to set.- Returns:
- This builder for chaining.
-
clearRecordApplicationTags
public Instance.QueryInsightsInstanceConfig.Builder clearRecordApplicationTags()
Record application tags for an instance. This flag is turned "on" by default.
optional bool record_application_tags = 2;
- Returns:
- This builder for chaining.
-
hasRecordClientAddress
public boolean hasRecordClientAddress()
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
optional bool record_client_address = 3;
- Specified by:
hasRecordClientAddress
in interfaceInstance.QueryInsightsInstanceConfigOrBuilder
- Returns:
- Whether the recordClientAddress field is set.
-
getRecordClientAddress
public boolean getRecordClientAddress()
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
optional bool record_client_address = 3;
- Specified by:
getRecordClientAddress
in interfaceInstance.QueryInsightsInstanceConfigOrBuilder
- Returns:
- The recordClientAddress.
-
setRecordClientAddress
public Instance.QueryInsightsInstanceConfig.Builder setRecordClientAddress(boolean value)
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
optional bool record_client_address = 3;
- Parameters:
value
- The recordClientAddress to set.- Returns:
- This builder for chaining.
-
clearRecordClientAddress
public Instance.QueryInsightsInstanceConfig.Builder clearRecordClientAddress()
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
optional bool record_client_address = 3;
- Returns:
- This builder for chaining.
-
getQueryStringLength
public int getQueryStringLength()
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
uint32 query_string_length = 4;
- Specified by:
getQueryStringLength
in interfaceInstance.QueryInsightsInstanceConfigOrBuilder
- Returns:
- The queryStringLength.
-
setQueryStringLength
public Instance.QueryInsightsInstanceConfig.Builder setQueryStringLength(int value)
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
uint32 query_string_length = 4;
- Parameters:
value
- The queryStringLength to set.- Returns:
- This builder for chaining.
-
clearQueryStringLength
public Instance.QueryInsightsInstanceConfig.Builder clearQueryStringLength()
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
uint32 query_string_length = 4;
- Returns:
- This builder for chaining.
-
hasQueryPlansPerMinute
public boolean hasQueryPlansPerMinute()
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
optional uint32 query_plans_per_minute = 5;
- Specified by:
hasQueryPlansPerMinute
in interfaceInstance.QueryInsightsInstanceConfigOrBuilder
- Returns:
- Whether the queryPlansPerMinute field is set.
-
getQueryPlansPerMinute
public int getQueryPlansPerMinute()
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
optional uint32 query_plans_per_minute = 5;
- Specified by:
getQueryPlansPerMinute
in interfaceInstance.QueryInsightsInstanceConfigOrBuilder
- Returns:
- The queryPlansPerMinute.
-
setQueryPlansPerMinute
public Instance.QueryInsightsInstanceConfig.Builder setQueryPlansPerMinute(int value)
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
optional uint32 query_plans_per_minute = 5;
- Parameters:
value
- The queryPlansPerMinute to set.- Returns:
- This builder for chaining.
-
clearQueryPlansPerMinute
public Instance.QueryInsightsInstanceConfig.Builder clearQueryPlansPerMinute()
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
optional uint32 query_plans_per_minute = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Instance.QueryInsightsInstanceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
mergeUnknownFields
public final Instance.QueryInsightsInstanceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder>
-
-