Interface LabelOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Label, Label.Builder

    public interface LabelOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getId()
      Output only.
      java.lang.String getName()
      The name of the label.
      com.google.protobuf.ByteString getNameBytes()
      The name of the label.
      java.lang.String getResourceName()
      Immutable.
      com.google.protobuf.ByteString getResourceNameBytes()
      Immutable.
      LabelStatusEnum.LabelStatus getStatus()
      Output only.
      int getStatusValue()
      Output only.
      TextLabel getTextLabel()
      A type of label displaying text on a colored background.
      TextLabelOrBuilder getTextLabelOrBuilder()
      A type of label displaying text on a colored background.
      boolean hasId()
      Output only.
      boolean hasName()
      The name of the label.
      boolean hasTextLabel()
      A type of label displaying text on a colored background.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getResourceName

        java.lang.String getResourceName()
         Immutable. Name of the resource.
         Label resource names have the form:
         `customers/{customer_id}/labels/{label_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        The resourceName.
      • getResourceNameBytes

        com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. Name of the resource.
         Label resource names have the form:
         `customers/{customer_id}/labels/{label_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        The bytes for resourceName.
      • hasId

        boolean hasId()
         Output only. Id of the label. Read only.
         
        optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        Whether the id field is set.
      • getId

        long getId()
         Output only. Id of the label. Read only.
         
        optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The id.
      • hasName

        boolean hasName()
         The name of the label.
         This field is required and should not be empty when creating a new label.
         The length of this string should be between 1 and 80, inclusive.
         
        optional string name = 7;
        Returns:
        Whether the name field is set.
      • getName

        java.lang.String getName()
         The name of the label.
         This field is required and should not be empty when creating a new label.
         The length of this string should be between 1 and 80, inclusive.
         
        optional string name = 7;
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         The name of the label.
         This field is required and should not be empty when creating a new label.
         The length of this string should be between 1 and 80, inclusive.
         
        optional string name = 7;
        Returns:
        The bytes for name.
      • getStatusValue

        int getStatusValue()
         Output only. Status of the label. Read only.
         
        .google.ads.googleads.v10.enums.LabelStatusEnum.LabelStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The enum numeric value on the wire for status.
      • getStatus

        LabelStatusEnum.LabelStatus getStatus()
         Output only. Status of the label. Read only.
         
        .google.ads.googleads.v10.enums.LabelStatusEnum.LabelStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The status.
      • hasTextLabel

        boolean hasTextLabel()
         A type of label displaying text on a colored background.
         
        .google.ads.googleads.v10.common.TextLabel text_label = 5;
        Returns:
        Whether the textLabel field is set.
      • getTextLabel

        TextLabel getTextLabel()
         A type of label displaying text on a colored background.
         
        .google.ads.googleads.v10.common.TextLabel text_label = 5;
        Returns:
        The textLabel.
      • getTextLabelOrBuilder

        TextLabelOrBuilder getTextLabelOrBuilder()
         A type of label displaying text on a colored background.
         
        .google.ads.googleads.v10.common.TextLabel text_label = 5;