All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redick.example.protocol.UserOrBuilder Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: message.proto

package com.redick.example.protocol;

public interface UserOrBuilder extends
    // @@protoc_insertion_point(interface_extends:protocol.User)
    com.google.protobuf.MessageOrBuilder {

  /**
   * int32 userId = 1;
   * @return The userId.
   */
  int getUserId();

  /**
   * string username = 2;
   * @return The username.
   */
  java.lang.String getUsername();
  /**
   * string username = 2;
   * @return The bytes for username.
   */
  com.google.protobuf.ByteString
      getUsernameBytes();

  /**
   * string error = 3;
   * @return Whether the error field is set.
   */
  boolean hasError();
  /**
   * string error = 3;
   * @return The error.
   */
  java.lang.String getError();
  /**
   * string error = 3;
   * @return The bytes for error.
   */
  com.google.protobuf.ByteString
      getErrorBytes();

  /**
   * int32 code = 4;
   * @return Whether the code field is set.
   */
  boolean hasCode();
  /**
   * int32 code = 4;
   * @return The code.
   */
  int getCode();

  /**
   * string name = 8;
   * @return The name.
   */
  java.lang.String getName();
  /**
   * string name = 8;
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString
      getNameBytes();

  /**
   * .protocol.UserType userType = 9;
   * @return The enum numeric value on the wire for userType.
   */
  int getUserTypeValue();
  /**
   * .protocol.UserType userType = 9;
   * @return The userType.
   */
  com.redick.example.protocol.UserType getUserType();

  /**
   * repeated int32 roles = 10;
   * @return A list containing the roles.
   */
  java.util.List getRolesList();
  /**
   * repeated int32 roles = 10;
   * @return The count of roles.
   */
  int getRolesCount();
  /**
   * repeated int32 roles = 10;
   * @param index The index of the element to return.
   * @return The roles at the given index.
   */
  int getRoles(int index);

  /**
   * .protocol.File file = 11;
   * @return Whether the file field is set.
   */
  boolean hasFile();
  /**
   * .protocol.File file = 11;
   * @return The file.
   */
  com.redick.example.protocol.FileOuterClass.File getFile();
  /**
   * .protocol.File file = 11;
   */
  com.redick.example.protocol.FileOuterClass.FileOrBuilder getFileOrBuilder();

  /**
   * map<string, string> hobbys = 12;
   */
  int getHobbysCount();
  /**
   * map<string, string> hobbys = 12;
   */
  boolean containsHobbys(
      java.lang.String key);
  /**
   * Use {@link #getHobbysMap()} instead.
   */
  @java.lang.Deprecated
  java.util.Map
  getHobbys();
  /**
   * map<string, string> hobbys = 12;
   */
  java.util.Map
  getHobbysMap();
  /**
   * map<string, string> hobbys = 12;
   */

  java.lang.String getHobbysOrDefault(
      java.lang.String key,
      java.lang.String defaultValue);
  /**
   * map<string, string> hobbys = 12;
   */

  java.lang.String getHobbysOrThrow(
      java.lang.String key);

  public com.redick.example.protocol.User.MsgCase getMsgCase();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy