Class LogView.Builder

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

    public static final class LogView.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LogView.Builder>
    implements LogViewOrBuilder
     Describes a view over log entries in a bucket.
     
    Protobuf type google.logging.v2.LogView
    • 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<LogView.Builder>
      • clear

        public LogView.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<LogView.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<LogView.Builder>
      • getDefaultInstanceForType

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

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

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

        public LogView.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<LogView.Builder>
      • setField

        public LogView.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<LogView.Builder>
      • clearField

        public LogView.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<LogView.Builder>
      • clearOneof

        public LogView.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<LogView.Builder>
      • setRepeatedField

        public LogView.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<LogView.Builder>
      • addRepeatedField

        public LogView.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<LogView.Builder>
      • mergeFrom

        public LogView.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<LogView.Builder>
      • isInitialized

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

        public LogView.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<LogView.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The resource name of the view.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
         
        string name = 1;
        Specified by:
        getName in interface LogViewOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name of the view.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
         
        string name = 1;
        Specified by:
        getNameBytes in interface LogViewOrBuilder
        Returns:
        The bytes for name.
      • setName

        public LogView.Builder setName​(String value)
         The resource name of the view.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public LogView.Builder clearName()
         The resource name of the view.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public LogView.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource name of the view.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Describes this view.
         
        string description = 3;
        Specified by:
        getDescription in interface LogViewOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Describes this view.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface LogViewOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public LogView.Builder setDescription​(String value)
         Describes this view.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public LogView.Builder clearDescription()
         Describes this view.
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public LogView.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Describes this view.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The creation timestamp of the view.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface LogViewOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The creation timestamp of the view.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface LogViewOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public LogView.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The creation timestamp of the view.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public LogView.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The creation timestamp of the view.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public LogView.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The creation timestamp of the view.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public LogView.Builder clearCreateTime()
         Output only. The creation timestamp of the view.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The creation timestamp of the view.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The creation timestamp of the view.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface LogViewOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The last update timestamp of the view.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface LogViewOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The last update timestamp of the view.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface LogViewOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public LogView.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The last update timestamp of the view.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public LogView.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The last update timestamp of the view.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public LogView.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The last update timestamp of the view.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public LogView.Builder clearUpdateTime()
         Output only. The last update timestamp of the view.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The last update timestamp of the view.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The last update timestamp of the view.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface LogViewOrBuilder
      • getFilter

        public String getFilter()
         Filter that restricts which log entries in a bucket are visible in this
         view.
        
         Filters are restricted to be a logical AND of ==/!= of any of the
         following:
        
           - originating project/folder/organization/billing account.
           - resource type
           - log id
        
         For example:
        
           SOURCE("projects/myproject") AND resource.type = "gce_instance"
                                        AND LOG_ID("stdout")
         
        string filter = 7;
        Specified by:
        getFilter in interface LogViewOrBuilder
        Returns:
        The filter.
      • getFilterBytes

        public com.google.protobuf.ByteString getFilterBytes()
         Filter that restricts which log entries in a bucket are visible in this
         view.
        
         Filters are restricted to be a logical AND of ==/!= of any of the
         following:
        
           - originating project/folder/organization/billing account.
           - resource type
           - log id
        
         For example:
        
           SOURCE("projects/myproject") AND resource.type = "gce_instance"
                                        AND LOG_ID("stdout")
         
        string filter = 7;
        Specified by:
        getFilterBytes in interface LogViewOrBuilder
        Returns:
        The bytes for filter.
      • setFilter

        public LogView.Builder setFilter​(String value)
         Filter that restricts which log entries in a bucket are visible in this
         view.
        
         Filters are restricted to be a logical AND of ==/!= of any of the
         following:
        
           - originating project/folder/organization/billing account.
           - resource type
           - log id
        
         For example:
        
           SOURCE("projects/myproject") AND resource.type = "gce_instance"
                                        AND LOG_ID("stdout")
         
        string filter = 7;
        Parameters:
        value - The filter to set.
        Returns:
        This builder for chaining.
      • clearFilter

        public LogView.Builder clearFilter()
         Filter that restricts which log entries in a bucket are visible in this
         view.
        
         Filters are restricted to be a logical AND of ==/!= of any of the
         following:
        
           - originating project/folder/organization/billing account.
           - resource type
           - log id
        
         For example:
        
           SOURCE("projects/myproject") AND resource.type = "gce_instance"
                                        AND LOG_ID("stdout")
         
        string filter = 7;
        Returns:
        This builder for chaining.
      • setFilterBytes

        public LogView.Builder setFilterBytes​(com.google.protobuf.ByteString value)
         Filter that restricts which log entries in a bucket are visible in this
         view.
        
         Filters are restricted to be a logical AND of ==/!= of any of the
         following:
        
           - originating project/folder/organization/billing account.
           - resource type
           - log id
        
         For example:
        
           SOURCE("projects/myproject") AND resource.type = "gce_instance"
                                        AND LOG_ID("stdout")
         
        string filter = 7;
        Parameters:
        value - The bytes for filter to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final LogView.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<LogView.Builder>
      • mergeUnknownFields

        public final LogView.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<LogView.Builder>