Class GoogleSignalsSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GoogleSignalsSettings.Builder>
com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder
All Implemented Interfaces:
GoogleSignalsSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GoogleSignalsSettings

public static final class GoogleSignalsSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<GoogleSignalsSettings.Builder> implements GoogleSignalsSettingsOrBuilder
 Settings values for Google Signals.  This is a singleton resource.
 
Protobuf type google.analytics.admin.v1alpha.GoogleSignalsSettings
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GoogleSignalsSettings.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.GeneratedMessage.Builder<GoogleSignalsSettings.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<GoogleSignalsSettings.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public GoogleSignalsSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<GoogleSignalsSettings.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Resource name of this setting.
       Format: properties/{property_id}/googleSignalsSettings
       Example: "properties/1000/googleSignalsSettings"
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface GoogleSignalsSettingsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Resource name of this setting.
       Format: properties/{property_id}/googleSignalsSettings
       Example: "properties/1000/googleSignalsSettings"
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface GoogleSignalsSettingsOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GoogleSignalsSettings.Builder setName(String value)
       Output only. Resource name of this setting.
       Format: properties/{property_id}/googleSignalsSettings
       Example: "properties/1000/googleSignalsSettings"
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GoogleSignalsSettings.Builder clearName()
       Output only. Resource name of this setting.
       Format: properties/{property_id}/googleSignalsSettings
       Example: "properties/1000/googleSignalsSettings"
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public GoogleSignalsSettings.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Resource name of this setting.
       Format: properties/{property_id}/googleSignalsSettings
       Example: "properties/1000/googleSignalsSettings"
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Status of this setting.
       
      .google.analytics.admin.v1alpha.GoogleSignalsState state = 3;
      Specified by:
      getStateValue in interface GoogleSignalsSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public GoogleSignalsSettings.Builder setStateValue(int value)
       Status of this setting.
       
      .google.analytics.admin.v1alpha.GoogleSignalsState state = 3;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public GoogleSignalsState getState()
       Status of this setting.
       
      .google.analytics.admin.v1alpha.GoogleSignalsState state = 3;
      Specified by:
      getState in interface GoogleSignalsSettingsOrBuilder
      Returns:
      The state.
    • setState

       Status of this setting.
       
      .google.analytics.admin.v1alpha.GoogleSignalsState state = 3;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public GoogleSignalsSettings.Builder clearState()
       Status of this setting.
       
      .google.analytics.admin.v1alpha.GoogleSignalsState state = 3;
      Returns:
      This builder for chaining.
    • getConsentValue

      public int getConsentValue()
       Output only. Terms of Service acceptance.
       
      .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConsentValue in interface GoogleSignalsSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for consent.
    • setConsentValue

      public GoogleSignalsSettings.Builder setConsentValue(int value)
       Output only. Terms of Service acceptance.
       
      .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for consent to set.
      Returns:
      This builder for chaining.
    • getConsent

      public GoogleSignalsConsent getConsent()
       Output only. Terms of Service acceptance.
       
      .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConsent in interface GoogleSignalsSettingsOrBuilder
      Returns:
      The consent.
    • setConsent

       Output only. Terms of Service acceptance.
       
      .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The consent to set.
      Returns:
      This builder for chaining.
    • clearConsent

      public GoogleSignalsSettings.Builder clearConsent()
       Output only. Terms of Service acceptance.
       
      .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.