Class StreamId.Builder

  • All Implemented Interfaces:
    StreamIdOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    StreamId

    public static final class StreamId.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StreamId.Builder>
    implements StreamIdOrBuilder
     Unique identifier for a build event stream.
     
    Protobuf type google.devtools.build.v1.StreamId
    • 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<StreamId.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public StreamId.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws java.io.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<StreamId.Builder>
        Throws:
        java.io.IOException
      • getBuildId

        public java.lang.String getBuildId()
         The id of a Build message.
         
        string build_id = 1;
        Specified by:
        getBuildId in interface StreamIdOrBuilder
        Returns:
        The buildId.
      • getBuildIdBytes

        public com.google.protobuf.ByteString getBuildIdBytes()
         The id of a Build message.
         
        string build_id = 1;
        Specified by:
        getBuildIdBytes in interface StreamIdOrBuilder
        Returns:
        The bytes for buildId.
      • setBuildId

        public StreamId.Builder setBuildId​(java.lang.String value)
         The id of a Build message.
         
        string build_id = 1;
        Parameters:
        value - The buildId to set.
        Returns:
        This builder for chaining.
      • clearBuildId

        public StreamId.Builder clearBuildId()
         The id of a Build message.
         
        string build_id = 1;
        Returns:
        This builder for chaining.
      • setBuildIdBytes

        public StreamId.Builder setBuildIdBytes​(com.google.protobuf.ByteString value)
         The id of a Build message.
         
        string build_id = 1;
        Parameters:
        value - The bytes for buildId to set.
        Returns:
        This builder for chaining.
      • getInvocationId

        public java.lang.String getInvocationId()
         The unique invocation ID within this build.
         It should be the same as {invocation} (below) during the migration.
         
        string invocation_id = 6;
        Specified by:
        getInvocationId in interface StreamIdOrBuilder
        Returns:
        The invocationId.
      • getInvocationIdBytes

        public com.google.protobuf.ByteString getInvocationIdBytes()
         The unique invocation ID within this build.
         It should be the same as {invocation} (below) during the migration.
         
        string invocation_id = 6;
        Specified by:
        getInvocationIdBytes in interface StreamIdOrBuilder
        Returns:
        The bytes for invocationId.
      • setInvocationId

        public StreamId.Builder setInvocationId​(java.lang.String value)
         The unique invocation ID within this build.
         It should be the same as {invocation} (below) during the migration.
         
        string invocation_id = 6;
        Parameters:
        value - The invocationId to set.
        Returns:
        This builder for chaining.
      • clearInvocationId

        public StreamId.Builder clearInvocationId()
         The unique invocation ID within this build.
         It should be the same as {invocation} (below) during the migration.
         
        string invocation_id = 6;
        Returns:
        This builder for chaining.
      • setInvocationIdBytes

        public StreamId.Builder setInvocationIdBytes​(com.google.protobuf.ByteString value)
         The unique invocation ID within this build.
         It should be the same as {invocation} (below) during the migration.
         
        string invocation_id = 6;
        Parameters:
        value - The bytes for invocationId to set.
        Returns:
        This builder for chaining.
      • getComponentValue

        public int getComponentValue()
         The component that emitted this event.
         
        .google.devtools.build.v1.StreamId.BuildComponent component = 3;
        Specified by:
        getComponentValue in interface StreamIdOrBuilder
        Returns:
        The enum numeric value on the wire for component.
      • setComponentValue

        public StreamId.Builder setComponentValue​(int value)
         The component that emitted this event.
         
        .google.devtools.build.v1.StreamId.BuildComponent component = 3;
        Parameters:
        value - The enum numeric value on the wire for component to set.
        Returns:
        This builder for chaining.
      • setComponent

        public StreamId.Builder setComponent​(StreamId.BuildComponent value)
         The component that emitted this event.
         
        .google.devtools.build.v1.StreamId.BuildComponent component = 3;
        Parameters:
        value - The component to set.
        Returns:
        This builder for chaining.
      • clearComponent

        public StreamId.Builder clearComponent()
         The component that emitted this event.
         
        .google.devtools.build.v1.StreamId.BuildComponent component = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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