Class AttributeValues.Builder

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

public static final class AttributeValues.Builder extends com.google.protobuf.GeneratedMessage.Builder<AttributeValues.Builder> implements AttributeValuesOrBuilder
 The attribute values associated with resource.
 
Protobuf type google.cloud.apihub.v1.AttributeValues
  • 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<AttributeValues.Builder>
    • clear

      public AttributeValues.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<AttributeValues.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<AttributeValues.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AttributeValues.Builder mergeFrom(AttributeValues other)
    • isInitialized

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

      public AttributeValues.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<AttributeValues.Builder>
      Throws:
      IOException
    • getValueCase

      public AttributeValues.ValueCase getValueCase()
      Specified by:
      getValueCase in interface AttributeValuesOrBuilder
    • clearValue

      public AttributeValues.Builder clearValue()
    • hasEnumValues

      public boolean hasEnumValues()
       The attribute values associated with a resource in case attribute data
       type is enum.
       
      .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;
      Specified by:
      hasEnumValues in interface AttributeValuesOrBuilder
      Returns:
      Whether the enumValues field is set.
    • getEnumValues

      public AttributeValues.EnumAttributeValues getEnumValues()
       The attribute values associated with a resource in case attribute data
       type is enum.
       
      .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;
      Specified by:
      getEnumValues in interface AttributeValuesOrBuilder
      Returns:
      The enumValues.
    • setEnumValues

       The attribute values associated with a resource in case attribute data
       type is enum.
       
      .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;
    • setEnumValues

       The attribute values associated with a resource in case attribute data
       type is enum.
       
      .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;
    • mergeEnumValues

       The attribute values associated with a resource in case attribute data
       type is enum.
       
      .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;
    • clearEnumValues

      public AttributeValues.Builder clearEnumValues()
       The attribute values associated with a resource in case attribute data
       type is enum.
       
      .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;
    • getEnumValuesBuilder

      public AttributeValues.EnumAttributeValues.Builder getEnumValuesBuilder()
       The attribute values associated with a resource in case attribute data
       type is enum.
       
      .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;
    • getEnumValuesOrBuilder

      public AttributeValues.EnumAttributeValuesOrBuilder getEnumValuesOrBuilder()
       The attribute values associated with a resource in case attribute data
       type is enum.
       
      .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;
      Specified by:
      getEnumValuesOrBuilder in interface AttributeValuesOrBuilder
    • hasStringValues

      public boolean hasStringValues()
       The attribute values associated with a resource in case attribute data
       type is string.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;
      Specified by:
      hasStringValues in interface AttributeValuesOrBuilder
      Returns:
      Whether the stringValues field is set.
    • getStringValues

      public AttributeValues.StringAttributeValues getStringValues()
       The attribute values associated with a resource in case attribute data
       type is string.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;
      Specified by:
      getStringValues in interface AttributeValuesOrBuilder
      Returns:
      The stringValues.
    • setStringValues

       The attribute values associated with a resource in case attribute data
       type is string.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;
    • setStringValues

       The attribute values associated with a resource in case attribute data
       type is string.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;
    • mergeStringValues

       The attribute values associated with a resource in case attribute data
       type is string.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;
    • clearStringValues

      public AttributeValues.Builder clearStringValues()
       The attribute values associated with a resource in case attribute data
       type is string.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;
    • getStringValuesBuilder

      public AttributeValues.StringAttributeValues.Builder getStringValuesBuilder()
       The attribute values associated with a resource in case attribute data
       type is string.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;
    • getStringValuesOrBuilder

      public AttributeValues.StringAttributeValuesOrBuilder getStringValuesOrBuilder()
       The attribute values associated with a resource in case attribute data
       type is string.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;
      Specified by:
      getStringValuesOrBuilder in interface AttributeValuesOrBuilder
    • hasJsonValues

      public boolean hasJsonValues()
       The attribute values associated with a resource in case attribute data
       type is JSON.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;
      Specified by:
      hasJsonValues in interface AttributeValuesOrBuilder
      Returns:
      Whether the jsonValues field is set.
    • getJsonValues

      public AttributeValues.StringAttributeValues getJsonValues()
       The attribute values associated with a resource in case attribute data
       type is JSON.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;
      Specified by:
      getJsonValues in interface AttributeValuesOrBuilder
      Returns:
      The jsonValues.
    • setJsonValues

       The attribute values associated with a resource in case attribute data
       type is JSON.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;
    • setJsonValues

       The attribute values associated with a resource in case attribute data
       type is JSON.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;
    • mergeJsonValues

       The attribute values associated with a resource in case attribute data
       type is JSON.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;
    • clearJsonValues

      public AttributeValues.Builder clearJsonValues()
       The attribute values associated with a resource in case attribute data
       type is JSON.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;
    • getJsonValuesBuilder

      public AttributeValues.StringAttributeValues.Builder getJsonValuesBuilder()
       The attribute values associated with a resource in case attribute data
       type is JSON.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;
    • getJsonValuesOrBuilder

      public AttributeValues.StringAttributeValuesOrBuilder getJsonValuesOrBuilder()
       The attribute values associated with a resource in case attribute data
       type is JSON.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;
      Specified by:
      getJsonValuesOrBuilder in interface AttributeValuesOrBuilder
    • hasUriValues

      public boolean hasUriValues()
       The attribute values associated with a resource in case attribute data
       type is URL, URI or IP, like gs://bucket-name/object-name.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues uri_values = 5;
      Specified by:
      hasUriValues in interface AttributeValuesOrBuilder
      Returns:
      Whether the uriValues field is set.
    • getUriValues

       The attribute values associated with a resource in case attribute data
       type is URL, URI or IP, like gs://bucket-name/object-name.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues uri_values = 5;
      Specified by:
      getUriValues in interface AttributeValuesOrBuilder
      Returns:
      The uriValues.
    • setUriValues

       The attribute values associated with a resource in case attribute data
       type is URL, URI or IP, like gs://bucket-name/object-name.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues uri_values = 5;
    • setUriValues

       The attribute values associated with a resource in case attribute data
       type is URL, URI or IP, like gs://bucket-name/object-name.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues uri_values = 5;
    • mergeUriValues

       The attribute values associated with a resource in case attribute data
       type is URL, URI or IP, like gs://bucket-name/object-name.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues uri_values = 5;
    • clearUriValues

      public AttributeValues.Builder clearUriValues()
       The attribute values associated with a resource in case attribute data
       type is URL, URI or IP, like gs://bucket-name/object-name.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues uri_values = 5;
    • getUriValuesBuilder

      public AttributeValues.StringAttributeValues.Builder getUriValuesBuilder()
       The attribute values associated with a resource in case attribute data
       type is URL, URI or IP, like gs://bucket-name/object-name.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues uri_values = 5;
    • getUriValuesOrBuilder

      public AttributeValues.StringAttributeValuesOrBuilder getUriValuesOrBuilder()
       The attribute values associated with a resource in case attribute data
       type is URL, URI or IP, like gs://bucket-name/object-name.
       
      .google.cloud.apihub.v1.AttributeValues.StringAttributeValues uri_values = 5;
      Specified by:
      getUriValuesOrBuilder in interface AttributeValuesOrBuilder
    • getAttribute

      public String getAttribute()
       Output only. The name of the attribute.
       Format: projects/{project}/locations/{location}/attributes/{attribute}
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAttribute in interface AttributeValuesOrBuilder
      Returns:
      The attribute.
    • getAttributeBytes

      public com.google.protobuf.ByteString getAttributeBytes()
       Output only. The name of the attribute.
       Format: projects/{project}/locations/{location}/attributes/{attribute}
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAttributeBytes in interface AttributeValuesOrBuilder
      Returns:
      The bytes for attribute.
    • setAttribute

      public AttributeValues.Builder setAttribute(String value)
       Output only. The name of the attribute.
       Format: projects/{project}/locations/{location}/attributes/{attribute}
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The attribute to set.
      Returns:
      This builder for chaining.
    • clearAttribute

      public AttributeValues.Builder clearAttribute()
       Output only. The name of the attribute.
       Format: projects/{project}/locations/{location}/attributes/{attribute}
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAttributeBytes

      public AttributeValues.Builder setAttributeBytes(com.google.protobuf.ByteString value)
       Output only. The name of the attribute.
       Format: projects/{project}/locations/{location}/attributes/{attribute}
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for attribute to set.
      Returns:
      This builder for chaining.