Class GetNotificationRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetNotificationRequest.Builder>
com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder
All Implemented Interfaces:
GetNotificationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GetNotificationRequest

public static final class GetNotificationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetNotificationRequest.Builder> implements GetNotificationRequestOrBuilder
 Request for fetching a notification.
 
Protobuf type google.cloud.advisorynotifications.v1.GetNotificationRequest
  • 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<GetNotificationRequest.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<GetNotificationRequest.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<GetNotificationRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GetNotificationRequest.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<GetNotificationRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. A name of the notification to retrieve.
       Format:
       organizations/{organization}/locations/{location}/notifications/{notification}
       or projects/{projects}/locations/{location}/notifications/{notification}.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface GetNotificationRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. A name of the notification to retrieve.
       Format:
       organizations/{organization}/locations/{location}/notifications/{notification}
       or projects/{projects}/locations/{location}/notifications/{notification}.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface GetNotificationRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GetNotificationRequest.Builder setName(String value)
       Required. A name of the notification to retrieve.
       Format:
       organizations/{organization}/locations/{location}/notifications/{notification}
       or projects/{projects}/locations/{location}/notifications/{notification}.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GetNotificationRequest.Builder clearName()
       Required. A name of the notification to retrieve.
       Format:
       organizations/{organization}/locations/{location}/notifications/{notification}
       or projects/{projects}/locations/{location}/notifications/{notification}.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public GetNotificationRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. A name of the notification to retrieve.
       Format:
       organizations/{organization}/locations/{location}/notifications/{notification}
       or projects/{projects}/locations/{location}/notifications/{notification}.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       ISO code for requested localization language. If unset, will be
       interpereted as "en". If the requested language is valid, but not supported
       for this notification, English will be returned with an "Not applicable"
       LocalizationState. If the ISO code is invalid (i.e. not a real language),
       this RPC will throw an error.
       
      string language_code = 5;
      Specified by:
      getLanguageCode in interface GetNotificationRequestOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       ISO code for requested localization language. If unset, will be
       interpereted as "en". If the requested language is valid, but not supported
       for this notification, English will be returned with an "Not applicable"
       LocalizationState. If the ISO code is invalid (i.e. not a real language),
       this RPC will throw an error.
       
      string language_code = 5;
      Specified by:
      getLanguageCodeBytes in interface GetNotificationRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public GetNotificationRequest.Builder setLanguageCode(String value)
       ISO code for requested localization language. If unset, will be
       interpereted as "en". If the requested language is valid, but not supported
       for this notification, English will be returned with an "Not applicable"
       LocalizationState. If the ISO code is invalid (i.e. not a real language),
       this RPC will throw an error.
       
      string language_code = 5;
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public GetNotificationRequest.Builder clearLanguageCode()
       ISO code for requested localization language. If unset, will be
       interpereted as "en". If the requested language is valid, but not supported
       for this notification, English will be returned with an "Not applicable"
       LocalizationState. If the ISO code is invalid (i.e. not a real language),
       this RPC will throw an error.
       
      string language_code = 5;
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public GetNotificationRequest.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       ISO code for requested localization language. If unset, will be
       interpereted as "en". If the requested language is valid, but not supported
       for this notification, English will be returned with an "Not applicable"
       LocalizationState. If the ISO code is invalid (i.e. not a real language),
       this RPC will throw an error.
       
      string language_code = 5;
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.