Class IndexConfig.Builder

  • All Implemented Interfaces:
    IndexConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    IndexConfig

    public static final class IndexConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
    implements IndexConfigOrBuilder
     Configuration for an indexed field.
     
    Protobuf type google.logging.v2.IndexConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • clear

        public IndexConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • getDefaultInstanceForType

        public IndexConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public IndexConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public IndexConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public IndexConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • setField

        public IndexConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • clearField

        public IndexConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • clearOneof

        public IndexConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • setRepeatedField

        public IndexConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • addRepeatedField

        public IndexConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • mergeFrom

        public IndexConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IndexConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • mergeFrom

        public IndexConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IndexConfig.Builder>
        Throws:
        IOException
      • getFieldPath

        public String getFieldPath()
         Required. The LogEntry field path to index.
        
         Note that some paths are automatically indexed, and other paths are not
         eligible for indexing. See [indexing documentation](
         https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
         for details.
        
         For example: `jsonPayload.request.status`
         
        string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFieldPath in interface IndexConfigOrBuilder
        Returns:
        The fieldPath.
      • getFieldPathBytes

        public com.google.protobuf.ByteString getFieldPathBytes()
         Required. The LogEntry field path to index.
        
         Note that some paths are automatically indexed, and other paths are not
         eligible for indexing. See [indexing documentation](
         https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
         for details.
        
         For example: `jsonPayload.request.status`
         
        string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFieldPathBytes in interface IndexConfigOrBuilder
        Returns:
        The bytes for fieldPath.
      • setFieldPath

        public IndexConfig.Builder setFieldPath​(String value)
         Required. The LogEntry field path to index.
        
         Note that some paths are automatically indexed, and other paths are not
         eligible for indexing. See [indexing documentation](
         https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
         for details.
        
         For example: `jsonPayload.request.status`
         
        string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The fieldPath to set.
        Returns:
        This builder for chaining.
      • clearFieldPath

        public IndexConfig.Builder clearFieldPath()
         Required. The LogEntry field path to index.
        
         Note that some paths are automatically indexed, and other paths are not
         eligible for indexing. See [indexing documentation](
         https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
         for details.
        
         For example: `jsonPayload.request.status`
         
        string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setFieldPathBytes

        public IndexConfig.Builder setFieldPathBytes​(com.google.protobuf.ByteString value)
         Required. The LogEntry field path to index.
        
         Note that some paths are automatically indexed, and other paths are not
         eligible for indexing. See [indexing documentation](
         https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
         for details.
        
         For example: `jsonPayload.request.status`
         
        string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for fieldPath to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Required. The type of data in this index.
         
        .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTypeValue in interface IndexConfigOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public IndexConfig.Builder setTypeValue​(int value)
         Required. The type of data in this index.
         
        .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public IndexType getType()
         Required. The type of data in this index.
         
        .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getType in interface IndexConfigOrBuilder
        Returns:
        The type.
      • setType

        public IndexConfig.Builder setType​(IndexType value)
         Required. The type of data in this index.
         
        .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public IndexConfig.Builder clearType()
         Required. The type of data in this index.
         
        .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The timestamp when the index was last modified.
        
         This is used to return the timestamp, and will be ignored if supplied
         during update.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface IndexConfigOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The timestamp when the index was last modified.
        
         This is used to return the timestamp, and will be ignored if supplied
         during update.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface IndexConfigOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public IndexConfig.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when the index was last modified.
        
         This is used to return the timestamp, and will be ignored if supplied
         during update.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public IndexConfig.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The timestamp when the index was last modified.
        
         This is used to return the timestamp, and will be ignored if supplied
         during update.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public IndexConfig.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when the index was last modified.
        
         This is used to return the timestamp, and will be ignored if supplied
         during update.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public IndexConfig.Builder clearCreateTime()
         Output only. The timestamp when the index was last modified.
        
         This is used to return the timestamp, and will be ignored if supplied
         during update.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The timestamp when the index was last modified.
        
         This is used to return the timestamp, and will be ignored if supplied
         during update.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The timestamp when the index was last modified.
        
         This is used to return the timestamp, and will be ignored if supplied
         during update.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface IndexConfigOrBuilder
      • setUnknownFields

        public final IndexConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>
      • mergeUnknownFields

        public final IndexConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IndexConfig.Builder>