Enum GoogleSignalsConsent
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<GoogleSignalsConsent>
@Generated
public enum GoogleSignalsConsent
extends Enum<GoogleSignalsConsent>
implements com.google.protobuf.ProtocolMessageEnum
Consent field of the Google Signals settings.Protobuf enum
google.analytics.admin.v1alpha.GoogleSignalsConsent-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTerms of service have been acceptedTerms of service have not been acceptedGoogle Signals consent value defaults to GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTerms of service have been acceptedstatic final intTerms of service have not been acceptedstatic final intGoogle Signals consent value defaults to GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. -
Method Summary
Modifier and TypeMethodDescriptionstatic GoogleSignalsConsentforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<GoogleSignalsConsent>static GoogleSignalsConsentvalueOf(int value) Deprecated.static GoogleSignalsConsentvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static GoogleSignalsConsentReturns the enum constant of this type with the specified name.static GoogleSignalsConsent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GOOGLE_SIGNALS_CONSENT_UNSPECIFIED
Google Signals consent value defaults to GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; -
GOOGLE_SIGNALS_CONSENT_CONSENTED
Terms of service have been accepted
GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; -
GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED
Terms of service have not been accepted
GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; -
UNRECOGNIZED
-
-
Field Details
-
GOOGLE_SIGNALS_CONSENT_UNSPECIFIED_VALUE
public static final int GOOGLE_SIGNALS_CONSENT_UNSPECIFIED_VALUEGoogle Signals consent value defaults to GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0;- See Also:
-
GOOGLE_SIGNALS_CONSENT_CONSENTED_VALUE
public static final int GOOGLE_SIGNALS_CONSENT_CONSENTED_VALUETerms of service have been accepted
GOOGLE_SIGNALS_CONSENT_CONSENTED = 2;- See Also:
-
GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED_VALUE
public static final int GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED_VALUETerms of service have not been accepted
GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static GoogleSignalsConsent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-