Class BorderStyle.Builder

  • All Implemented Interfaces:
    BorderStyleOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    BorderStyle

    public static final class BorderStyle.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BorderStyle.Builder>
    implements BorderStyleOrBuilder
     The style options for the border of a card or widget, including the border
     type and color.
    
     [Google Workspace Add-ons and Chat
     apps](https://developers.google.com/workspace/extend):
     
    Protobuf type google.apps.card.v1.BorderStyle
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BorderStyle.Builder>
      • clear

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

        public BorderStyle getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

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

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

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

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

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

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

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

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

        public BorderStyle.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<BorderStyle.Builder>
        Throws:
        java.io.IOException
      • getTypeValue

        public int getTypeValue()
         The border type.
         
        .google.apps.card.v1.BorderStyle.BorderType type = 1;
        Specified by:
        getTypeValue in interface BorderStyleOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public BorderStyle.Builder setTypeValue​(int value)
         The border type.
         
        .google.apps.card.v1.BorderStyle.BorderType type = 1;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public BorderStyle.Builder setType​(BorderStyle.BorderType value)
         The border type.
         
        .google.apps.card.v1.BorderStyle.BorderType type = 1;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public BorderStyle.Builder clearType()
         The border type.
         
        .google.apps.card.v1.BorderStyle.BorderType type = 1;
        Returns:
        This builder for chaining.
      • hasStrokeColor

        public boolean hasStrokeColor()
         The colors to use when the type is `BORDER_TYPE_STROKE`.
         
        .google.type.Color stroke_color = 2;
        Specified by:
        hasStrokeColor in interface BorderStyleOrBuilder
        Returns:
        Whether the strokeColor field is set.
      • getStrokeColor

        public Color getStrokeColor()
         The colors to use when the type is `BORDER_TYPE_STROKE`.
         
        .google.type.Color stroke_color = 2;
        Specified by:
        getStrokeColor in interface BorderStyleOrBuilder
        Returns:
        The strokeColor.
      • setStrokeColor

        public BorderStyle.Builder setStrokeColor​(Color value)
         The colors to use when the type is `BORDER_TYPE_STROKE`.
         
        .google.type.Color stroke_color = 2;
      • setStrokeColor

        public BorderStyle.Builder setStrokeColor​(Color.Builder builderForValue)
         The colors to use when the type is `BORDER_TYPE_STROKE`.
         
        .google.type.Color stroke_color = 2;
      • mergeStrokeColor

        public BorderStyle.Builder mergeStrokeColor​(Color value)
         The colors to use when the type is `BORDER_TYPE_STROKE`.
         
        .google.type.Color stroke_color = 2;
      • clearStrokeColor

        public BorderStyle.Builder clearStrokeColor()
         The colors to use when the type is `BORDER_TYPE_STROKE`.
         
        .google.type.Color stroke_color = 2;
      • getStrokeColorBuilder

        public Color.Builder getStrokeColorBuilder()
         The colors to use when the type is `BORDER_TYPE_STROKE`.
         
        .google.type.Color stroke_color = 2;
      • getCornerRadius

        public int getCornerRadius()
         The corner radius for the border.
         
        int32 corner_radius = 3;
        Specified by:
        getCornerRadius in interface BorderStyleOrBuilder
        Returns:
        The cornerRadius.
      • setCornerRadius

        public BorderStyle.Builder setCornerRadius​(int value)
         The corner radius for the border.
         
        int32 corner_radius = 3;
        Parameters:
        value - The cornerRadius to set.
        Returns:
        This builder for chaining.
      • clearCornerRadius

        public BorderStyle.Builder clearCornerRadius()
         The corner radius for the border.
         
        int32 corner_radius = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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