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
Modifier and TypeMethodDescriptionlonggetId()Output only.getName()The name of the label.com.google.protobuf.ByteStringThe name of the label.Immutable.com.google.protobuf.ByteStringImmutable.Output only.intOutput only.A type of label displaying text on a colored background.A type of label displaying text on a colored background.booleanhasId()Output only.booleanhasName()The name of the label.booleanA type of label displaying text on a colored background.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getResourceName
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
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.v18.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.v18.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.v18.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.v18.common.TextLabel text_label = 5;- Returns:
- The textLabel.
-
getTextLabelOrBuilder
TextLabelOrBuilder getTextLabelOrBuilder()A type of label displaying text on a colored background.
.google.ads.googleads.v18.common.TextLabel text_label = 5;
-